Jump to content

line break help


MDanz

Recommended Posts

when i send this to my email.... the line breaks are all wrong.  I want user1, user2 and user3 directly underneath each other.  instead they are one line beneath and moved over to the right. What's the correct way to do line breaks for email?

 


              $to = $key;
              $subject = "subject";
              $headers = "From: $email";
              $server = "http://www.example.com";
              
              ini_set("SMTP",$server);

$body="
              user1\r 
      user2\r
              user3\r
";

mail($to, $subject, $body, $headers);

Link to comment
https://forums.phpfreaks.com/topic/212262-line-break-help/
Share on other sites

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.