Skip to main content
Fix typo
Source Link
codesmith
  • 302
  • 2
  • 12

You can use hook_mail_alter to customize the From:

MODULE_NAME_mailMODULE_NAME_mail_alter($key, &$message, $params) {

  switch ($key) {
    case 'my_email_key':
      $message['headers']['From'] = 'My Email Name <[email protected]>';
      break;
  }
}

You can use hook_mail_alter to customize the From:

MODULE_NAME_mail($key, &$message, $params) {

  switch ($key) {
    case 'my_email_key':
      $message['headers']['From'] = 'My Email Name <[email protected]>';
      break;
  }
}

You can use hook_mail_alter to customize the From:

MODULE_NAME_mail_alter($key, &$message, $params) {

  switch ($key) {
    case 'my_email_key':
      $message['headers']['From'] = 'My Email Name <[email protected]>';
      break;
  }
}
Source Link
codesmith
  • 302
  • 2
  • 12

You can use hook_mail_alter to customize the From:

MODULE_NAME_mail($key, &$message, $params) {

  switch ($key) {
    case 'my_email_key':
      $message['headers']['From'] = 'My Email Name <[email protected]>';
      break;
  }
}