F
F
felicast2013-04-16 08:29:05
PHP
felicast, 2013-04-16 08:29:05

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

4 answer(s)
B
Boris Syomov, 2013-04-17
@felicast

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.

K
kaichou, 2013-04-16
@kaichou

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

I also advise you to use the libmail library - webi.ru/webi_files/php_libmail.html

A
Andrey Shevchuk, 2013-04-16
@IIIEB4YK

phpmailer ?

N
Nastradamus, 2013-04-16
@Nastradamus

msmtp allows you to send via smtp with authorization.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question