Page 1 of 1

Smtp help needed

Posted: Sun Apr 24, 2011 12:21 am
by Randal
All,

I need to add email capability to our app, our users will be emailing invoices & statements as PDF attachments, possibly hundreds of emails at a time. This needs to work across a wide variety of platforms, i.e. XP, Vista, and Win 7 (32 & 64 bit). I can get the smtp class to send emails on my computer through port 25 and my local isp (comcast) but I cannot get it to work with gmail or yahoo.

Does anyone have an example of how to send email using the smtp class to a gmail account?

With debug turned on and using port 465 I the following in the log:
04/23/11 19:08:41: Connect Socket handle: 180
04/23/11 19:08:41: Write Socket handle: 180

and that's it. The email is never received.

In other suggestions for an email solution would be appreciated. I don't want to use mapi as most of our users won't have a mapi compliant email program on their computer. Many of our users use gmail, yahoo, or some other provider. So it needs to work with most popular isp's and those that require authentication.

I would certainly consider any 3rd party products if they meet the above requirements.

Thanks,
Randal

Re: Smtp help needed

Posted: Sun Apr 24, 2011 3:23 am
by Colin Haig
Hi Randal

If you do a search for GMAIL in the Fivewin for Harbour/xHarbour area you will find
a sample using GMAIL by a person named Jack. I not sure how to put the article link
in a message.

Regards

Colin

Re: Smtp help needed

Posted: Sun Apr 24, 2011 7:56 am
by Randal
Colin:

Thanks for the suggestion. I saw this post however, the gmail example uses CDO. CDO doesn't come on Win 7. I was hoping to find a solution that was more self-contained and not require our users to download a package from MS.

What are other people doing to email enable their apps? Most users are using gmail, yahoo, etc. and require ssl/tls even if their local isp offers a non ssl/tls smtp server. Do you just make users send mail via their local isp smtp server?

Thanks,
Randal

Re: Smtp help needed

Posted: Sun Apr 24, 2011 8:50 am
by IBTC
Hi Randal,
Randal wrote:I would certainly consider any 3rd party products if they meet the above requirements.
Have a look at the SocketTools Library Edition of Catalyst Development.

Re: Smtp help needed

Posted: Sun Apr 24, 2011 3:22 pm
by Bayron
Try this:

http://forums.fivetechsupport.com/viewt ... 30#p113518

I tested with gMail, and it works perfect.... You can use, gMail, Hotmail, etc, etc...

Re: Smtp help needed

Posted: Sun Apr 24, 2011 10:36 pm
by Randal
Ruediger:

Thanks, this looks like it has everything. Do you have any experience with their products?

Randal

IBTC wrote:Hi Randal,
Randal wrote:I would certainly consider any 3rd party products if they meet the above requirements.
Have a look at the SocketTools Library Edition of Catalyst Development.

Re: Smtp help needed

Posted: Sun Apr 24, 2011 10:38 pm
by Randal
Bayron:

This looks like it uses CDO also. CDO doesn't come on later versions of Windows and you have to install it from Microsoft.

Thanks,
Randal

Bayron wrote:Try this:

http://forums.fivetechsupport.com/viewt ... 30#p113518

I tested with gMail, and it works perfect.... You can use, gMail, Hotmail, etc, etc...

Re: Smtp help needed

Posted: Sun Apr 24, 2011 10:43 pm
by IBTC
Hi Randal,
Randal wrote: Do you have any experience with their products?
Not yet, because of lack of time. :(

Re: Smtp help needed

Posted: Sun Apr 24, 2011 11:07 pm
by Bayron
Randal,

I just downloaded, compiled and tested, i did not check it yet, but, I have a Windows 7 Ultimate computer, and ran perfectly, without installing anything.....

Re: Smtp help needed

Posted: Mon Apr 25, 2011 6:06 pm
by Randal
Bayron:

Do you have IIS installed? If you do a google search for CDO + Windows 7 you can find plenty of information to verify that CDO is not install on Win 7 computers by default.

Thanks,
Randal

Re: Smtp help needed

Posted: Mon Apr 25, 2011 7:07 pm
by Gale FORd
I have found the OstroSoft SMTP Component to be very fast and reliable. The price is very reasonable also.

Re: Smtp help needed

Posted: Mon Apr 25, 2011 9:25 pm
by Randal
Gayle:

Thanks for the suggestion. I checked it out and it looks like they only have components for .NET. They have an older version of their component for COM but it does not support ssl/tls. I sent them an email to verify this but I've not heard back from them.

Thanks,
Randal
Gale FORd wrote:I have found the OstroSoft SMTP Component to be very fast and reliable. The price is very reasonable also.

Re: Smtp help needed

Posted: Wed May 18, 2011 1:08 pm
by Davide
Randal,
Randal wrote:Do you have IIS installed? If you do a google search for CDO + Windows 7 you can find plenty of information to verify that CDO is not install on Win 7 computers by default.
just tested my Win7 professional 64bit and CDO works good without having me to install anything special.

Hi,
Davide

Re: Smtp help needed

Posted: Wed May 18, 2011 1:52 pm
by Richard Chidiak
Randal

Same for me , i use CDO without problems and i did not install anything for this.

Win 7 premium home edition 64 bits

Hth

Richard