Quickest way to send e-mail

Public

Get raw version
php
  1. $email = 'user1@example.com, user2@example.com';
  2. $subject = 'E-mail subject';
  3. $message = 'E-mail body';
  4. drupal_mail('system', 'mail', $email, language_default(), array(
  5. 'context' => array(
  6. 'subject' => $subject,
  7. 'message' => $message,
  8. )));