FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error with Microsoft Outlook : Help to all
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Error with Microsoft Outlook : Help to all
Posted: Mon Apr 26, 2010 10:02 AM
I/m trying to receive message from outlook and drag message into my application

I saw the test of Maestro Otto and it run ok

but I need some information and all variables of each messages I can save

LOCAL oOutlook := TOleAuto():New( "Outlook.Application" )

for sample

I cannot insert the variable oMail:From

it make an error Error Outlook.Application:ACTIVEEXPLORER:SELECTION:ITEM/0 S_OK: FROM



and I wish to save also the oMail:CC


Now I can save only these data : oMail:subject, oMail:To, oMail:ReceivedTime, oMail:CreationTime


then I can save the body with oMail:body but if I insert a richedit control I wish save the oMail:htmlbody but I cannot see it as a html why ?
FWH .. BC582.. xharbour
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: Error with Microsoft Outlook : Help to all
Posted: Mon Apr 26, 2010 12:09 PM

MdaSolution,
I get the same error.
Could it be that <FROM> is a reseved word for Harbour?
Best regards,
Otto

Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Error with Microsoft Outlook : Help to all
Posted: Mon Apr 26, 2010 07:00 PM

MdaSolution,

To my opinion, oMail:From does not exist.

And it looks logical to me.

If you send an e-mail from your application, through Outlook, the "from" (which is the e-mail-address of your Outlook-account) is added automatically to the e-mail by Outlook.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: Error with Microsoft Outlook : Help to all
Posted: Mon Apr 26, 2010 10:04 PM
Sorry Driessen ,
I think instead it exist :
for sample on Asp I can

Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="mymail@mydomain.com"
myMail.To="someone@somedomain.com"
myMail.TextBody="This is a message."
myMail.Send
set myMail=nothing


I think Mda Solution is trying to use the test of Otto to drag a message from Outlook 2003 to his application with the mouse
From Outlook I have many messages and different oMail:from for each message
If Mda Solution want save each message on his archive must have : from, subject, body , to ( if the message is sent on different office) , time and date of message


I tested many days ago the Otto test but I not remember of this error

I not Know why it make error ...
Best Regards, Saludos



Falconi Silvio
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: Error with Microsoft Outlook : Help to all
Posted: Mon Apr 26, 2010 11:53 PM

msginfo( oMail:SenderName )
msginfo( oMail:SenderEmailAddress )

Best regards,
Otto

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: Error with Microsoft Outlook : Help to all
Posted: Mon Apr 26, 2010 11:57 PM

Otto,
I try but there ia an error

Application

Path and name: C:\Documents and Settings\SILVIO\Desktop\outlook\xTRich.Exe (32 bits)
Size: 1,948,160 bytes
Time from start: 0 hours 0 mins 19 secs
Error occurred at: 27-04-2010, 01:56:03
Error description: Error Outlook.Application:ACTIVEEXPLORER:SELECTION:ITEM/0 S_OK: SENDEREMAILADDRESS
Args:

Stack Calls

Called from: source\rtl\win32ole.prg => TOLEAUTO:SENDEREMAILADDRESS(0)

Best Regards, Saludos



Falconi Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: Error with Microsoft Outlook : Help to all
Posted: Tue Apr 27, 2010 12:00 AM
MdaSolution,

only oMail:SenderName is right for me


Otto..... and Bcc and Cc ( Carbon copy ) any Idea ?
Best Regards, Saludos



Falconi Silvio
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Error with Microsoft Outlook : Help to all
Posted: Tue Apr 27, 2010 05:53 AM
and Bcc and Cc ( Carbon copy ) any Idea ?


Code (fw): Select all Collapse
oMail:Subject
oMail:SenderName  // From
oMail:To
oMail:CC
oMail:Body
oMail:SentOn  // Date Sent
oMail:Attachment // This is a collection object, you have to loop thru and process to read each and every attachments


Today's email programs simply don't disclose "undisclosed recipients" ie BCC.

That's the whole point of BCC. It would be wrong to do so.

Regards
Anser
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: Error with Microsoft Outlook : Help to all
Posted: Thu Apr 29, 2010 02:15 PM

oMail:senton return .t. and not a date !!!!!!!!!!!!!!!

FWH .. BC582.. xharbour

Continue the discussion