This according to me should not give error,<br>Try giving a valid email id and then see what happens<br><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 4:14 PM, John Mitchell <span dir="ltr">&lt;<a href="mailto:mitchelljj98@gmail.com">mitchelljj98@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Within a custom module I am trying to send the below so that an email is sent but I get the error <i>The submitted from address () is not valid.</i>  This <i>from </i>email address does exist so why is it giving me this error?<br>


<br>Thanks,<br><br>John<br><br>$message = array(<br>  &#39;to&#39; =&gt; &#39;<a href="mailto:username1@domain123.com" target="_blank">username1@domain123.com</a>&#39;,<br>  &#39;subject&#39; =&gt; t(&#39;Example subject&#39;),<br>

  &#39;body&#39; =&gt; t(&#39;Example body&#39;),<br>
  &#39;headers&#39; =&gt; array(&#39;From&#39; =&gt; &#39;<a href="mailto:support@domain123.com" target="_blank">support@domain123.com</a>&#39;),<br>);<br>drupal_mail_send($message);<br><font color="#888888"><br clear="all">

<div style="display: inline;">
</div><br>
-- <br>John J. Mitchell<br>
</font><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Vaibhav Jain<br>