1

So for example, when a user's creating an account, I want to have the sent email use "From: register@example.com" header.

But also, when I will approve his content I want to use the header "From: info@example.com"

Right now, all emails sent are using the same "From" email header provided in the "Site information" settings.

Any ideas on how to achieve this? Thanks

1

use hook_mail_alter function in your custom module and change the from address based on your requirements.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.