$attachment = array(
'filepath' => 'README.txt'
);
drupal_mail('system', 'mail', 'mail@gmail.com', language_default(), array(
'context' => array(
'subject' => 'Some subject',
'message' => 'Some message',
'attachment' => $attachment
)
));
$attachment = array(
'filepath' => 'README.txt'
);
drupal_mail('system', 'mail', 'mail@gmail.com', language_default(), array(
'context' => array(
'subject' => 'Some subject',
'message' => 'Some message',
),
'attachments' => array($attachment),
));