The PHP Mailer class calls the remote SMTP server to send the message implementation method, MAILERSMTP
This article explains how the PHP mailer class calls the remote SMTP server to send a message implementation. Share to everyo
PHP Mailer is a very useful PHP email sending module. It can call local SMTP to send emails or remote SMTP to send emails, however, you need to pay attention to some things during use. Otherwise, the sending may fail or cannot be called at all. This article describes the problems and solutions I encountered when using this class, briefly describe the usage and pr
The example in this article describes how the PHP mailer class invokes a remote SMTP server to send mail implementations. Share to everyone for your reference, specific as follows:
PHP Mailer is a very useful PHP email Send class module, you can invoke the local SMTP send e
Phpmailer class calls the remote SMTP server to send mail implementation method, mailersmtp. Phpmailer class calls the remote SMTP server to send mail implementation method. mailersmtp this article describes the phpmailer Class Call remote SMTP
A complete SMTP class of PHP (solve the problem when the mail server requires verification), read a complete SMTP class of PHP (solve the problem when the mail server requires verification), smtp. php? Phpclasssmtp {/* PublicVariables */var $ smtp_port; var $ time_out; var $
Smtp. php? Phpclasssmtp {* PublicVariables * var $ smtp_port; var $ time_out; var $ host_name; var $ log_file; var $ relay_host; var $ debug; var $ auth; var $ user; var $ pass; * PrivateVariables * var $ sock; * Constractor * functionsmtp ($ relay_h SMTP email server
Smtp. php
Class
following uses the user of tom.com as an example.
*/
Require ("SM. php ");
######################################## ##
$ Smtpserver = "smtp.tom.com"; // SMTP Server
$ Smtpserverport = 25; // SMTP server port
$ Smtpusermail = "someone@tom.com"; // user email address of the
This article mainly introduces the phpmailer class call method for sending mails from a remote SMTP server, and analyzes the phpmailer Class Call and mail sending techniques in combination with the instance form, for more information about how to use the php mailer class to call a remote SMTP
use an HTML compatible email viewer! "; Optional, comment out and test $mail-gt;msghtml ($body); $address = "whoto@otherdomain.com"; $mail-gt;addaddress ($address, "John Doe"); $mail-gt;addattachment ("Images/phpmailer.gif"); Attachment $mail-gt;addattachment ("Images/phpmailer_mini.gif"); Attachment if (! $mail-gt;send ()) { echo "Mailer Error:". $mail-gt;errorinfo; } else { echo "Message sent!"; }
According to the code given in th
! with an HTML; Optional, comment out and test$mail->msghtml ($body);$address = "whoto@otherdomain.com";$mail->addaddress ($address, "John Doe");$mail->addattachment ("Images/phpmailer.gif"); Attachment$mail->addattachment ("Images/phpmailer_mini.gif"); Attachmentif (! $mail->send ()) {echo "Mailer Error:". $mail->errorinfo;} else {echo "Message sent!";}
According to the code given in this example, I encountered the following error:
Www.111c
[Solution] if the server is set to inaccessible to the Internet, can I use phpmailer's SMTP mail? If the server is set to inaccessible to the Internet, can I use phpmailer's SMTP mail? If the Message nbsp; cocould nbsp; not nbsp; be nb [solution] is set to inaccessible to the Internet, can I use phpmailer for
[Solve] The server is set to a non-accessible extranet can you use Phpmailer SMTP to send mail?
If the server is set to an unreachable extranet, can I use Phpmailer smtp to send mail?
Long time is set to always prompt for message could not being sent. Mailer error:smtp Conne
If the server is set to an unreachable extranet, can I use Phpmailer smtp to send mail?
Long time is set to always prompt for message could not being sent. Mailer error:smtp Connect () failed.
It suddenly occurred to me that my server was set to be inaccessible outside the network, can only be accessed by the extranet
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.