Microsoft
Software
Hardware
Network
Question : PEAR Mail variable problem
hi guys,
i am in need of some assistance.
i've recently had to obtain PEAR Mail so i can send an email to a user to allow them to activate there account (sent through php). i managed to make it work by having static data in the email form file, but it doesn't work when i try and use variables.
i think my problem lies with the "to" variable.
here's my code:
$to = '<$email>'; //this doesn't work
$to = '
'; //this does work (obvisiously with proper detials)
i've the the first line in many different variation, but i just cant seem to make it work.
am i missing something?
regards
jack
Answer : PEAR Mail variable problem
Sse double quotes instead of single quotes.
Single quotes will not expand variables.
Alternatively you can use the string concatination operator: $to = '<'.$email.'>';
$to = "<$email>";
$to = "
";
Random Solutions
Clientless SSL VPN Cisco ASA
How can a secure IMAP connection be set up between Exchange Server 2003 and Microsoft Outlook, Microsoft Enterouge (for Macinthosh) and cell phones ie IPhones, Windows mobile phones, and Blackberries
#5.5.0 smtp;550-Verification failed. I can't send to only one client.
Subdomains and SSL for Ecommerce (2)
Exchange Smart Host
Cannot access OWA by domain name from within the network
Why this mail appeared "Delivery Notification: Delivery has timed out and failed"
Have to clear arp cache to get on internet
Help!! Dynamic DNS service like DNS2GO and ZoneEdit
VBS scripting to map network drives