Mail Library: Authentication Support

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Gansta93
Enthusiast
Enthusiast
Posts: 238
Joined: Wed Oct 20, 2004 7:16 pm
Location: The Village
Contact:

Mail Library: Authentication Support

Post 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?
Be seeing you! :-)

Gansta93
If you speak french, you can visite Le Monde de Gansta93 (Gansta93's World)
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Post 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
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Post by Seymour Clufley »

Yes, SSL is really needed I think.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
Kukulkan
Addict
Addict
Posts: 1396
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Post 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
KatSeiko
New User
New User
Posts: 7
Joined: Thu Sep 25, 2008 12:47 am
Location: Between keyboard and chair

Post 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.
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Post 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.
Little John
Addict
Addict
Posts: 4778
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Post 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
Seldon
Enthusiast
Enthusiast
Posts: 405
Joined: Fri Aug 22, 2003 7:12 am
Location: Italia

Post 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 ?
User avatar
Kiffi
Addict
Addict
Posts: 1485
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Post 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
Hygge
USCode
Addict
Addict
Posts: 923
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Future security enhancements?

Post 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! :?:
Wolf
Enthusiast
Enthusiast
Posts: 232
Joined: Sat Apr 03, 2004 12:00 pm
Location: S.T

Post by Wolf »

+1

Really needed now!
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

+1
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
swhite
Enthusiast
Enthusiast
Posts: 789
Joined: Thu May 21, 2009 6:56 pm

Re: Mail Library: Authentication Support

Post by swhite »

Hi

I would like to add my vote for adding Authentication Support for smtp.

Thanks,
Simon
Simon White
dCipher Computing
Post Reply