deansaddigh Posted May 26, 2010 Share Posted May 26, 2010 i have this //Send an email $headers = "Reply-To: info@languageschoolsuk.com\r\n"; $headers = "Return-Path: info@languageschoolsuk.com\r\n"; $headers = "From: info@languageschoolsuk.com\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? Quote Link to comment 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: Quote Link to comment Share on other sites More sharing options...
ignace Posted May 27, 2010 Share Posted May 27, 2010 $headers = "Reply-To: info@languageschoolsuk.com\r\n"; $headers = "Return-Path: info@languageschoolsuk.com\r\n"; $headers = "From: info@languageschoolsuk.com\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: info@languageschoolsuk.com\r\n"; $headers .= "Return-Path: info@languageschoolsuk.com\r\n"; $headers .= "From: info@languageschoolsuk.com\r\n"; Quote Link to comment 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/ Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.