[support] Within a custom module I am trying to send so that an email is sent but I get the error The submitted from address () is not valid.

John Mitchell mitchelljj98 at gmail.com
Thu Mar 31 10:44:49 UTC 2011


Within a custom module I am trying to send the below so that an email is
sent but I get the error *The submitted from address () is not valid.*  This
*from *email address does exist so why is it giving me this error?

Thanks,

John

$message = array(
  'to' => 'username1 at domain123.com',
  'subject' => t('Example subject'),
  'body' => t('Example body'),
  'headers' => array('From' => 'support at domain123.com'),
);
drupal_mail_send($message);


-- 
John J. Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110331/c873758e/attachment.html 


More information about the support mailing list