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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.