berthe
1st September 2004, 15:30
Hi,

I want to send emails with BaanErp. Therefor, I tried the example in "How to use the eMessage Connector API to construct and send a message", but the code fails while executing the function cmf.startService.
The first parameter in this function should be the service offered by a provider, for example, Fax or Email. I want to use Email, so I entered "outlook.exe", but this doesn't work.
Wat should I enter exactly? cmfuiadap.exe doesn't work neighter.

Thanks,
Berthe

maxime
10th September 2004, 10:28
You Should enter "EMail"

Hope this helps.

Maxime

NPRao
10th September 2004, 20:27
Berthe,

You should be using -

if not cmf.startService("OUTLOOK", 2) then
ret = cmf.send(cmf.MessageObject,"OUTLOOK")
on case ret
case -1:
mess("zmadms0049", 1)
|* Error sending message
break
case -2:
mess("zmadms0050", 1)
|* Outlook Service not started
break
endcase
e = cmf.stopService("OUTLOOK", 2)
|destroy objects
e = cmf.destroy(attachment.id)
e = cmf.destroy(cmf.MessageObject)
else
mess("zmadms0050", 1)
|* Outlook Service not started
endif

The service name is the entry you entered in the Service Providers.

berthe
14th September 2004, 15:01
Hi,

EMail didn't work, but OUTLOOK works fine.

Thanks a lot!
Berthe

jmathew
15th September 2004, 08:25
Hi Rao,

I have not tried to send email through Baan session. I would like to give a try. Please let me know how i could send a message in Outlook to a specific user from a Baan Session. I would like to know the coding for this purpose.

Thanks in advance!!!