[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.
Vaibhav Jain
in.vaibhavjain at gmail.com
Thu Mar 31 10:55:42 UTC 2011
This according to me should not give error,
Try giving a valid email id and then see what happens
On Thu, Mar 31, 2011 at 4:14 PM, 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
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
--
Regards,
Vaibhav Jain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110331/1b908aee/attachment.html
More information about the support
mailing list