Answer the question
In order to leave comments, you need to log in
Simulation of sending a letter via smtp in php?
How to simulate sending email via smtp via php?
It is not the sending itself, but the simulation of sending.
This is needed to test the connection.
Answer the question
In order to leave comments, you need to log in
Connect to the server, but do not send email.
PHPMailer's "connect" function can be seen as an example - https://github.com/PHPMailer/PHPMailer/blob/master...
What's stopping you from setting up a local postfix with options to redirect mail to a specific address or hold send?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question