I have some problems with the email-class.
.. $subject = strip_tags($data["Betreff"]); .. $email = new Email($from, $to, $subject, $body); $email->send();
1.) Problems with special chars in subject
Because I am german, the subject can contain letters like Ã¤,Ã¼,ÃŸ,...
These characters are shown corretly in Outlook.
But Spamassassin says SUBJ_ILLEGAL_CHARS
$subject = strip_tags(utf8_decode($data["Betreff"]))
but then these letters are missing in outlook.
How can i use these letters in a correct way?
2.) Problem boundary
Spamassassin additionaly doesnt like MIME_BOUND_NEXTPART.
In sapphire/email/Mailer.php there is
$separator = "----=_NextPart_" . ereg_replace('[^0-9]','',rand() * 10000000000);
If I just edit this to
$separator = "----=_NexxtPart_" . ereg_replace('[^0-9]','',rand() * 10000000000);
I dont get this spamassassin-message any more.
Without this fix my email gets (in combination with 1.), spam-level: mid.
So with the fix it has spam-level: low.
But I would like send mails that are not considered as spam.
3.) if i only want to send plain-emails, i use
.. $subject = strip_tags($data["Betreff"]); .. $email = new Email($from, $to, $subject, $body); $email->sendPlain();
If i check the Header in Outlook i see:
Content-Type: multipart/mixed; boundary="----=_NextPart_204854279719"
Is this the right Content-Type for a message that consists only of Plain Text?
Many Questions at once.
Thanks for every help.
(see http://mrfoo.de/archiv/447-Spamassassin-Statusmessages.html for meaning of messages)