Thank you for you prompt replies.
Izzy, i read carefully through the thread that you put me on to and have followed your instructions however i still am not set up yet. Would you be so kind as to read through my configurations and let me know if you can spot anything. I'd actually read through most of the similar threads before posting my problem but to no avail.
please note i have blocked out certain sensitive information.
php.ini - Code: Select all
[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"
When trying to configure php.ini previously, i uncommented the 'smtp =' & 'sendmail-from' lines and added my details as that's what i'd learnt from another forum. However now i have stuck to the instructions you gave to other member.
sendmail.ini - Code: Select all
# 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 Home
tls on
tls_starttls off
tls_certcheck off
host ####.#####.co.uk
from ####@####.co.uk
auth on
port 25
user ##########
password ##########
# Set a default account
account default : Home
Before i added 'tls_starttls off' i was getting the following error message in sendmail log:
- Code: Select all
Jan 04 20:24:05 host=#####.#####.co.uk tls=on auth=on user=####@#####.co.uk from=####@#####.co.uk recipients=####@#####.co.uk errormsg='the server does not support TLS via the STARTTLS command' exitcode=EX_UNAVAILABLE
After i added 'tls_starttls off' i had the following message come up in sendmail log:
- Code: Select all
Jan 04 20:26:52 host=#####.#####.co.uk tls=on auth=on user=####@#####.co.uk from=####@#####.co.uk recipients=####@#####.co.uk errormsg='TLS handshake failed: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol' exitcode=EX_IOERR
Sorry if this message is a bit longwinded. I just wanted to give you as much info as i could. The script i've been testing was copied from Wc3 website .
I appreciate you taking the time to read this message
Thanks