[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -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 =
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off
; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log = "C:\xampp\apache\logs\php_mail.log"
[mail function]
; For Win32 only.
; http://php.net/smtp
; SMTP = localhost
; http://php.net/smtp-port
; smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -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 =
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off
; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log = "C:\xampp\apache\logs\php_mail.log"
# Example for a user configuration file
# Set default values for all following accounts.
defaults
logfile "C:\xampp\sendmail\sendmail.log"
# Mercury
account Mercury
host localhost
from postmaster@localhost
auth off
# A freemail service example
account Hotmail
tls on
tls_certcheck off
host smtp.live.com
from [exampleuser]@hotmail.com
auth on
user [exampleuser]@hotmail.com
password [examplepassword]
# Set a default account
account default : Mercury
Add port followed by the number after the auth on entry.sandyMN wrote:I believe I need to specify my port, which is NOT port 25. Is that done somewhere in the sendmail.ini file as well?
auth on
port 465
Change the red entries:sandyMN wrote:Still not sending the emails. This is what I have in sendmail.ini (sensitive info is hidden):
# Example for a user configuration file
# Set default values for all following accounts.
defaults
logfile "C:\xampp\sendmail\sendmail.log"
# Mercury
account Mercury
host localhost
from postmaster@localhost
auth off
# A freemail service example
account Hotmail
tls on
tls_starttls off
tls_certcheck off
host smtp.mydomain.net
from [email@mydomain.com]
auth on
port 465
user [my user name]
password [my password]
# Set a default account
account default : Hotmail
tls_starttls off
The sendmail.log would be created if the script you are using actually found sendmail and used it.sandyMN wrote:It also appears that I do not have a sendmail.log file. Maybe because no email was actually sent and the file wasn't created?
# A freemail service example
account Comcast
tls on
tls_starttls off
tls_certcheck off
host smtp.comcast.net
from [email@comcast.net]
auth on
port 465
user [my user name]
password [my password]
# Set a default account
account default : Comcast
Users browsing this forum: No registered users and 88 guests