This topic is locked

Email Format Line breaks

12/16/2008 6:21:56 PM
PHPRunner General questions
U
Urnso author

How do you start a new line in the message of and email?
I will have various info sent in the email but I want each item to be on it's own line.
Thx!

J
Jane 12/17/2008

Hi,
here is a sample:

$message = "First line \r\n Second line";

L
Lorenbond 12/18/2008

Here is another method
$message=$_SESSION["RecipFullName"]."\r\n";

$message.="The following message from ".$_SESSION["SendersFullName"]." was sent through the"."\r\n";

$message.="MyWebPage.com web site regarding the following listing:"."\r\n";

$message.=$_SESSION["Subject"].", Item#: ".$_SESSION["ItemID"]."\r\n";

$message.="To reply to ".$_SESSION["SendersFullName"]." simply reply to this email"."\r\n";

$message.="*****"."\r\n";

$message.="\r\n";

$message.=$txt."\r\n";

$message.="\r\n";
Notice that the first $message does not have a period (.)

C
chorus 12/23/2008

Here is another method

$message=$_SESSION["RecipFullName"]."\r\n";

$message.="The following message from ".$_SESSION["SendersFullName"]." was sent through the"."\r\n";

$message.="MyWebPage.com web site regarding the following listing:"."\r\n";

$message.=$_SESSION["Subject"].", Item#: ".$_SESSION["ItemID"]."\r\n";

$message.="To reply to ".$_SESSION["SendersFullName"]." simply reply to this email"."\r\n";

$message.="*****"."\r\n";

$message.="\r\n";

$message.=$txt."\r\n";

$message.="\r\n";
Notice that the first $message does not have a period (.)


Is there a way to instead of sending the email to a certain email address, that you send it to the email address you just filled in in the account details? (For example; you create an customer and the email address that you just put in... thats where this email is going to be sent too)

J
Jane 12/23/2008

Hi,
all entered values are stored in the $values array.

Here is a sample:

#email = $values["EmailField"];



where EmailField is your actual field name.