Email Sending error

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/17/2011 7:29:06 AM
Gravatar
Total Posts 7

Email Sending error

Hi,

I'm troubleshooting contact form for sending email,i use Google settings but i didn't get it work till now

2011-01-17 08:15:52,373 ERROR mojoPortal.Net.Email - error sending email to ********@gmail.com from ********@gmail.com, will retry
2011-01-17 08:15:55,826 ERROR mojoPortal.Net.Email - all retries failed sending email to ********@gmail.com from ********@gmail.com, message was: Admin<br />********@gmail.com<br /><br /><p>
Test Text Messege</p>
<br /><br />HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10<br />REMOTE_HOST: 94.59.80.136<br />REMOTE_ADDR: 94.59.80.136<br />LOCAL_ADDR: 50.6.247.90<br />
System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. y17sm2904043qci.33
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at mojoPortal.Net.Email.Send(SmtpSettings smtpSettings, String from, String replyTo, String to, String cc, String bcc, String subject, String messageBody, Boolean html, String priority, String[] attachmentPaths, String[] attachmentNames)

 


---------------------------------------------------


<add key="DisableDotNetOpenMail" value="true"/>
<add key="SMTPServer" value="smtp.gmail.com" />
<add key="SMTPRequiresAuthentication" value="true" />
<add key="SMTPPort" value="587" />
<add key="SMTPUser" value="*******@gmail.com" />
<add key="SMTPPassword" value="*******" />
<add key="SMTPUseSsl" value="true" />
<add key="SMTPTimeoutInMilliseconds" value="30000"/>

---------------------------------------------------

<smtp from="*******@gmail.com">
<network host="DEVPC" port="587" password="1qaz@2WSX" userName="********@gmail.com"/>
</smtp>
---------------------------------------------------

Site Administration --> site settings -->Email Address(es) To Receive Submissions = ********@gmail.com
---------------------------------------------------
Contact form settings -->Email Address(es) To Receive Submissions = *******@gmail.com
---------------------------------------------------
Email is same in all places
---------------------------------------------------

Please help...
 Ahmad

1/18/2011 5:19:53 AM
Gravatar
Total Posts 7

Re: Email Sending error

Hi,

i found the solution and just i want to share it if any body facing it.

the error message indicated you would need to provide the credentials to access this SMTP server and because i enable EnableSiteSettingsSmtpSettings in web.config so I must change it from the site settings in website administration.

 

hope this help any body face this problem..

You must sign in to post in the forums. This thread is closed to new posts.