Project

General

Profile

Bug #18701 » user_sendmail.php

Administrator Admin, 2008-05-04 17:05

 
<?php
function user_sendmail() {
$mail = t3lib_div::makeInstance('t3lib_htmlmail');
/* @var $mail t3lib_htmlmail */
$mail->start();
$mail->setPlain('t3lib_htmlmail says: "Hello world!"');
$mail->from_name = 'John Doe';
$mail->from_email = 'john@test.com';
$mail->subject = 't3lib_htmlmail test';
$mail->returnPath = '<john@test.com>';
$mail->send('"John Doe" <john@test.com>');

t3lib_div::plainMailEncoded('"John Doe" <john@test.com>', 't3lib_div::plainMailEncoded() test', 't3lib_div::plainMailEncoded() says: "Hello world!"', 'From: "John Doe" <john@test.com>' . chr(10) . 'Return-path: <john@test.com>');

echo 'Mails sent';
}
?>
(4-4/7)