Kieran Huggins wrote:are you coding in Word or something? I ask because the quotes from the example are "fancy quotes" rather than the normal kind. That would certainly mess up the parsing.
I don't write PHP code but I do copy and paste it into Notepad. I did not notice the "fancy quotes" in Notepad as the font was so small. I changed it to the proper quotes....
Code: Select all
@mail("", $tsubject, $ttext, "FROM: $_POST[email]", "Bcc: $_POST[friendmail1],$_POST[friendmail2],$_POST[friendmail3]");
I don't get the syntax error anymore, I receive the emails but the email addresses are still in the TO: field. I took a chance and altered the code to....
Code: Select all
@mail("", $tsubject, $ttext, "FROM: $_POST[email]", "Bcc: $_POST[friendmail1],Bcc: $_POST[friendmail2],Bcc: $_POST[friendmail3]");
same thing happened.
Thanks Chris....I've looked at both of these pages as well as your Swift Mailer. I downloaded and looked at the zipfile. After reading some of the wikidocs on your site, it seems quite complicated to me. What I'm looking for is a tell a friend script that allows for referral urls and will send the page to more than one email address at a time. I will read more about Swift Mailer and give it a try soon.
Deb