Saturday, March 24, 2012

SmtpException has occured: The SMTP server requires a secure connection or the client was

SmtpException has occured: The SMTP server requires a secure connection or the client was not authenticated. The server response was: authentication needed

What else do I have to set to make sure I can send email through my email account.

<mailSettings>

<smtpfrom="myEmailFrom">

<networkhost="smtp.mydomain.com"password="mypwd"userName="myUserName"defaultCredentials="true"/>

</smtp>

</mailSettings>

Newbie

Might take a look at:

http://www.systemnetmail.com/faq/4.2.aspx

You might also ask your ISP or web host, there may be a unique method they use.

Jeff


Hi Jeff, thanks again for your reply. I guess you are the SMTP guy on this forum. I have changed my smtp to smtp.google.com and was able to send out 301 messages before the system died. 301 out of 1000 I was trying.

This is the error message I received -GeneralFailure

I looked it up on the web and it means the following:

The transaction could not occur. You receive this error when the specified SMTP host cannot be found.

I guess this is a pretty good result and I believe that when my web app sends out individual messages one at a time that my email component should work. What do you think??

Newbie


It should work fine, though you'll likely run into throttling issues anywhere unless you specifically use a server that allows bulk mailing. Even then, using a mailing list would be better for performance (a function of the SMTP server, not your code...). Many bulk mail programs will batch mail to avoid these issues, which you can try in your code but it isn't as simple as other options.

Jeff

0 comments:

Post a Comment