Jump to content

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
https://forums.phpfreaks.com/topic/268554-php-send-mail-in-html-or-text/
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.

I must admit that I'm a bit baffled by the fact that you'd ask if you could use a HTML tag in a plain text mail, when the problem was that HTML tags weren't parsed in mails rendered as plain text... Didn't think it quite through, or?

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

You're welcome, glad we could help.

 

PS: It's the clients responsibility whether or not to parse URIs as links in plain text mails, in any case the user knows how his mail client acts. So nothing you have to worry about.

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.