Jump to content

PHP-send mail in HTML or TEXT


pascal_22

Recommended Posts

Hi!

 

One of my members today reply me today and told me that he receive the confirmation registration mail with all div,table,tr,td,p... in his mail... and he asked my why he received it like this....

 

I use mail() function to send mail and i use html format!!!!

 

What should i do? Stop HTML format and go for text format...?

 

His email is from Free.fr

 

Thank for your help!

 

Pascal

 

Link to comment
Share on other sites

What should i do? Stop HTML format and go for text format...?

That would be the optimal solution, as far as I'm concerned, yes. However, if you're dead set on having it send as HTML you should at the very least send a text-only version as well. This is done by using multi-part messages, same as if you were attaching any other file to the email.

A quick search on the net should provide you with lots of examples on how to do this, PHPmailer should also be capable of doing this for you with a minimum of work needed.

Link to comment
Share on other sites

Thanks!!

 

Yes Christian, it'S a bit strange to ask it... but i asked that because i think it's appreciate for user to have a link to access the website.....

But you right :) i will delete link in text email !!

 

Thanks a loT for all your answer! I appreciate!!

 

Have a great night to all!!

 

Pascal

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.