SMTP Mail issue

kasunvkasunv Member Posts: 10
I am using 400 -SMTP code unit to automatic send mails in a newly developed module. I am calling SMTP code unit from a newly developed code unit function called sendmails()

sendmails()

SMAIL.CreateMessage('NAV','Kasunv@gmail.com','Kasunv@gmail.com','Subject','Body',FALSE);
SMAIL.Send;

when executing the function in navision classic client stuck but when i put that code into a form button on push trigger it works.

pls help!!!


i used outlook(codeunit 397) but only popup the window with filled details (with send to add,subject,body..etc)
but need to send manualy from window.
i need automatic mails as notifications.

Thanx,
Kasun Vithanage
MITS

Answers

Sign In or Register to comment.