Page 1 of 1

SMTP Problem

PostPosted: 20. December 2023 02:47
by timlab55
I'm using XAMPP for windows. I have papercut SMTP as will running in the background. I have 3 scripts in my program. The 1st script goes to my webserver, the 2nd script sends me an email that someone filled out my contact form, and the 3rd script sends out an email to the person who filled out my contact form. When running on my website, it works, but in XAMPP it doesn't. The only email I get back is my 1st one. So what is it that I"m doing wrong in the configuration file?

Re: SMTP Problem

PostPosted: 20. December 2023 12:56
by Nobbie
Emails coming from private SMTP servers (i.e. private IPs) are mostly blocked in the internet due to SPAM problems. Only registered SMTP servers (like GMX, Gmail and so on) are accepted.

Re: SMTP Problem

PostPosted: 20. December 2023 13:14
by timlab55
@Nobbie - What can I use to see how my emails are working from XAMPP?

Re: SMTP Problem

PostPosted: 20. December 2023 19:52
by Nobbie
The SMTP server which you apply for your "normal" Emails/Client (Thunderbird etc.). You CANNOT use your local PC as SMTP server.

If you only want to see the Emails (without physically sending them), you might use one of many "fake" sendmail programs, even a simple batch script does it. On https://www.glob.com.au/sendmail/ you will find a couple of examples how to proceed.