Page 1 of 1

Email php code...

Posted: Mon Sep 20, 2010 9:15 pm
by dddmx3
Check this out:
http://www.LFSWear.com/mail.php

If I submit a message it goes into my spam folder
and is it possible to be able to upload a image with the message?

Re: Email php code...

Posted: Mon Sep 27, 2010 10:57 am
by robnet
The spam thing is a huge can of worms. So many variables. Basically, your server needs to be trusted by email providers to limit the likelihood of your email being marked as spam. But you've also got to consider content of email, make sure the from address's domain doesn't have spf records that forbid sending from your server.

You might want to look into sending via smtp rather than directly through your server. - You can set it to login to your normal email provider, making the email genuinely come from a trusted place.. Then you've only got to worry about dodgy content and headers!

Checkout one of these:
http://swiftmailer.org
http://phpmailer.sourceforge.net


Re: upload image with message, both of these mail classes can cope with MIME attachments.