In my code I've got something like this:
Code: Select all
define(NL,"\x0D\x0A"); //CRLF
foreach(blah) {
printf("%-30.30s|%-7.7s|%-20.20s|%7.7s|%21.21s%s",__('Blah'),__('Type'),__('Blah'),__('Blah'),__('Blah'),NL);
}
Code: Select all
$mime = 'text/plain';
$message =new Swift_Message(MailReport::$MailSubject, $body,$mime);
$mailer->send($message, new Swift_Address($options['mailto'], $options['nickname']),
new Swift_Address(MailReport::$MailFromAddr,MailReport::$MailFromName))
The php mail() function works correct (no linebreaks ).
Is it a bug or do I need to add some options to Swift?
Thanks
Arthur