Error with Microsoft Outlook : Help to all

Error with Microsoft Outlook : Help to all

Postby MdaSolution » 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
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: Error with Microsoft Outlook : Help to all

Postby Otto » 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: Error with Microsoft Outlook : Help to all

Postby driessen » Mon Apr 26, 2010 7: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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Error with Microsoft Outlook : Help to all

Postby Silvio » 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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Error with Microsoft Outlook : Help to all

Postby Otto » Mon Apr 26, 2010 11:53 pm

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

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6329
Joined: Fri Oct 07, 2005 7:07 pm

Re: Error with Microsoft Outlook : Help to all

Postby Silvio » 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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Error with Microsoft Outlook : Help to all

Postby Silvio » 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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Error with Microsoft Outlook : Help to all

Postby anserkk » Tue Apr 27, 2010 5:53 am

and Bcc and Cc ( Carbon copy ) any Idea ?


Code: Select all  Expand view
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
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Error with Microsoft Outlook : Help to all

Postby MdaSolution » Thu Apr 29, 2010 2:15 pm

oMail:senton return .t. and not a date !!!!!!!!!!!!!!!
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 113 guests