Page 1 of 3

SEND EMAIL

Posted: Fri Feb 08, 2013 8:10 pm
by MGA
need to send email with FiveWin, someone would have an example?

thanks

Re: SEND EMAIL

Posted: Sat Feb 09, 2013 10:28 am
by anserkk

Re: SEND EMAIL

Posted: Sat Feb 09, 2013 6:07 pm
by MGA
Anser,

thanks!!!!!!!!!!!

:)

Re: SEND EMAIL

Posted: Sun Feb 10, 2013 10:46 am
by Enrico Maria Giordano
Is CDO supported on all the existing Windows versions?

EMG

Re: SEND EMAIL

Posted: Mon Feb 11, 2013 2:27 pm
by fafi
Enrico Maria Giordano wrote:Is CDO supported on all the existing Windows versions?

EMG
Yes.. I used with Seven

Re: SEND EMAIL

Posted: Mon Feb 11, 2013 3:21 pm
by Enrico Maria Giordano
Thank you.

EMG

Re: SEND EMAIL

Posted: Tue Feb 12, 2013 7:18 pm
by MGA
Mr. Anser,

I'm having problems with special characters (accents), I tried to solve this:

WITH OBJECT oEmailMsg
...
:BodyPart:Charset = "utf-8"
:TextBody = 'Feliz aniversário você merece toda atenção!'
:Send()
END WITH

Can you help me?

Re: SEND EMAIL

Posted: Wed Feb 13, 2013 4:07 am
by anserkk
Sorry I have not tried playing with different character set in CDO.

The following link may be useful for you. There is also a sample code provided
http://msdn.microsoft.com/en-us/library ... 10%29.aspx

Regards
Anser

Re: SEND EMAIL

Posted: Thu Mar 21, 2013 7:02 pm
by Enrico Maria Giordano
I'm getting erratic errors from Send() method that is not replicable. Anyone got that error and found a way to solve the problem?

EMG

Re: SEND EMAIL

Posted: Thu Mar 21, 2013 9:32 pm
by TimStone
There are many threads here about Email, and I'm probably on most of them.

My main problem has consistently been the need to use SSL on SMTP servers. It is simply not supported in FWH, or Harbour. At least, in all the things I have found, its just not there.

I tried CDO, and it worked on my computer, but once again, there was an epic failure on most of my clients' systems.

Two add on libraries were suggested. I obtained trial copies, but both companies said they had no idea how to use them in a FWH application. I asked here but could not receive a sample implementation.

So now, as more and more ISPs require SSL on their email servers, my clients are getting ANGRY !

I would sure love an SMTP system that works . Sadly, the native system to FWH does not support SSL either, nor does it support attachments.

I realize that there are many nice projects out there for FWH people to work on, but this need has been out there for the past 5 years !

Tim

Re: SEND EMAIL

Posted: Thu Mar 21, 2013 10:41 pm
by Enrico Maria Giordano
Tim,
TimStone wrote:My main problem has consistently been the need to use SSL on SMTP servers. It is simply not supported in FWH, or Harbour. At least, in all the things I have found, its just not there.
CDOSYS does support SSL:

Code: Select all

oCfg:Item( "http://schemas.microsoft.com/cdo/configuration/smtpusessl" ):Value :=  .T.
TimStone wrote:I tried CDO, and it worked on my computer, but once again, there was an epic failure on most of my clients' systems.
It works fine for me, most of the time. It seems to fail only sometime. And after the fault, it works fine again on the same operation. Surely this is not a SSL problem. If it were so then it wouldn't work at all.
TimStone wrote:Sadly, the native system to FWH does not support SSL either, nor does it support attachments.
That's why I'm trying to use CDOSYS. It support SSL and attachments.

EMG

Re: SEND EMAIL

Posted: Thu Mar 21, 2013 10:50 pm
by TimStone
Yes, but the keyword is TRYING ... and I did implement it, but then on my customers' machines it FAILED completely. I would have to go in and check about 400 computers individually and that just isn't effective.

Tim

Re: SEND EMAIL

Posted: Thu Mar 21, 2013 11:05 pm
by Enrico Maria Giordano
I used CDOSYS for years on the web (IIS) and it never failed. I don't know why it fails sometimes on a FWH application, yet...

EMG

Re: SEND EMAIL

Posted: Thu Mar 21, 2013 11:25 pm
by TimStone
OK ... I used the setup that came in this thread with my data modifications. As I said, it worked fine on my computer.

I can try it with a few clients for testing. Maybe it will work for them.

Tim

Re: SEND EMAIL

Posted: Fri Mar 22, 2013 1:41 am
by nnicanor
CDO fails in conditions where you are using port 25, to avoid this problem you must use SSL or diferent smtp port, other problem is caused if your ISP provider block port 25, i used in diferent environments with autenticated sessions and no problems since windows xp windows 2008 and servers since 2003 and servers 2012.

All applications compiled with Harbour, xHarbour and BCC, MSVC, Pelles and MINGW compilers without problems and all working fine.

Regards,

Nicanor