Hi guys, here again is a generic version of the script again that no matter what I do it always sends me a text based email with the code and not an HTML email with the LINK…My Hosting is of no help as they don’t trouble shoot scripts and say everything is fine on their end… LOL…Please test the script on one or your own domains to prove that it will send the HTML LINK successfully on a good Hosting Company …Please let me know Thank you!
for sending anything beyond a simple text mail I strongly recommend to use a mailing library (SwiftMailer, PHPMailer), otherwise you would have to sift through all the email related RFCs to find the principal issue.
Hi Dormillich, I’ve tried the PHPMailer but the script just gave me:
The page isn’t working sample.com is currently unable to handle this request.
HTTP ERROR 500
Can anyone provide me with a working PHPMailer script that does SMTP because that is what I need in order for the email to come directly from my domain? Please advise…Thank you!
I meant the separation between the headers and the message body.
i.e. 2.1
A message consists of header fields (collectively called “the header
of the message”) followed, optionally, by a body. The header is a
sequence of lines of characters with special syntax as defined in
this standard. The body is simply a sequence of characters that
follows the header and is separated from the header by an empty line
(i.e., a line with nothing preceding the CRLF).
I finally got PHPMailer working and it works good however I a having a very hard time passing a simple variable into the Body of the email message.
$cust-name = “John Doe”;
$mail->Body = ‘Hello $cust-name’;
I can’t pass a simple variable I created into the message. Please let me know if you have any thoughts?
Of course the actual application is more complicated as I’m pulling the cust-name from data on another system but essentially this is all I’m trying to do here…Please advise…Thanks
One last thing with PHPmailer…I got tired updating the file local and then FileZilla (FTP) to my server so I could run the program to send out the emails one at a time. So I setup a Form…everything works except now on my blind carbon copy it says the following:
To: undisclosed-recipients:
Please help me change this so I can see exactly who I’ve have sent my email to?