Jump to content

is it possible (decorate and email)


deansaddigh

Recommended Posts

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?

Link to comment
Share on other sites

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
Share on other sites

$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";

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.