A Text Format Mail Send Mail There are 3 portions * Mail if Safe Mode is Disabled, $ Params Will Be Passed As The Fifth Argument to the php mail () Function. IF $ params is an array, its elements will be joined as a space- . delimited string * sendmail $ params [ "sendmail_path"] - The location of the sendmail program on the filesystem Default is / usr / bin / sendmail $ params [ "sendmail_args"] -.. Additional parameters to pass to the sendmail program * smtp $ Params ["Host"] - The Server to Connect. Default Is Localhost $ Params ["Port" - The Port to Connect. Default IS 25 $ Params ["Auth"] - WHETHER or NOT To Use SMTP Authentication. Default IS False $ Params ["UserName"] - The username to use for smtp Authentication. $ Params ["password"] - The password to use for smtp authentication.
php require_once ('mail / mail.php'); $ Recipients = '111@111.com'; $ Headers ['from'] = '111@111.com'; $ Headers ['to'] = ' 111@111.com '; $ Headers [' Subject '] =' Test Message ';
$ body = 'test message';
$ Params ['username'] = '111@111.com'; $ params ['password'] = '111'; $ params ['auth'] = true;
// Create The Mail Object Using The Mail :: Factory Method $ mail_Object = & mail :: Factory ('Mail', $ Params);
$ mail_Object-> Send ($ Recipients, $ Headers, $ Body);?>
Two HTML format