I have created a form in Flash with PHP as backend. The form is meant to be more of a forwarding form. User enters in email of person that they want to pass information on to and then they fill in their name in the from field in Flash (which in the php code is now the $subject variable because someone suggested I not use $from). I will post the old and newest code that I have later in the post.
The problem is this... when testing the form on all my systems(PC's) that I have access to the form works great. I recieve the email very quickly. My other test have been on Mac. The Mac user informed me that when they send the email to their own email they do not recieve it. When a Mac user sends it to my email then I receive it. When I send from PC to Mac they sometimes receive it. There is also one PC in the mic that I have sent to and they have not recieved. What could possibly be the issue. I was hoping to put together a simple form using PHP code that I found online.
Others have said that I might have a problem because of how it is coding email clients are viewing it as SPAM or junk and sorting it out of the inbox. Could this be the issue?
Please help! Here is the URL is which if you are on Mac or any system you can send the email to yourself for testing and see if you recieve. Please let me know if it did or didn't work and what system you are on.
www.seedsmusic.net[/url]
Here is the PHP code before any changes...
<?
/******************************************************
**
** PHP Mailer
**
*******************************************************/
// Enter your contact email address here
$adminaddress = "$to";
/*******************************************************
No need to change anything below ...
*******************************************************/
// Gets the date and time from your server
//$date = date("m/d/Y H:i:s");
//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
if ($action != ""):
mail("$adminaddress","$from",
"Here is a link to a FREE DOWNLOAD http://www.seedsmusic.net of the song LISTEN TO ME from the new CD SEEDS OF PURPOSE. It was sent to you by $name. SEEDS is a family worship CD series containing high-energy songs written from God's word.
Check it out! For more information about SEEDS, go to http://www.seedsmusic.com! If you connect with our vision, help us SPREAD THE [url]WORD!
From: $from
$from wrote this message: $message
$ip
$date","FROM:$adminaddress");
endif;
?>
When I posted this on other forums they replied with this...
I suspect the problem is that the headers are too trivial and the email is getting pre-sorted into "Junk".
"FROM:$adminaddress" should probably be "From: $adminaddress" also as all caps won't pass some MTA's out there. Using "$from" as the second argument to mail (which should be the Subject line is also likely to trigger spam/junk mail on a lot of mail clients.
... So I made changes and here is the code that I have now but I am still running into the same problems...
[code=php] <?
/******************************************************
**
** PHP Mailer
**
*******************************************************/
// Enter your contact email address here
$adminaddress = "$to";
/*******************************************************
No need to change anything below ...
*******************************************************/
// Gets the date and time from your server
//$date = date("m/d/Y H:i:s");
//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
if ($action != ""):
mail("$adminaddress","$subject",
"Here is a link to a FREE DOWNLOAD http://www.seedsmusic.net of the song LISTEN TO ME from the new CD SEEDS OF PURPOSE. It was sent to you by $name. SEEDS is a family worship CD series containing high-energy songs written from God's word.
Check it out! For more information about SEEDS, go to http://www.seedsmusic.com! If you connect with our vision, help us SPREAD THE WORD!
From: $subject
$subject wrote this message: $message
$ip
$date","From:$adminaddress");
endif;
?>[/code]
So any help with this issue would be greatly appreacited. Also could my issue be in Flash? I am assuming not but let me know if that might be a problem.
As far as operating system goes I am unsure of what the Mac users are on. I also am assuming the server I have the php posted on has a version of php4 or higher. Thanks for your time and any ideas of how I might be able to fix this code. Blessings!