[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 11:37:28 UTC 2011
I did give a valid email id. The example below just does not show it but
within the actually module I do have a valid email address.
John
On Thu, Mar 31, 2011 at 6:55 AM, Vaibhav Jain <in.vaibhavjain at gmail.com>wrote:
> 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
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
--
John J. Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110331/a7b4340a/attachment.html
More information about the support
mailing list