SEND EMAIL

MGA
Posts: 1219
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

SEND EMAIL

Post by MGA »

need to send email with FiveWin, someone would have an example?

thanks
ubiratanmga@gmail.com

FWH17.04
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: SEND EMAIL

Post by anserkk »

MGA
Posts: 1219
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Re: SEND EMAIL

Post by MGA »

Anser,

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

:)
ubiratanmga@gmail.com

FWH17.04
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
User avatar
fafi
Posts: 169
Joined: Mon Feb 25, 2008 2:42 am

Re: SEND EMAIL

Post by fafi »

Enrico Maria Giordano wrote:Is CDO supported on all the existing Windows versions?

EMG
Yes.. I used with Seven
MGA
Posts: 1219
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Re: SEND EMAIL

Post 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?
ubiratanmga@gmail.com

FWH17.04
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: SEND EMAIL

Post 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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: SEND EMAIL

Post 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
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: SEND EMAIL

Post 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
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: SEND EMAIL

Post 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
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: SEND EMAIL

Post 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
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: SEND EMAIL

Post 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
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: SEND EMAIL

Post 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
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
nnicanor
Posts: 296
Joined: Fri Apr 23, 2010 4:30 am
Location: Colombia

Re: SEND EMAIL

Post 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
Nicanor Martinez M.
Auditoria y Sistemas Ltda.
MicroExpress Ltda.
FW + FWH + XHARBOUR + HARBOUR + PELLES C + XDEVSTUDIO + XEDIT + BCC + VC_X86 + VCC_X64 + MINGW + R&R Reports + FastReport + Tdolphin + ADO + MYSQL + MARIADB + ORACLE
nnicanor@yahoo.com
Post Reply