Email php code...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dddmx3
Forum Newbie
Posts: 16
Joined: Mon Sep 20, 2010 9:05 pm

Email php code...

Post 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?
robnet
Forum Commoner
Posts: 85
Joined: Mon Aug 10, 2009 8:32 am
Location: South East, UK

Re: Email php code...

Post 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.
Post Reply