[TYPO3-dev] BLANK eMails using class.t3lib_htmlmail
Steffen Ritter
info at rs-websystems.de
Thu Oct 30 15:43:46 CET 2008
Hello,
im struggling about a problem I don't really know where to dig in.
We're generating automatic auth-info Mail when creating feuser in BE.
For me, this works fine, I receive all mails correctly (as second
receiptant). Some of our users receive blank white mails (all web.de
users and some T-Online customers).
I do have 2 theories:
first one:
HTML-Mails are not supportet
second one:
Spamfilter is blocking mails
If it would be the first one I would wonder about, why the mailing class
is not sending a plain text version in addition (as it should be). Or
probably even if theres no html support, show up the plain html codes.
Am I missing something essential?
Here's my generating code (somekind shortened):
$mailer = new t3lib_htmlmail();
$mailer->start();
$recipient = $FieldArray['email'];
if ($FieldArray['email2']!='') {
$recipient .= ';'.$FieldArray['email2'];
}
if ($FieldArray['email3']!='') {
$recipient .= ';'.$FieldArray['email3'];
}
$sender = 'vorstand at ----.de';
$subject = 'Benutzer angelegt / Passwort zurückgesetzt';
$mailtext = '<style>STYLE DESCRIPTION</style>
<p>Hallo '. $FieldArray['name'] .',<br/> LONG TEXT:</p>';
$mailtext .= '<table><tr><th>Benutzername:</th><td>' .
$FieldArray['username'] .'</td></tr>';
$mailtext .= '<tr><th>Passwort:</th><td>' . $password
.'</td></tr></table><hr />';
$mailtext .= 'REST OF THE MAIL';
$mailer->extractHtmlInit($mailtext,'');
$mailer->addPlain(strip_tags($mailtext));
$mailer->from_name = 'Vereinsverwaltung';
$mailer->from_email = $sender;
$mailer->replyto_email = 'webmaster at ----.de';
$mailer->subject = $subject;
$mailer->send($recipient);
$mailer->send('webmaster at ----.de');
$mailer->send('kassierer at ----.de');
Whats wrong (only mails to $reciptient are blanked)
kind regards
Steffen
More information about the TYPO3-dev
mailing list