thinkphp no mail send function, so, I think about, will phpmailer integration into thinkphp it. Phpmailer is not in line with the thinkphp specification plug-in program, so we need to first put Phpmailer program into thinkphp Library/vendor directory, I here is the latest version of Thinkphp 3.2, if it is thinkphp Before the 3.2 version, the Lib directory may be. The vendor directory is designed to store non-standard thinkphp plugins in the following
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 everyone for your reference, as follows:
PHP Mailer is a very useful PHP e-Mail Send class module, you can call the local
Using SMTP to send mail in PHP
Today, a friend asked me how to send a message in PHP , so I let him go to Baidu Google a lot of search. After a long while I asked him to solve the problem, he was very frustrated that the online tutorials are a template, according to their coming there will be some problems, so I tidied up, ready to re-summarize this method, so as to stay for future reference.
?
?
1. What
"First Aid" using Zend_mail to build mail Messenger forms, SMTP has a problem
Writing a piece of code today, using Zend_mail to build a mail Messenger form, the program always runs unsuccessfully, I suspect that there is a problem with my SMTP configuration, the actual runtime
$SMT
Lightweight PHP mail to send, need to have SMTP server, code after many combat use, now share the code to everyone
Copy Code code as follows:
/*
Mail Send SMTP Service
Connect SMTP server, send mail, All rights rese
Phpmailer version used: 5.2.1The following are some of the code given in the example folder of Phpmailer: test_gamil_basic.php.
The code is as follows
Copy Code
$mail = new Phpmailer ();$body = file_get_contents (' contents.html '); $body = $_post[' body '];$body = Eregi_replace ("[]", ", $body);$mail->issmtp (); Telling the class to use SM
Recently in the company's anti-spam system, found that there is a mail system sent a lot of spam, use Telnet login up, try to send a message, unexpectedly can successfully sent, originally this post office system is no limit, was used, alas, here is how to use the command telnet To make a forged hand-sent message.# telnet MAIL.CORATUR.CU 25Helo coratur.cuMail from:[email protected]>RCPT to:[email protected]>DataFrom:[email protected]To:[email protecte
* Name: send email with socket* Description: This class enables direct mail to be sent directly using an SMTP server that needs to be verified, refer to the article "email with socket" Author: Limodou* This article earlier, he is to use the SMTP server to send mail, and now basically the
Recently encountered a problem, that is, there is an IDC room server does not allow the connection of the external network, where the set of services to run using Zabbix monitoring, which causes the Zabbix server can not send alarm messages, the solution to this problem is much more natural, but for one reason or another, I have used the following method to solve. Find a machine that can connect to an external network, build an SMTP service on this ma
Include("Class. phpmailer. php");// Imports phpmailer class to others
$ Mail=NewPhpmailer ();// Create a new object
$ Mail-> Issmtp ();// Set the SMTP mode for sending messages
$ Mail-> Smtpauth = true;// You need a license to set SMTP.
$
Python uses SMTP to send mail code summary, pythonsmtp
SMTP (Simple Mail Transfer Protocol) is a Simple Mail Transfer Protocol. It is a set of rules used to send Mail from the source address to the destination address, which contr
################## #邮件服务 ########################
1. Related concepts and preparatory work
SMTP: (Simple Mail Transfer Protocol) is simply Mail Transfer Protocol, which is a set of rules for sending messages from source to destination to control how the letters are transferred. The SMTP protocol belongs to the TCP/IP p
SMTP: Simple Mail Transfer Protocol (plain mail Transfer Protocol)
SMTP is a protocol that provides reliable and efficient e-mail transport. SMTP is a type of mail service modeled on FT
For smtp mail, who can help check the 503 Error: needEHLOandAUTHfirstResolvingSMTPserverdomain quot; smtp.qq.com quot ;... connectingtohostaddress quot; 119.147.74.45 quot; port25... connecte, who can help with smtp mail? 503 Error: need EHLO and AUTH first
Resolving SMTP
An example of smtp mail sending test_smtp.phprequire (smtp. php); $ smtpnewsmtp_class; $ smtp-host_namemail.xiaocui.com; $ smtp-localhostlocalhost; $ fromwebmaster@xiaocui.com; $ toroot@xiaocui.com; if ($ smtp-SendMessage ($ from,
= true; Sc. Deliverymethod = Smtpdeliverymethod.network; Sc. Credentials = NC; If this is reported to mail from the address must be same as authorization user this error, is your QQ mailbox does not open SMTP,//to your own mailbox settings can be! Under the account, if is 163 mailbox, below should become smtp.163.com SC.
Http://dev.firnow.com/course/6_system/linux/Linuxjs/2008618/126266.html
Reprinted Note:> after a lot of days of Sendmail and SMTP, I finally found this article is good. Article , Corresponding to my sendmail8.13 version, operating system redflag 2.6.18. Although I cannot find the original version, I am very grateful to the author of this article !!========================================== ==========================================How to configure th
Phpmailer is a PHP function package that is used to send e-mail messages. Features include: Specify multiple recipients, CC address, send address and reply address, support for multiple message encodings including: 8bit,base64,binary and quoted-printable, support for SMTP authentication, Supports mail with attachments and HTML-formatted messages.Implementation co
smtp.php
Class SMTP
{
/* Public Variables * *
var $smtp _port;
var $time _out;
var $host _name;
var $log _file;
var $relay _host;
var $debug;
var $auth;
var $user;
var $pass;
* Private Variables * *var $sock;
* Constractor * *
function smtp ($relay _host = "", $smtp _port = =, $auth = False, $user, $pass)
{
$this->debu
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.