note 60502 added to ref.mail

From: Date: Mon, 09 Jan 2006 14:17:10 +0000
Subject: note 60502 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-101452@lists.php.net to get a copy of this message
XPertMailer is a php class that you can use to send encoded MIME type e-mail messages (text/palin, text/html, HTML embeded images, attachments) towards a localhost, client or relay SMTP servers with optional authorisation. For more details, please visit: http://www.xpertmailer.com/ A simple example howto use and send an HTML e-mail: <?php // you will need to download the latest version of XPertMailer // get it at: http://sourceforge.net/projects/xpertmailer/ require_once 'XPertMailer.php'; // default SMTP server connection is SMTP_LOCAL_CLIENT // that means if you can not use SMTP server from localhost // XPertMailer will try to send your mail directly to SMTP client server // optional you can use a RELAY SMTP server with authentification $mail = new XPertMailer(SMTP_LOCAL_CLIENT); // set from mail address and name (company) $mail->from("my@account.com", "My Name"); // text/plain version $text = "Text version of this massage"; // text/html version $html = '<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"> <html> <body> <font color="red">This is a <b><u><i>text/html </i></u></b> message format.</font> </body> </html>'; // send the e-mail :-) $send = $mail->send("user@domain.com", "subject", $text, $html); // compare the result and print a message echo $send ? "Done." : "Error."; ?> ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60502 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60502&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60502&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60502&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60502&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60502&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60502&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60502&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60502&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101452) next »