For a stable and tested SMTP Send mail class (please pay the use method), thank you very much!
I looked for a few, some can not be used, can't send out, some incredibly no text;
There is a body of these have, but did not send a few words said "account has been locked", discuz\phpwind these e-mail classes are too complex to peel out!
Checheras!!!
With the
/confEdit the config.php in the Conf directory and add the following to the return array' Mail_address ' = ' [email protected] ',//email address' Mail_smtp ' = ' smtp.126.com ',//mailbox SMTP Server' Mail_loginname ' = ' xxx ',//Email login account' Mail_password ' = ' xxx ',//email password3. Send a message in action/usr/local/apache2/htdocs/lib/actionSince thinkphp will automatically load functions in com
$jieguo = $smtp->sendmail ($smtpemailto, $smtpusermail, $mailsubject, $mailbody, $mailtype); $smtpserver = " Smtp.exmail.qq.com ";//smtp server $smtpserverport =25;//smtp server port $smtpusermail =" User mailbox ";//smtp Server user Mailbox $smtpemailto =" Send to who ";//Send to who $smtpuser ="
Define (' smtp_status_not_connected ', 1, true);d efine (' smtp_status_connected ', 2, true); class smtp{var $connection; var $recipients; var $headers; var $timeout; var $errors; var $status; var $body; var $from; var $host; var $port; var $helo; var $auth; var $user; var $pass; /** * parameter is an array * Host SMTP server hosts default: localhost * port default for
One, SMTP sends mail
Here the Python script is to log 126 of SMTP to send mail to the QQ mailbox.QQ mailbox use is encrypted stmp, need to encrypt version of children's shoes please pay attention to the subsequent updates.TIPS: My local environment is a MAC system, the Windows environment needs to modify the correspond
The example in this article describes the Golang implementation method for sending e-mail messages through SMTP. Share to everyone for your reference, specific as follows:
Today wrote a company's mail to send a background service, PHP only need to put the mail into the database, and then Golang write the mailservice w
Send failed
error 1:SMTPLIB. Smtpauthenticationerror: (A, B ' User has no permission ')When we use Python to send a message, the custom client logs on with the user name and password, and then uses the SMTP service to send the mail, and the newly registered 163 mailboxes are not enabled by default, so logins are always denied. Workaround (Take 163 mailboxes for example): Enter 163 mailbox-set-Client author
PHP uses the SMTP service to send mail first
Define (' smtp_status_not_connected ', 1, true);d efine (' smtp_status_connected ', 2, true); class smtp{var $connection; var $recipients; var $headers; var $timeout; var $errors; var $status; var $body; var $from; var $host; var $port; var $helo; var $auth; var $user; var $pass;
The Disable outbound Mail option enables you to disable outbound mail from all SMTP queues. This option is useful, for example, if there are active viruses in your organization.
Attention:
The Disable outbound Mail option does not disable the MTA or system queues.
Steps
Disable Outbound
Find a stable and proven smtp mail class (please pay for the usage). thank you very much! I have found a few, some cannot be used, some cannot be sent, and some don't have the body; some have the body, but if I haven't sent a few, I will say quot; the account has been locked quot ;, the discuz \ phpwind emails are too complicated to be separated! Thank you !!! Use the
This is a creation in
Article, where the information may have evolved or changed.
Core code: SMTP. SendMail (host, auth, user, send_to, msg), auth: = SMTP. Plainauth ("", User, password, hp[0])
Possible scenario: Use the Enterprise mailbox SMTP send mail, Host: = "smtp.exmail.qq.com:25", so need a business mailbox acc
Does smtp batch mail on the server affect the server? Currently, there are thousands of website members who want to send emails to all website members in batches using smtp, so that the smtp server will block my server IP address. How do I send regular emails to members like Tucson? Is there a dedicated email server? -
This article describes how to use the SMTP server and POP3 Service and applications developed by. net.ProgramTo send anonymous emails.
Prerequisites:1. Create a POP3 Service2. Create an SMTP server
Steps:
1. add and delete Windows components,A) POP3 Service: Select "email service" and select all in details.B) SMTP Service: There is an
$jieguo = $smtp->sendmail ($smtpemailto, $smtpusermail, $mailsubject, $mailbody, $mailtype); $smtpserver = " Smtp.exmail.qq.com ";//smtp server $smtpserverport =25;//smtp server port $smtpusermail =" User mailbox ";//smtp Server user Mailbox $smtpemailto =" Send to who ";//Send to who $smtpuser ="
When you send a message using Ecshop SMTP, in the Cls_smtp class file, execute the statement in the Get_data method:
Copy Code code as follows:
$line = fgets ($this->connection, 512);
, a timeout error occurred.
Comment out the execution of the function, send the message directly, then return the error EHLO command failed.
But when you print out the linked data, you do connect it.
Before using another program to send
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.