PHP Pear Mail Send TEXTHTML Format Mail

xiaoxiao2021-03-06  42

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.

$ 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

转载请注明原文地址:https://www.9cbs.com/read-55726.html

New Post(0)