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:

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.