The problem is very low. I want to figure it out. could you please advise why php mail can send mails automatically? do not all emails require the account and password of the STMP server? mail (to, subject, message, headers, parameters), why is it possible to send it in this way? is it difficult to install each computer? I want to understand it. please advise
Why does php mail automatically send mails? isn't the account and password of the STMP server required for sending mails?
Mail (to, subject, message, headers, parameters). why is it possible? is it a bit confusing if stmp service is installed on every computer?
------ Solution --------------------
Who said no configuration?
; For Win32 only.
Http://php.net/sendmail-from
; Sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail-t-I ").
Http://php.net/sendmail-path
; Sendmail_path =
; Force the addition of the specified parameters to be passed as extra parameters
; To the sendmail binary. These parameters will always replace the value
; The 5th parameter to mail (), even in safe mode.
; Mail. force_extra_parameters =
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
Mail. add_x_header = On
; The path to a log file that will log all mail () CILS. Log entries include
; The full path of the script, line number, To address and headers.
; Mail. log =
------ Solution --------------------
You can check php. Configuration in ini
------ Solution --------------------
It indicates that apecha has been configured.
------ Solution --------------------
Yes!
------ Solution --------------------
Discussion
; For Win32 only.
Http://php.net/sendmail-from
; Sendmail_fro ......
------ Solution --------------------
This is a good server...
------ Solution --------------------
Cute lz
------ Solution --------------------
If you use sendmail to send emails, you can configure the local machine without smtp.
However, the sending volume is large, and it is easy to be considered as spam rejection.
------ Solution --------------------
Account, password, port, Service mailbox, to be set, nothing else
------ Solution --------------------
You can also set it in the PHP program .. For example, you use QQ to send emails. You can go to QQ mail to enable the SMTP service.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service