angusmann wrote:I altered php.ini like this
- Code: Select all
[mail function]
; For Win32 only.
SMTP = mail.myisp.com.au
smtp_port = 25
; For Win32 only.
sendmail_from = me@myemail.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
You can only use one or the other, SMTP or
Sendmail not both, so the php.ini should look like this below because
sendmail would be what you need if you are requiring authentication which just about all mail server now require.
You May have to tell your script to use
sendmail and possibly it's location.
- Code: Select all
[mail function]
; For Win32 only.
;SMTP = mail.myisp.com.au
;smtp_port = 25
; For Win32 only.
; sendmail_from = me@myemail.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
angusmann wrote:And I altered
sendmail.ini like this:
- Code: Select all
; if your smtp server requires authentication, modify the following two lines
auth_username=myusername
auth_password=mypassword
; if your smtp server uses pop3 before smtp authentication, modify the
; following three lines
pop3_server=mail.myisp.com.au
pop3_username=myusername
pop3_password=mypassword
You are using XAMPP 1.7.2 yet this is not the
sendmail.ini file included in this version, it is the fake
sendmail instance that was included in versions prior to 1.7.2.
In which case I suggest that you upgraded an earlier version of XAMPP by overwriting the files with the 1.7.2 version files instead of uninstalling the older version, then doing a clean new installation of 1.7.2 as there has been major changes that would require a new installation for 1.7.2.
Only upgrade an earlier version if you see there is an upgrade_version_file on the XAMPP for Windows home page.
This is what the 1.7.2
sendmail.ini looks like
- 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 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
The entries in this
sendmail.ini file are only examples.
A search in forum
XAMPP for Windows and a search for keyword
msmtp may give a couple of post that went into some detail about this subject only recently.