Click here to Skip to main content
15,901,853 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
allodoxaphobia11-Jan-11 20:10
allodoxaphobia11-Jan-11 20:10 
AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
Lokanta_b11-Jan-11 20:11
Lokanta_b11-Jan-11 20:11 
AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
Gareth.pn11-Jan-11 22:31
professionalGareth.pn11-Jan-11 22:31 
AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
abhisheksingh15612-Jan-11 0:14
abhisheksingh15612-Jan-11 0:14 
AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
TheCodeMonk12-Jan-11 4:59
TheCodeMonk12-Jan-11 4:59 
AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
jschell12-Jan-11 8:30
jschell12-Jan-11 8:30 
AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
Fred Bakker12-Jan-11 8:49
Fred Bakker12-Jan-11 8:49 
AnswerRe: [VB.NET 2010] Sending mail only works sometimes Pin
Vika Dev12-Jan-11 12:17
Vika Dev12-Jan-11 12:17 
Long time lurker, first time poster...

Ok, going to do a bit of a sum up here.

The issues you are seeing are most likey caused by a firewall on the user side, either on the machine or their ISP. A lot of ISP's won't allow residental users to send email out on port 25. Since you don't know what port is allowed, you'd have to have the user configure your app. Not a good idea. Or it could be a local firewall blocking the message because it doesn't know your app is allowed to send. Again, a configuration by your user would need to occur, and again, not a great idea, especially if you don't like support calls.

I'm with those that think it's a bad idea to use an SMTP transport to send an error message for an app outside of your network (we use smtp extensively inside our network), mainly because of security concerns. The username/password combo is used to authenticate a relay of the email message. This is bad to use outside of your network because someone could reverse engineer your code, find the username and password and start spamming through your mail server. If you insist on using SMTP, I would do a TRY CATCH to make sure the app can handle its own error and maybe set a counter to try more then once, then give up. You would also create a text file that you could have the user send to you as a backup.

If I was doing this, I'd probably look at creating a web service that the client app can send the message to and have it then emailed to me and/or inserted into a database. The issue there might be that the user has to approve the outbound request, but that shouldn't be too big of a deal. If you need a web service sample, let me know.

Cheers,

Mike
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
The Mighty Atom12-Jan-11 13:13
The Mighty Atom12-Jan-11 13:13 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Michel Godfroid12-Jan-11 22:21
Michel Godfroid12-Jan-11 22:21 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Vika Dev13-Jan-11 3:58
Vika Dev13-Jan-11 3:58 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
The Mighty Atom13-Jan-11 8:30
The Mighty Atom13-Jan-11 8:30 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Luc Pattyn13-Jan-11 12:22
sitebuilderLuc Pattyn13-Jan-11 12:22 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
The Mighty Atom15-Jan-11 7:54
The Mighty Atom15-Jan-11 7:54 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
shreekar18-Jan-11 5:50
shreekar18-Jan-11 5:50 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
The Mighty Atom19-Jan-11 9:02
The Mighty Atom19-Jan-11 9:02 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
Vika Dev1-Feb-11 16:39
Vika Dev1-Feb-11 16:39 
GeneralRe: [VB.NET 2010] Sending mail only works sometimes Pin
The Mighty Atom2-Feb-11 5:35
The Mighty Atom2-Feb-11 5:35 
QuestionMultiple USB Barcode Scanners Pin
KCDude10-Jan-11 10:41
KCDude10-Jan-11 10:41 
AnswerRe: Multiple USB Barcode Scanners Pin
Luc Pattyn10-Jan-11 11:03
sitebuilderLuc Pattyn10-Jan-11 11:03 
AnswerHIDlibrary Pin
David Mujica11-Jan-11 3:30
David Mujica11-Jan-11 3:30 
GeneralRe: HIDlibrary Pin
Vika Dev12-Jan-11 12:20
Vika Dev12-Jan-11 12:20 
GeneralRe: HIDlibrary - New location at GitHub Pin
David Mujica18-Jan-11 6:18
David Mujica18-Jan-11 6:18 
QuestionMessage Removed Pin
10-Jan-11 8:25
KCDude10-Jan-11 8:25 
AnswerRe: Bar Code Scanner Implementation Pin
Luc Pattyn10-Jan-11 8:44
sitebuilderLuc Pattyn10-Jan-11 8:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.