Copy Code code as follows:
[Mail Function]
; For Win32.
SMTP = mail3.focuschina.com
Smtp_port = 25
; For Win32.
; sendmail_from = me@example.com
Just configure the code as above, not using the username and password,
have been using a Third-party mail system to send mail, such as QQ Ah, Gmail Ah, etc., but sometimes customers do not want to give us the sender's mailbox and password, then I found that the use of PHP with the mail function can fully achieve this
Smtp.class.php This is the class that saves 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
The PHPmail () function garbled by code. The cause of this problem is that Content-type: texthtml; charsetutf-8 is missing in the header parameter of the mail () function, or charset is not UTF-8. We are using many foreign PHP programs.
Generally,
This article is a simple method for PHP to use PHPMailer to send mails. It provides code written by PHP and needs to use the mail sending function recently. it was originally sent using the mail () function provided by PHP. Php mail () is a simple,
The php mail class returns 1, indicating that smtp. php is successfully sent? 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; *
This article is a simple method for PHP to use PHPMailer to send mails. It provides code written by PHP and needs to use the mail sending function recently. it was originally sent using the mail () function provided by PHP. Php mail () is a simple,
: This article mainly introduces two types of PHP mail sending (for a long time). If you are interested in the PHP Tutorial, refer to it. You need to use PHP to send emails. if you don't want PHPmailer to be so complicated, you can find it and
: This article mainly introduces php programming notes. if you are interested in PHP tutorials, please refer to them. Three methods for php to obtain POST data
Php image watermarking source code
Php + ajax + json is the simplest example.
Php Chinese
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time,
PHP uses phpmailer to send emails. PHP uses phpmailer to send mails phpmailer is a free php mail sending plug-in. we can use phpmailer to log on to our specified email and then use this email to automatically send PHP mail with phpmailer
Phpmailer
Php programming notes-three methods for obtaining POST data from small_123 php
Php image watermarking source code
Php + ajax + json is the simplest example.
Php Chinese character to pinyin source code
Php traverses the Directory, generates the md5
Lightweight PHP mail sent, need to have an SMTP server, code after a lot of actual use, now the code to share to everyone
Copy CodeThe code is as follows:
/*Mail Send SMTP ServiceConnect SMTP server, send mail, copyright, can't copy@author:
9 Free PHP Libraries _ turn
9 Powerful free PHP libraries & 20 You should know PHP library
From:http://coolshell.cn/articles/200.html
From:http://coolshell.cn/articles/455.html
1. ReCAPTCHA
ReCAPTCHA allows your site to integrate with an advanced
This article mainly introduces a successful PHP mail sending case. For more information, see the mail () function:
Connect to the mail server and use the smtp protocol to interact with the server and send emails.
Note:
1. the mail function does not
This article is a simple method for PHP to use PHPMailer to send emails. It provides code written by itself.
This article is a simple method for PHP to use PHPMailer to send emails. It provides code written by itself.
Recently, you need to use
PhpMailer: FeaturedemailtransferclassforPHPPHPMailer is a useful PHP mail class. It supports sending mails using the smtp server, and supports mail servers such as Sendmail, qmail, Postfix, Imail, Exchange, Mercury, and Courier. If the SMTP server
Recently, the ability to send mail was sent using the mail () function from PHP. PHP mail () This method is very simple, convenient, easy to use, but in addition to NetEase mailbox, QQ mailbox, Gmail mailbox and other commonly used mailboxes can be
PHP uses pear to implement the mail sending function. in windows, configure pear and pearmail. PHP uses pear to implement the mail sending function. in windows, pear can be configured. pearmailPHP can use its built-in mail () function to send mails.
Use PHPMailer to send PHP emails # reprinted from: Cainiao on the cloud #,. Use PHPMailer to send PHP emails # reprinted from: on the cloud #, and use PHPMailer to send PHP emails 1. first, download PHPMailercode. google. comaapac uses PHPMailer to
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.