Page 1 of 1
Mail Library: Authentication Support
Posted: Tue Dec 09, 2008 12:59 am
by Gansta93
Hello,
I have not found any way to send a mail via SMTP with authentication with the PureBasic native Mail library.
Is it possible to add authentication support on Mail library?
Posted: Tue Dec 09, 2008 7:43 am
by Kukulkan
Hi,
It is possible to create SMTP with Authentication using the native PB network commands. Just search the forum.
I would like to see SSL authentication. Currently, there is no clean PureBasic way to access SSL SMTP servers like google mail.
Kukulkan
Posted: Tue Dec 09, 2008 6:50 pm
by Seymour Clufley
Yes, SSL is really needed I think.
Posted: Tue Dec 09, 2008 10:25 pm
by Psychophanta
Posted: Wed Dec 10, 2008 8:16 am
by Kukulkan
Hi Psychopantha,
I know this forum-thread (I answered four times in this thread). But the result is:
- no SSL/TLS support with PureBasic
- no OS-independent way
- a COM component (250$) is available (WIN only)
- SocketTools for about 99$ (WIN only)
I think there will be a way using OpenSSL, but I don't know how.
Kukulkan
Posted: Thu Dec 18, 2008 3:49 pm
by KatSeiko
Actually, a command like SendMailAuth(Adresses$, Title$, Body$, Username$, Password$) is long time overdue...
I mean - we have SMTP Authorization for how long now? 6 years? 7 years? Longer?
It's time for PureBasic to adapt.
Posted: Mon Dec 22, 2008 5:44 am
by USCode
Without User/Password authentication support this library is really limited in usability and should probably have not been released without it. I personally haven't had an ISP that allowed me to send emails without a username/password.
Posted: Mon Dec 22, 2008 8:32 am
by Little John
USCode wrote:Without User/Password authentication support this library is really limited in usability and should probably have not been released without it. I personally haven't had an ISP that allowed me to send emails without a username/password.
That's exactly what I'm thinking, too.
Regards, Little John
Posted: Mon Dec 22, 2008 9:54 am
by Seldon
I agree, very few SMTP servers work without authentication. Anyway, I've been using PureSMTP so far for this, but it doesn't work anymore with 4.30 as most LIBs (problem with StringExtension). BTW, does someone know if we can do something ? Or just waiting for a new release of each user LIB ?
Posted: Mon Dec 22, 2008 11:01 am
by Kiffi
Seldon wrote:I've been using PureSMTP so far for this, but it doesn't work anymore with 4.30 as most LIBs (problem with StringExtension).
gnozals Libs are ready for PB4.30:
http://freenet-homepage.de/gnozal/#UserLibs
Greetings ... Kiffi
Future security enhancements?
Posted: Mon Dec 22, 2008 10:35 pm
by USCode
I've been reviewing the SMTP protocol and to add simple user/password authentication is very easy, I'm not sure why it isn't in the mail library now ... they must have a good reason as they went to all the work to develop the library in the first place. Maybe they're waiting to wrap the OpenSSL library first and give all those security features at once in a future release.
Adding user/password authentication (required by my ISP) appears to be merely a matter of also issuing a AUTH LOGIN, followed by the user and password in Base64. I tried it interactively using Telnet and using PB's Base64 encoder function to generate the Base64 strings and it worked perfectly.
http://technet.microsoft.com/en-us/libr ... G.65).aspx
Hopefully 4.40 will have the necessary goodies!

Posted: Mon Jan 05, 2009 10:41 pm
by Wolf
+1
Really needed now!
Posted: Tue Jan 20, 2009 5:17 pm
by DoubleDutch
+1
Re: Mail Library: Authentication Support
Posted: Mon Jun 07, 2010 6:09 pm
by swhite
Hi
I would like to add my vote for adding Authentication Support for smtp.
Thanks,
Simon