deansaddigh Posted May 26, 2010 Share Posted May 26, 2010 i have this //Send an email $headers = "Reply-To: [email protected]\r\n"; $headers = "Return-Path: [email protected]\r\n"; $headers = "From: [email protected]\r\n"; if (mail($email, $subject, $message, $headers)) { echo("<p>Message successfully sent!</p>"); Is it possible to decorate the email , so it looks nice when it goes to the customer? Link to comment https://forums.phpfreaks.com/topic/203006-is-it-possible-decorate-and-email/ Share on other sites More sharing options...
haku Posted May 27, 2010 Share Posted May 27, 2010 You can send HTML email, but it's a pretty hokey system as mail clients are even more varied than browsers. So it's pretty difficult to get it to look proper in all mail clients, and some of them can't even read HTML mails in the first place. But here is some reading to get your started: Link to comment https://forums.phpfreaks.com/topic/203006-is-it-possible-decorate-and-email/#findComment-1063896 Share on other sites More sharing options...
ignace Posted May 27, 2010 Share Posted May 27, 2010 $headers = "Reply-To: [email protected]\r\n"; $headers = "Return-Path: [email protected]\r\n"; $headers = "From: [email protected]\r\n"; You realize you overwrote the value of $headers 3 times and $headers now contains "From .." The proper format would be: $headers = "Reply-To: [email protected]\r\n"; $headers .= "Return-Path: [email protected]\r\n"; $headers .= "From: [email protected]\r\n"; Link to comment https://forums.phpfreaks.com/topic/203006-is-it-possible-decorate-and-email/#findComment-1063980 Share on other sites More sharing options...
haku Posted May 27, 2010 Share Posted May 27, 2010 I just realized that I forgot to link the articles that I said was good to start reading: http://mattmedia.net/2007/08/23/8-html-email-tips-i-wish-i-knew-sooner/ http://www.campaignmonitor.com/css/ Link to comment https://forums.phpfreaks.com/topic/203006-is-it-possible-decorate-and-email/#findComment-1064038 Share on other sites More sharing options...
deansaddigh Posted May 28, 2010 Author Share Posted May 28, 2010 Thanks guys Regards that headers thing, thanks very much Link to comment https://forums.phpfreaks.com/topic/203006-is-it-possible-decorate-and-email/#findComment-1064573 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.