0

I want to call function in mail body. I am using Rules modules for sending mail on some event triggers.

anyone have idea, how can i achieve this?

1

You can alter the mail content using hook_mail_alter

hook_mail_alter() allows modification of email messages created and sent with drupal_mail(). Usage examples include adding and/or changing message text, message fields, and message headers.

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.