iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-15-2006, 03:17 PM
WebProWorld Member
 
Join Date: Nov 2004
Posts: 41
andertoons RepRank 0
Default php email question

OK, I'm not a coder by any stretch of the imagination, so this is probably going to seem basic, but I appreciate any help you can offer.

I've got some php set up to send an email to people subscribing to a cartoon feature of mine. The thing is, when I test it, some folks' emails have lots of line breaks between the text, some folks' run the whole thing together into one paragraph.

Any simple way to make sure there's some line breaks in a simple text email?

Also, how to I have the "From:" be a no_reply address?

The code is as follow:

$msg = "
(This is an automated reply. Please do not respond to this email.)

Thanks so much for signing up for my daily cartoon feature!

Click on the link below to retrieve your code

http://www.example.com/syndication_code.php?topic=$topic

Your Information:

Email: $email
URL: $website
Referrer: $referer
Topic: $topicMap[$topic]

Enjoy!

Mark Anderson
http://www.example.com
";
{
$msg .= "$key: $value\n";
}


$mailheaders = "From: $stripname <$email>\n\n";
$mailheaders .= "Reply-To: $stripname <$email>\n\n";

mail($email,'ANDERTOONS.COM : Syndication Code', $msg, $mailheaders);
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:10 AM.



Search Engine Optimization by vBSEO 3.3.0