Jump to content

Mail function gives HTML TAGS with G-mail


erikjan

Recommended Posts

Can someone please help?

 

I built a webshop in php for wines.

 

When a person orders wine, she/he

gets automatically a mail with

the order specifications etc., as does the owner of

the webstore, to notify that there has been an order.

 

Now, it seems that people having a g-mail account

see the html-tags around the mail message they get.

 

I guess it occur sbecause of the headers:

 

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

  $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

  $headers .= 'From: Wijnimport Dolvinho <[email protected]>' . "\r\n";

 

  mail($email, $subject, $receiptMessage, $headers);

  mail($toAddress,$recipientSubject,$mailContent, $headers);

 

 

 

Can somebody help me; what do I have to change in the headers?

 

 

Thanks in advance!!

 

 

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.