Gilbert, Never used it. I have a app. where I use it the same way as mentioned by Tim above. Will look into it, because it seems to have much more options. For reading is the pop3 class ok ? I can read mails with it, but it always deletes them on the server, even If I put oInMail:lDelMsgs := .F. // ...
Marc, did you already try to use the TMail Class? oMail:=TMail():New()oMail:cSubject:="your subject"oMail:aRecipients:={"..."} // your recipient(s)oMail:cNoteText:= "your text"oMail:Activate()oMail:End() I've never made a speci...
Is this also possible for Thunderbird and others ? Marc Tim, maybe this code helps you in any way sending mails via Outlook: static function SendTestMail()local oMail := CreateOutlookMail() oMail:Send()return .t.static function CreateOutlookMail()local oItemlocal o...
in the program, it send by outlook, but with no action from the user. If that is what you mean. The mails are however in the outbox, and you don't want that ?
Tim, maybe this code helps you in any way sending mails via Outlook: static function SendTestMail()local oMail := CreateOutlookMail() oMail:Send()return .t.static function CreateOutlookMail()local oItemlocal oOutlook := GetOutlookObject() oItem := osOutl...
What you are using now is the basic simple MAPI. This doesn't have any of the advanced features that CDO has so you will have issues with those servers that require the use of those features. You are lucky that the server your client is using doesn't require any of them.
Everyone, I notice several of you have been having trouble with CDO lately. I have a client that also in having an issue after they installed a new mail server. I was reading up on CDO today and came across this page which lists all the versions of CDO and has the files available for download (it is...
... your routine. The End() method calls MapiLogoff(), so this may be significant. It could create a memory issue, or a CDO issue. METHOD End() INLINE MAPILogOff() No, it is not required. A MAPI session is automatically created and released if you don't use MAPILogon(). EMG
Tim, I see another issue with your code. You need to do: oMail:end() At the end of your routine. The End() method calls MapiLogoff(), so this may be significant. It could create a memory issue, or a CDO issue. METHOD End() INLINE MAPILogOff() I suggest fixing that and declaring oMail as local. Then ...