Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI with Attachments
Message
From
28/07/2003 15:02:57
 
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00814212
Message ID:
00814272
Views:
16
Once again I'm in awe of how quickly you can respond < s >

I have tried the class and it appears to be working - i.e. the sendmail method returns 0 indicating no errors. Problem is, also no email. Stepping through the method code I find everything is exactly as expected until stepping into the .Send(llShowOutlook). There I find I'm in the error routine and the error is the 1429 OLE error. Oddly, the .send(llShowOutlook) doesn't effect the return value so the method leaves returning 0

In any case, no clue as to what is going on now. It successfully created the mapi objects etc

here's my test code:
SET CLASSLIB TO mapimail.vcx additive

o=CREATEOBJECT("cusmapi")

lctext="This is the message to be sent by MAPI"
lcfile="mapimail.txt"

lreturn = o.sendmail("SCHARNAS","asstcpa","chankey@f1tech.com","TEST",lctext,lcfile,.t.,.t.,.f.)

RETURN "I AM DONE AND lreturn = "+STR(lreturn)
>You can use one of the clsses from download area:
>- MAPI Mail Class File #9524
>- Outlook Mail (sequel to MAPI Mail) File #9662
>
>>I am trying to send email with attachments from inside a corporate firewall that does not allow relaying on the smtp server.
>>I am told by the IT department that the solution is to use the MAPI client, which I can do successfully with WWIPstuff. Problem is WW doesn't support attachments for MAPI.
>>
>>Does anyone know a solution to this? Do I need to use outlook automation (the client machines all have Outlook and have email accounts) If so, suggested example code greatly appreciated.
>>
>>TIA
>>
>>Charles


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform