I know this is an issue many people have probably submitted before, but my error is no doubt coder related.
The newline characters started showing up in the emails when I added this line of code:
// Add in the URL information
$current_title = t('New headlines in @title', array('@title' => $feed_info->title));
$node_body .= "\n". $mini_separator . "\n" . $labour_title ."\n". url('aggregator/sources/'.$item->fid, NULL, NULL, TRUE)."\n";
And now I start getting this in the email:
\n---\nNew headlines in IBEW
News\nhttp://www.example.com/aggregator/sources/1\n
And so on. Like I said before, it seems like verything is fun up until that section of code is run. Then everything fucks up.
So if anyone could help me out, PLEASE PLEASE PLEASE show me what I'm doing wrong.
Comments
correction
Code part should be:
quotes
I figured it out. I need to use double quotes ( " ) instead of single quotes ( ' ).
======
Jason
THANKS!
I spent nearly a whole day staring at this problem. Also trying various things.
Just before I was about to lose my mind completely I found this post of your's and my problem was solved.
Thanks
Matt
Make sure Content-Type set to text/plain
When using \n make sure the Content-Type in the mail headers is set to text/plain.