Jump to content

PHP Email formatting


SCook

Recommended Posts

Hi everyone,

 

I am having some odd issues with sending php generated emails.  Essentially, what I'd like to know is how can I ensure they go into the inbox, and not get shunted to the junk mail folder.  I assume this is s formatting issue, and it only happens sometimes.  I am creating html emails.  I have included my headers below:

 

$headers = "From: <Real Money Help>\r\n";

$headers .= 'MIME-Version: 1.0' . "\r\n";

$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";

 

Any help would be appreciated.  Thanks.

Link to comment
https://forums.phpfreaks.com/topic/225727-php-email-formatting/
Share on other sites

The email can be classified as junk for a lot of reasons, starting with mail server being in the black list and finishing by the configuration of particular client anti-spam program..

For sure there are things you can do to decrease the probability of going your letters to spam, but you can never totally avoid it.. You should search some articles on this argument.

I am not very informed in this argument, but as basic things i would advise to:

- using a mail server, and not php mail() function

- send emails in text mode and not html

- avoid to sent attachments

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.