Hi All,
I want to send mails to customers through outlook.
i have done upto new message creation but i have to click send to send that message.
how to send mail automatically.
there is a function called send.,
can anyone tell me how to use that function. ](*,)
thanks in advance
0
Comments
You can have a look at codeunit 40 SMTP Mail, using which you can create and send emails from navision.
Dynamics NAV Enthusiast
If you are using the Mail codeunit (397) function NewMessage then the last parameter is a boolean to open outlook or not.
try
Mail.NewMessage( ToName, CCName, 'Test', 'Test', '', FALSE );
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Yes am using codeunit 397
at present am using true in above funtion
u mean if i use false then the mail will be sent automatically.am i right?
if i use false in above funtion am geeting the an error and C/side getting closed automatically.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Correct the FALSE will send automatically. What error are you getting?
Remember the this solution still needs a mail client on the machine and will send from that address otherwise you will need to use STMP as Thomas suggested.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
"Microsoft Dynamics NAV Classic has encountered a problem and needs to close. We are sorry for the inconvenience."
should i call any send function or it will send automatically?
what is mail client?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
What I mean by a mail client is to have outlook install on the machine you are sending from.
This is strange - does is work ok with the TRUE parameter and then clicking send?
You might need to update your OLHANDLER.DLL - have a search and you will see lots of posts on this.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
outlook is installed in my system
no problem with dat.
yes its working with true and clicking send.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I have imported OLHANDLER.DLL in custom objects
from 5.0
now its working fine with False
thanks alot to all
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html