Zum Inhalt springen

t3lib_htmlmail, Absender ist falsch, steht Apache drin

Erstellt am 21. September 2006 · 2 Antworten · letzte Antwort am 25. September 2006

Tags: PHP, E-Mail-Versand, Frage

Johnny ·

Hallo,

ich verwende den T3 Mailer in meiner Extension. Die Mails werden auch ordnungsgemäß verschickt, nur im Mail-Header steht als Absender: Apache [apache@anbieter.etc-service.de]

Es sind alle $conf gesetzt also daran kanns nicht liegen.

Hat jemand ein Rat?

Gruß Johnny

require_once (PATH_t3lib.'class.t3lib_htmlmail.php');
   $mailer =t3lib_div::makeInstance("t3lib_htmlmail");
   $mailer->start();
   $mailer->from_email = $conf['emailAddress'];
   $mailer->from_name = $conf['fromName'];
   $mailer->replyto_email = $conf['emailReplyAddress'];
   $mailer->replyto_name = $conf['replyToName'];
   $mailer->organisation = $conf['organisation'];
mitchiru ·

könnte sein, dass du etwas falsch machst. oder der mailserver spinnt..
so funktioniert es bei mir:

$mail = t3lib_div::makeInstance('t3lib_htmlmail');
$mail->recipient = $this->recipient;
$mail->subject = 'Stammdaten wurden bearbeitet.';

$mail->from_email = $this->from_email;
$mail->from_name = 'Bundesverband Digitale Wirtschaft (BVDW) e.V.';
$mail->charset = 'utf-8';
$mail->mailer = 'TYPO3 - Implemented by TARGET-E GmbH 2006';
$mail->start();
$mail->useQuotedPrintable();

$mail->message = '<html><head><title>'.$mail->subject.'</title></head><body>'.$this->returnValueToSave('name',&$post).' hat seine Stammdaten geändert.  Diese warten auf Freigabe im Workspacemodul.'.'</body></html>';

$mail->theParts['html']['content'] = $mail->message;
$mail->send($mail->recipient);