Link to home
Create AccountLog in
Avatar of doctorbill
doctorbillFlag for United Kingdom of Great Britain and Northern Ireland

asked on

php send mail and xampp

I have been using xampp for some time and sending mail from php pages has been working fine (just using the inbuilt mail php functionality)
I am using a local website on windows
I have recently upgraded to windows 10 and mail no longer sends from my computer

Can someone please suggest where I need to check
Avatar of Systech Admin
Systech Admin
Flag of India image

first check if you are able to telnet the port 25
SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
xampp supplies a mail provider that php uses; I would therefore suspect the win10 firewall is blocking that component - will check tonight if nobody else supplies a solution before then :D
Avatar of doctorbill

ASKER

I have checked the php.ini and sendmail.ini settings
These are exactly the same as they were
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Re this config file:
Do I need to use : after the variable names?

ie. host: smtp.demon.co.uk
or do I just use:
host smtp.demon.co.uk
Also what do I put here as I am sending from a local host:

domain <name of YOUR server when talking to mailserver>
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
I am still unsure of the Domain

My smtp server is smtp.demon.co.uk
username is info@ticktockit.net
I have tried this:
-----------
host smtp.demon.co.uk
port 465
user info@ticktockit.net
password ***********
domain ticktockit.net
from info@ticktockit.net
tls
tls_starttls
tls_certcheck off
----------------

The webpage just hangs
If I try running the test.txt command, again the system just sits there - no progress
The result of the above test:
sendmail.exe: the server sent an empty reply
sendmail.exe: could not send mail (account default from C:\ProgramData\msmtprc.txt)
This is my current msmtprc file:

host smtp.demon.co.uk
port 465
user info@ticktockit.net
password ************ (blanked for security)
domain ticktockit.net
from info@ticktockit.net
tls
tls_starttls
tls_certcheck off
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
I have allowed port 465 and sendmail.exe through the firewall
Have I missed anything ?
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Something else I have found:

If I do the following:
telnet localhost 888
I get a connection to my local xampp servver port

If I do:
telnet localhost 465
telnet localhost 25
There is no response
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
That makes sense - I was not thinking correctly
Basically I am all out of ideas
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
I use outlook 2013 which works fine
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Yes - exactly the same
Still searchin !