php resource centre

  • about
  • articles
  • tutorials
  • resources
  • certification
Home

Primary links

  • About
  • Articles
  • Tutorials
  • Resources
  • Certification

Linefeed(\n) usage in email sending

admin — Tue, 10/10/2006 - 11:53pm

Solution to the most common error when sending plain text emails;

Does your email display the n instead of parsing it ?



This is the most common error when sending plain text emails.

For ex.

$name = "Ron";

$message = 'Name : ' . $name . 'nEndOfLine';

When $message is send via mail , you will get 'Name : RonnEndOfLine', instead of the expected
Name : Ron
EndOfLine

Solution : Instead of the SingleQuote('), use Double uotes(") to wrap the string.

  • Tutorials
  • Login to post comments

User login

  • Request new password

Follow Us

Who's online

There are currently 0 users and 1 guest online.

Who's new

  • Nisha
  • linnaeus
  • Yameen
  • TalleyReedy
  • admin

Follow vipin7873 on Twitter

<!-- Start of Woopra Code -->

<!-- End of Woopra Code -->

  • about
  • articles
  • tutorials
  • resources
  • certification

copyright © 2010 Vipin Chandran