|
ou812 -> RE: "and" value in PHP (2/29/2008 2:07:01)
|
Ah, with escape codes, like \n, you need double quotes on your strings, instead of single (I go between PHP and ASP and didn't really pay attention to the difference, but PHP doesn't like to escape with single quotes). Can you try using double quotes instead, and see if it likes it? $mail->Body ="Name: ".$_POST['name']."\n"; Interesting too, with phpmailer, the $mail->body is supposed to be HTML, and the <br> should have worked. But I'm wondering if they needed to be double quoted too. I don't see why it would need to be double quoted for a <br> tag, but it may just be because it is a string and how the mailer works. I would think the "\n" wouldn't work with html email, but I would try both ways, "\n" and "<br>" if not. Overall though, I think with PHP it may be easier to use double quotes instead of single, unless you have a specific need.
|
|
|
|