K
K
Kirill Gorelov2016-04-07 21:59:49
PHP
Kirill Gorelov, 2016-04-07 21:59:49

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

2 answer(s)
I
Immortal_pony, 2016-04-07
@Kirill-Gorelov

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...

A
Alexander Kubintsev, 2016-04-07
@akubintsev

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 question

Ask a Question

731 491 924 answers to any question