SEND EMAIL

SEND EMAIL

Postby MGA » Fri Feb 08, 2013 8:10 pm

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

thanks
ubiratanmga@gmail.com

FWH18.02
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1234
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: SEND EMAIL

Postby anserkk » Sat Feb 09, 2013 10:28 am

User avatar
anserkk
 
Posts: 1331
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: SEND EMAIL

Postby MGA » Sat Feb 09, 2013 6:07 pm

Anser,

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

:)
ubiratanmga@gmail.com

FWH18.02
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1234
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: SEND EMAIL

Postby Enrico Maria Giordano » Sun Feb 10, 2013 10:46 am

Is CDO supported on all the existing Windows versions?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8348
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: SEND EMAIL

Postby fafi » Mon Feb 11, 2013 2:27 pm

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

EMG

Yes.. I used with Seven
User avatar
fafi
 
Posts: 169
Joined: Mon Feb 25, 2008 2:42 am


Re: SEND EMAIL

Postby MGA » Tue Feb 12, 2013 7:18 pm

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

FWH18.02
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1234
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: SEND EMAIL

Postby anserkk » Wed Feb 13, 2013 4:07 am

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/ms526296%28v=exchg.10%29.aspx

Regards
Anser
User avatar
anserkk
 
Posts: 1331
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: SEND EMAIL

Postby Enrico Maria Giordano » Thu Mar 21, 2013 7:02 pm

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

Re: SEND EMAIL

Postby TimStone » Thu Mar 21, 2013 9:32 pm

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
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: SEND EMAIL

Postby Enrico Maria Giordano » Thu Mar 21, 2013 10:41 pm

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  Expand view
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
Enrico Maria Giordano
 
Posts: 8348
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: SEND EMAIL

Postby TimStone » Thu Mar 21, 2013 10:50 pm

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
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: SEND EMAIL

Postby Enrico Maria Giordano » Thu Mar 21, 2013 11:05 pm

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

Re: SEND EMAIL

Postby TimStone » Thu Mar 21, 2013 11:25 pm

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
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: SEND EMAIL

Postby nnicanor » Fri Mar 22, 2013 1:41 am

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
nnicanor
 
Posts: 295
Joined: Fri Apr 23, 2010 4:30 am
Location: Colombia

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 36 guests