Error on Sending mail asp.net mvc
<p>Hi whenever i am trying to send the mail from my application on account creation i get the following error.</p>

<p>User not local; please try a different path. The server response was: Bad Recipient                             at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException&amp; exception)</p>

<p>Smtp settings provided by client is all right.When i replace my smtp setting with gmail smtp settings on web.config mail is going smoothly.but when my smtp setting is set to the smtp setting provided by client above error occurs.</p>

<p>I have the folloeing in my web.config.</p>

<pre><code>&lt;mailSettings &gt;
      &lt;smtp deliveryMethod="Network" from="from addressm" &gt;
        &lt;network defaultCredentials="true" host="hostname" port="25" userName="username" password="password"  /&gt;
      &lt;/smtp&gt;
    &lt;/mailSettings&gt;
</code></pre>
