Fellows,
I'm still struggling with E-Mail, but on more deep level. The problem I'm having now is verification if the message has been sent. The following is the code that does the sending (I'm using Collaboration Data Objects, or CDO, by suggestion from Mike Gagnon):
So far - so good (as a handiman said, falling from the roof of 100-store building, when passing 31st floor
)
Now I have to check if this E-Mail has been actually sent - and at that point I hit the snag.
Attempts to use .Submitted or .Sent properties in the following lines gave me the same OLE error "0x80020006: Unknown name":
According to the CDO.CHM, both .Sent and .Submitted properties belong to CDO Message object, both s./b. set to True if E-Mail actually has gone through.
What am I doing wrong?
AHWBGA.
Regards,
Ilya
P.S. The funniest thing is that before I started "piddling" with .Sent/.Submitted, the message went out and reached recipient (even though my own E-Mail address) with no problem at all.
I'm still struggling with E-Mail, but on more deep level. The problem I'm having now is verification if the message has been sent. The following is the code that does the sending (I'm using Collaboration Data Objects, or CDO, by suggestion from Mike Gagnon):
Code:
loMSG = CREATEOBJECT("cdo.message")
loMSG.To = <Recipient address>
loMSG.From = lcKeyValueData && Sender's E-Mail Address, obtained from the Windows Registry
loMSG.Subject = <Subject line>
loMSG.TextBody = loMSG.Subject
loMSGAtt = loMSG.AddAttachment(<Full Path To Attachment File>)
loMSG.Send()
So far - so good (as a handiman said, falling from the roof of 100-store building, when passing 31st floor
![[smile] [smile] [smile]](/data/assets/smilies/smile.gif)
Now I have to check if this E-Mail has been actually sent - and at that point I hit the snag.
Attempts to use .Submitted or .Sent properties in the following lines gave me the same OLE error "0x80020006: Unknown name":
Code:
IF !loMSG.Submitted && !loMSG.Sent
= MESSAGEBOX([Cannot send files ] ...
...
ENDIF
What am I doing wrong?
AHWBGA.
Regards,
Ilya
P.S. The funniest thing is that before I started "piddling" with .Sent/.Submitted, the message went out and reached recipient (even though my own E-Mail address) with no problem at all.