![]() |
|
[.NET] A first chance exception of type 'System.Net.Mail.SmtpException' occurred in System.d - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] A first chance exception of type 'System.Net.Mail.SmtpException' occurred in System.d (/showthread.php?tid=3581340) |
A first chance exception of type 'System.Net.Mail.SmtpException' occurred in System.d - ExaNet - Jun 27, 2013 Today when I woke up to start working on my sms bomber project again I was continually getting "A first chance exception of type 'System.Net.Mail.SmtpException' occurred in System.dll" when I wasn't getting that at all yesterday. I have the bomber running off of 5 BackGroundWorkers on a timer. I tried 3 different emails and the last one I tried sent about 4 messages then went to doing the error again. Edit: Just bought an smtp server and that is doing it as well. * - Cody8295 - Jun 27, 2013 Check the inner exception and let us know what it is. * - ExaNet - Jun 27, 2013 (Jun 27, 2013 12:34 PM)Cody8295 Wrote: Check the inner exception and let us know what it is.There isn't any. It only happens when I try to send. And it sends a few but others don't. * - shebang - Jun 27, 2013 (Jun 27, 2013 12:56 PM)ExaNet Wrote: There isn't any. It only happens when I try to send. And it sends a few but others don't. It's possible the SMTP server you're using is throttling your sending, however I'm not sure if that would create an exception. Which mail server are you using? * - Cody8295 - Jun 27, 2013 (Jun 27, 2013 12:56 PM)ExaNet Wrote: There isn't any. It only happens when I try to send. And it sends a few but others don't. I meant, do a try/catch, and catch for SmtpExceptions, then let us know the message. * - ExaNet - Jun 27, 2013 (Jun 27, 2013 01:00 PM)Cody8295 Wrote: I meant, do a try/catch, and catch for SmtpExceptions, then let us know the message.Lol, when I switched to my smtp server I forgot to change the info on all of the workers. Working now, thanks! |