Answer the question
In order to leave comments, you need to log in
Sending email messages through a remote server
Prompt, please, a way how to organize the following:
There is a certain service (written on PHP). It is necessary to send messages from it. It would be desirable, that the separate server was engaged in mailing. Those. from PHP we call the mail function, which does not send the message directly, but adds it to the queue for subsequent sending by the mail server.
Can you tell me if this can be arranged?
Answer the question
In order to leave comments, you need to log in
Why not:
If you need to have control over the queue and send time, the queue should be done at the PHP level, and then using phpmailer|swiftmailer|etc., or using mail, and configured on the server side forwarding via smarthost, send it to a remote server.
If it is not necessary, just send letters to a remote mail server - there they will just fall into the queue and the server will deliver them from it if possible.
Any mail server is capable of organizing a message queue. Used when you need to distribute thousands of emails, or create a "window" in sending time.
But if you need flexibility (send a specific letter at a specific time), then it will be easier to send it using php on a schedule.
call the mail function from PHP
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question