Page 5 of 6

Re: 32 bit SSL SMTP

Posted: Thu Sep 18, 2014 8:09 pm
by RichAlgeni
One of the requirements of being a good developer is to know when to stop trying to reinvent the wheel. Fred and Freak have already created a send mail library:

Code: Select all

http://www.purebasic.com/documentation/mail/index.html
Use it to see how it works. Send attachments to your SMTP code, and see the format of how it comes in. Then create code that does the same thing.

Re: 32 bit SSL SMTP

Posted: Fri Sep 19, 2014 7:20 am
by netmaestro
ricardo wrote:Hi, Thanks.

The problem is that ATM having a pop3 without SSL is not much usefull.
Does anybody have a working example of pop3 with SSL?
...Anybody? I'd like this too.

Re: 32 bit SSL SMTP

Posted: Fri Sep 19, 2014 11:22 am
by Liqu
@RichAgeni
at first i can't get PB Mail code to work, so i find alternative
but just now, after i tried it again, it works great :)

but no ssl though


Fortunately, i just got a small cmd program to send email to GMAIL, it support SSL/TLS and it's free
I tested it in W7 x64 and it works but i doesn't work on Fresh Installed XP ( they said it need .NET Framework )
[ http://commandlinesendmail.blogspot.com/ ]

Download : http://www.atay.org/downloads/senditquiet.zip

they also post the source code at github :
https://github.com/atays/command-line-e ... nding-tool

Download : https://github.com/atays/command-line-e ... -pages.zip

Edited : It seems it use .NET's SSL ...

Thank you :)

Re: 32 bit SSL SMTP

Posted: Fri Sep 19, 2014 6:06 pm
by RichAlgeni
Guys, I'll try to help you on this, but I'm in the middle of a huge project right now, migrating an older database to PostgreSql, PureBasic and Internet Information Server. So my contributions will continue to be sporadic.

Rich

Re: 32 bit SSL SMTP

Posted: Mon Mar 16, 2015 1:51 pm
by SeregaZ
it work only with gmail? how to correct it for anothers mail's servers?

Re: 32 bit SSL SMTP

Posted: Mon Mar 16, 2015 8:24 pm
by RichAlgeni
It works on every email server I've tried it on. GMail, Yahoo, 1and1.

What error are you getting?

Re: 32 bit SSL SMTP

Posted: Tue Mar 17, 2015 5:52 am
by SeregaZ

Code: Select all

220 smtp5.mail.ru ESMTP ready

EHLO

501 5.5.4 Invalid argument

EHLO Failed: 501

Re: 32 bit SSL SMTP

Posted: Tue Mar 17, 2015 3:27 pm
by RichAlgeni
Have you read any documentation on SMTP?

Code: Select all

EHLO <network name of connecting machine>
https://technet.microsoft.com/en-us/mag ... ssmtp.aspx

Re: 32 bit SSL SMTP

Posted: Tue Mar 17, 2015 3:49 pm
by SeregaZ
no. english not my language :( i hope that code will work. and hope is dead :)

Re: 32 bit SSL SMTP

Posted: Tue Mar 17, 2015 5:02 pm
by SeregaZ
i need to change textToSend = "EHLO" + #CRLF$ in a code to textToSend = "EHLO 111.111.111.111" + #CRLF$ where this 111111 - my ip adress?

Re: 32 bit SSL SMTP

Posted: Tue Mar 24, 2015 2:03 am
by RichAlgeni
It just has to be a name, not your IP address. It assumes it is the name of your server. Use your first name if you want.

Sorry I didn't get back to you sooner, I was out of town.

Re: 32 bit SSL SMTP

Posted: Tue Mar 24, 2015 2:05 am
by RichAlgeni

Code: Select all

"EHLO SeregaZ" + #CRLF$

Re: 32 bit SSL SMTP

Posted: Tue Mar 24, 2015 8:38 am
by SeregaZ
o! i send i send it :) thanks a lot :)

Re: 32 bit SSL SMTP

Posted: Tue Mar 24, 2015 6:02 pm
by RichAlgeni
Did it work?

Re: 32 bit SSL SMTP

Posted: Wed Mar 25, 2015 7:46 am
by SeregaZ
in my case - yes.