Answer the question
In order to leave comments, you need to log in
How to change sender email dynamically?
On the site, one user publishes content, another user can send a message to him through the site and then communicate only by mail. That is, the site as a link between two users.
But! The problem is that sending via yii2 swiftmail doesn't work if I do like this
...
->setFrom('[email protected]');
...
Answer the question
In order to leave comments, you need to log in
the sender should be your business email, and in the body of the letter you insert a link button with mailto that will generate a letter to the desired user.
Spammers dreamed about your decision about 5 years ago.
It turns out that your script can send a message on behalf of any user? without the knowledge of the user?
- But this user entered his mail!you say.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question