First you need to arrive first/sendmail/downloadClick here to download the file directly, and then unzip it to the directory such as D:\php\sendmail\.
Then open the file and find the following code
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; 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 of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
By default, the local machine is used as the mail server. Here we need to borrow sendmail to send emails, and use sendmail to configure sendmail to use qq and 163 emails to send (usually in this way). So we need to log out all options, that is, add ";" before SMTP = localhost and smtp_port = 25, and then delete sendmai_path="" before";" and change it to sendmai_path="d:\php\sendmail\ -t". The modified one is
[mail function]
; For Win32 only.
;SMTP = localhost
;smtp_port = 25
; For Win32 only.
;sendmail_from = me@
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "d:\php\sendmail\ -t"
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
Note that the above only needs to enable sendmail_path and save it
Then modify the files in the sendmail directory. The main contents are as follows
smtp_server=smtp server address (such as .)
auth_username=email login name (such as info@)
auth_password=mailbox password (such as xxxxxx)
force_sender=Full write from the sender address (such as info@)
There is another one
; auto = use SSL for port 465, otherwise try to use TLS
Delete the previous ";" to enable the SSL secure login option
After filling in the above four items correctly, save them after they are finished modifying them, and then restart IIS, you can use them normally.
If you cannot send emails, check whether the port is blocked, whether mcafee has set a prohibition on sending emails, etc.
Then open the file and find the following code
Copy the codeThe code is as follows:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; 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 of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
By default, the local machine is used as the mail server. Here we need to borrow sendmail to send emails, and use sendmail to configure sendmail to use qq and 163 emails to send (usually in this way). So we need to log out all options, that is, add ";" before SMTP = localhost and smtp_port = 25, and then delete sendmai_path="" before";" and change it to sendmai_path="d:\php\sendmail\ -t". The modified one is
Copy the codeThe code is as follows:
[mail function]
; For Win32 only.
;SMTP = localhost
;smtp_port = 25
; For Win32 only.
;sendmail_from = me@
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "d:\php\sendmail\ -t"
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
Note that the above only needs to enable sendmail_path and save it
Then modify the files in the sendmail directory. The main contents are as follows
Copy the codeThe code is as follows:
smtp_server=smtp server address (such as .)
auth_username=email login name (such as info@)
auth_password=mailbox password (such as xxxxxx)
force_sender=Full write from the sender address (such as info@)
There is another one
Copy the codeThe code is as follows:
; auto = use SSL for port 465, otherwise try to use TLS
Delete the previous ";" to enable the SSL secure login option
After filling in the above four items correctly, save them after they are finished modifying them, and then restart IIS, you can use them normally.
If you cannot send emails, check whether the port is blocked, whether mcafee has set a prohibition on sending emails, etc.