Answer the question
In order to leave comments, you need to log in
Using proxy when sending mail via smtp?
Hello!
There is a module for sending messages: PHP + SwiftMailer
It is necessary to send mail through public smtp (mail.ru, gmail.com, etc.) using the login / password from the account, but use a proxy, but I don’t understand how to do this, because to. smtp is already an endpoint.
Those. the scheme is as follows:
Script -> Letter -> Proxying -> SMTP
PS There were thoughts to send requests to nginx, and from there to send it to smtp, but I don’t know how to do this ... Does
anyone have a solution to this problem? Thank you.
Answer the question
In order to leave comments, you need to log in
You need any mail server running in smart host mode. For example, ssmtp or even postfix. As a rule, it is in the chapters on setting up a smart host that it is indicated where to add a login password for an account.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question