Better email error information

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Better email error information

Post by DoubleDutch »

When using the email lib, just knowing that it fails isn't ideal. It would be much better if there was some more information about why the email actually failed, eg bad password, etc...
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Better email error information

Post by RSBasic »

+1

Either -1, -2, -3 etc. for error codes or GetLastError() function.
Image
Image
BarryG
Addict
Addict
Posts: 3322
Joined: Thu Apr 18, 2019 8:17 am

Re: Better email error information

Post by BarryG »

DoubleDutch wrote:eg bad password, etc...
Isn't that a security/privacy risk? I could try a username with any password just to probe and see if the username existed.
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Better email error information

Post by DoubleDutch »

No. The same thing could be done with a telnet client - You get a message back saying bad username/password. To see what I mean just open telnet with the port of a mail client then type in the commands documented in the RFC docs.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
BarryG
Addict
Addict
Posts: 3322
Joined: Thu Apr 18, 2019 8:17 am

Re: Better email error information

Post by BarryG »

Okay, I'll take your word for it. :) And so, in that case: +1
Post Reply