VishalMistry
19th November 2015, 12:02
Hello,

is it possible to provide authentication with e-message connector ?

I mean, I want to user external id (gmail or hotmail) for sending mails. Is it possible ?

Or is there any other work-around ? Please guide.

Vishal

vahdani
19th November 2015, 13:08
Hi Vishal,

as far as I know you can use any email address you like for the sender.
The function cmf.setRecipientAddress() (http://www.baanboard.com/programmers_manual_baanerp_help_emessage_connector_cmf_setrecipientaddress) is also used to set the From Adress and takes any string for email address!!

Excerpt from example code:


|Set originator details
from.ID = cmf.createRecipient(messageObject, ttcmf.role.from)
ret = cmf.setRecipientName(from.ID, "John Doe")
ret = cmf.setRecipientAddress(from.ID,"john.doe@example.com")
ret = cmf.setRecipientType(from.ID, "SMTP")

bhushanchanda
19th November 2015, 13:37
Hi,

There is no way to provide authentication with e-message connector as it uses relay access to send email without authentication.

In order to send email, your Mail Server should allow relay access i.e. sending of emails without authentication for the IP address of the server from where you are going to send the mails.

I don't think the Mail servers of Hotmail/Yahoo provide you that option. Gmail & Yahoo does not.

The best way to deal with this is either use your personal mail server or else use an emailing utility like Blat or sqlmail(in case you are using SQL Server, its inbuilt) where you have an option to set the username and password initially.

VishalMistry
19th November 2015, 16:16
Hello Mr.Bhushan,

Now I understand. Thank you very much for sharing this insight. Now I can consider using client side mail application like Outlook.

Vishal