32 bit SSL SMTP

Windows specific forum
User avatar
RichAlgeni
Addict
Addict
Posts: 914
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: 32 bit SSL SMTP

Post 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.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8433
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: 32 bit SSL SMTP

Post 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.
BERESHEIT
Liqu
User
User
Posts: 77
Joined: Sun Apr 21, 2013 10:31 am

Re: 32 bit SSL SMTP

Post 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 :)
User avatar
RichAlgeni
Addict
Addict
Posts: 914
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: 32 bit SSL SMTP

Post 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
SeregaZ
Enthusiast
Enthusiast
Posts: 619
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: 32 bit SSL SMTP

Post by SeregaZ »

it work only with gmail? how to correct it for anothers mail's servers?
User avatar
RichAlgeni
Addict
Addict
Posts: 914
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: 32 bit SSL SMTP

Post by RichAlgeni »

It works on every email server I've tried it on. GMail, Yahoo, 1and1.

What error are you getting?
SeregaZ
Enthusiast
Enthusiast
Posts: 619
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: 32 bit SSL SMTP

Post by SeregaZ »

Code: Select all

220 smtp5.mail.ru ESMTP ready

EHLO

501 5.5.4 Invalid argument

EHLO Failed: 501
User avatar
RichAlgeni
Addict
Addict
Posts: 914
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: 32 bit SSL SMTP

Post 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
SeregaZ
Enthusiast
Enthusiast
Posts: 619
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: 32 bit SSL SMTP

Post by SeregaZ »

no. english not my language :( i hope that code will work. and hope is dead :)
SeregaZ
Enthusiast
Enthusiast
Posts: 619
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: 32 bit SSL SMTP

Post 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?
User avatar
RichAlgeni
Addict
Addict
Posts: 914
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: 32 bit SSL SMTP

Post 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.
User avatar
RichAlgeni
Addict
Addict
Posts: 914
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: 32 bit SSL SMTP

Post by RichAlgeni »

Code: Select all

"EHLO SeregaZ" + #CRLF$
SeregaZ
Enthusiast
Enthusiast
Posts: 619
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: 32 bit SSL SMTP

Post by SeregaZ »

o! i send i send it :) thanks a lot :)
User avatar
RichAlgeni
Addict
Addict
Posts: 914
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: 32 bit SSL SMTP

Post by RichAlgeni »

Did it work?
SeregaZ
Enthusiast
Enthusiast
Posts: 619
Joined: Fri Feb 20, 2009 9:24 am
Location: Almaty (Kazakhstan. not Borat, but Triple G)
Contact:

Re: 32 bit SSL SMTP

Post by SeregaZ »

in my case - yes.
Post Reply