Tagged Questions
9
votes
4answers
1k views
How to use drupal_mail() to send emails with custom template
I would like to use the drupal_mail() function to send out emails but with a custom HTML template so that they are in keeping with my website design but I am a complete newbie to hooks and modules ...
1
vote
1answer
125 views
Prevent email from being sent using hook_mail?
I'm trying to implement an access check (a 'do-not-send' list query) just before emails are sent.
I see how to modify the message, but how do I stop a message?.
HOOK_mail ($key, &$message, ...
1
vote
2answers
29 views
I want to assign a role to a user after he confirms his email
I want to assign a role to a user after he confirms his email. How do I do this?
Thanks in advance.
1
vote
1answer
106 views
triggering email from custom module
I have a module that uses hook_menu to create several pages that are populated with SQL query results.
I have been trying to configure drupal_mail and hook_mail to send these results via mail when ...
1
vote
1answer
276 views
hook_mail_alter() - how to access the “contact admin” form fields?
In Drupal 7.10 I have the /contact form open to anyone and would liketo add the Reply-To header to the mail message.
How do I get the value of the e-mail address field in the /contact form - both for ...
5
votes
1answer
2k views
Send email with attachment
I want to send an attachment with drupal_mail() using hook_mail_alter(). Do you have any ideas about which parameter should I use?
Does the variable $param help, in some way?