smtpdebug = 3; Use SMTP authentication method to send mail, of course you can choose Pop mode SendMail way and so on not to do the detailed//can refer to http://phpmailer.github.io/PHPMailer/in the details of the introduction $mail ISSMTP ();
The main problem is coding:
The solution is: the reading of the data set up a good encoding method, the message is also specified when the encoding;
Use the function Base64_encode () to encode the data using the MIME base64The title string is
Now let's take a look at the mail function mail tutorial in php. if you want to use the mail function normally, we have to configure the parameters in phpini. & lt ;? Php defines the boundary line $ bounda
Now let's take a look at the mail function
The code is as follows:Copy code $ Pipeline name = "testpipeline ";$ Email = "test@test.com ";$ Text = "Hello, the attachment contains the PDF file you need. Click to download. www.111cn.net "; // text content$ Text = base64_encode ($ text); //
*/Require_once ('Common/email. class. Php '); The code is as follows:Copy code // Here in the smiley_face@126.com mailbox as an example, the user needs to modify$ Smtps tutorial erver = "smtp.126.com"; // smtp server$ Smtpserverport = 25; //
(Attachments can be included. The code is as follows:Copy code Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> php mail function sends an email with attachments // You might need to change this line, if you do not use// The default
The code is as follows:Copy code // Define the border$ Boundary = uniqid ("");// Generate the mail header$ Header = "From: $ from Content-type: multipart/mixed;Boundary = "$ boundary" X-Mailer: php x-Priority: 3 ";// Obtain the MIME type of the
I am currently learning the basic grammar in W3school and see the case of sending email
$to = "someone@example.com";
$subject = "Test mail";
$message = "hello! A simple email message. ";
$from = "someonelse@example.com";
$headers = "From: $from";
Recently doing this project needs to achieve these two functions, Baidu is to find these plug-ins, the effect did not come out
Reply to discussion (solution)
Mail sent has been resolved,How does SMS verification be implemented?
Want an
Are you still using Phpmailer? It's out!
MAILPP is a php extension written in C + + designed to perform the task of sending mail.
Class MAILPP {public function __construct (); Public Function Set_host_port ($host, $port); Public Function
Smtp.class.php This is the class to save him to a file.
Copy CodeThe code is as follows:
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 $
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn. Supports Sending plain text emails and HTML emails, including multiple recipients, multiple CC, and multiple confidential CC,
First, you need to first go to the slave Node.Open the php. ini file and find the following code:Copy codeThe Code is as follows:[Mail function]; For Win32 only.SMTP = localhostSmtp_port = 25; For Win32 only.; Sendmail_from = me@example.com; For
Regular expression The code is as follows:Copy code ^ [_. 0-9a-z-] + @ ([0-9a-z] [0-9a-z-] +.) + [a-z] {2, 3} $ In this regular expression, "+" indicates that one or more strings appear consecutively. "^" indicates that the next string must
$jmail =new COM ("Jmail.message") or Die ("Cannot invoke JMail component");Masking exception errors, silent processing$jmail->silent=true;Encoding must be set, otherwise Chinese will be garbled$jmail->charset= "Utf-8";Sender e-mail address and name,
PHP codePHP//Recipient Email Address$to= ' [email protected] ';//Message Subject$title= ' Test mail send ';//Message Content$msg= ' This is a test e-mail ';//Sender's mailbox (virtual, which itself is not used when sending the mailbox)$from= ' From:
First you need to go to download the Sendmail.zip file from http://glob.com.au/sendmail/, click here to download it directly Oh, then unzip it to the D:\php\sendmail\ directory.
Then open the php.ini file and find the following code
Copy
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.