Avatar of doctorbill
doctorbill
Flag 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
PHPEmail ClientsApache Web Server

Avatar of undefined
Last Comment
doctorbill

8/22/2022 - Mon
Systech Admin

first check if you are able to telnet the port 25
SOLUTION
Dave Baldwin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dave Howe

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
doctorbill

ASKER
I have checked the php.ini and sendmail.ini settings
These are exactly the same as they were
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
Dave Howe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Dave Howe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Dave Baldwin

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
doctorbill

ASKER
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
doctorbill

ASKER
Also what do I put here as I am sending from a local host:

domain <name of YOUR server when talking to mailserver>
SOLUTION
Dave Howe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
doctorbill

ASKER
I am still unsure of the Domain

My smtp server is smtp.demon.co.uk
username is info@ticktockit.net
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
doctorbill

ASKER
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
doctorbill

ASKER
If I try running the test.txt command, again the system just sits there - no progress
doctorbill

ASKER
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)
Your help has saved me hundreds of hours of internet surfing.
fblack61
doctorbill

ASKER
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
Dave Howe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
doctorbill

ASKER
I have allowed port 465 and sendmail.exe through the firewall
Have I missed anything ?
SOLUTION
Dave Howe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
doctorbill

ASKER
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
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Dave Howe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
doctorbill

ASKER
That makes sense - I was not thinking correctly
Basically I am all out of ideas
SOLUTION
Dave Howe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
doctorbill

ASKER
I use outlook 2013 which works fine
SOLUTION
Dave Howe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
doctorbill

ASKER
Yes - exactly the same
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
doctorbill

ASKER
Still searchin !