
Most of us know how to send an e-mail with attachment. But do you know how you can do this using drupal 7? Not sure, then read on.
In this article, I am going to address 2 isssues.
Sending an e-mail with an attachment.
Sending an e-mail with multiple attachments.
Sending an e-mail in Drupal 7 with an attachment
The steps to be followed are:
Step 1: Install and enable the modules MIME mail and Mail system.
Step 2: Define hook_mail() in your custom module.
The synatx is as follows: