Jump to content

How to provide line by line message in a mail


sasi

Recommended Posts

Dear All

 

          Good Day, i am new to PHP (a beautiful server side scripting language). i want to send a mail with line by line message i tried with different types like by placing the things in table and using  <br /> but the thing is the tags are also visible in the message of the mail.

 

Here is my code:

 

$message1  = "Name      :".  $_REQUEST['name']."<br />";

$message1 .= "Surname    :".  $_REQUEST['surname']."<br />";

$message1 .= "Cellphone  :".  $_REQUEST['mobileno']."<br />";

$message1 .= "Telephone  :".  $_REQUEST['landno']."<br />";

$message1 .= "Fax        :".  $_REQUEST['fax']."<br />";

$message1 .= "Company    :".  $_REQUEST['company']."<br />";

$message1 .= "Email      :".  $_REQUEST['email']."<br />";

$message1 .= "Country    :".  $_REQUEST['country']."<br />";

$message1 .= "Enquity    :".  $_REQUEST['enquiry']."<br />";

$message1 .= "Date&Time  :".  $date."<br />";

 

For this code if try to print/echo it it is working fine it is displaying line by line, but using this variable ($message1) in the mail these <br /> are also visible.

Can any one guide me to resolve(to remove these tags from the message part) this issue.

Thanks in Advance. :confused:

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.