[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:45:40 UTC 2011
Also I forgot to mention below that this is on drupal 6.
On Thu, Mar 31, 2011 at 6:44 AM, John Mitchell <mitchelljj98 at gmail.com>wrote:
> 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
>
--
John J. Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110331/149200be/attachment.html
More information about the support
mailing list