Hello.
I've been searching in the forum but i didn't find what i was looking for.
I want to send a mail through NAV but that opens Outlook and create a message.
How can i do this?
I've been trying the CU 397 but it doesn't do anything
Thanks
Junior Consultant & Developer in Dynamics NAV
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
0
Answers
You can send it immediately through Outlook, without opening a message in Outlook.
To do that, you use the "New Message" Trigger and just make sure that the last parameter, "OpenDialog", is set to false.
This way it will create the message and send it immediately.
However, you are limited to 260 characters in the body.
It is an easy change to expand that.
Otherwise there is codeunit 400, SMTP mail. This codeunit uses the SMTP protocol and does not use Outlook.
Hope this helps,
Regards,
Willy
I want to see the message but with true or false the outlook only opens and close, if false, or opens.
The outlook doesn't create the message or send it automatticaly....
Can you help?
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
I'll try and help. Have you tried to open MS Outlook prior to running your code?
If not, try and open Outlook and see if your code creates a message.
Does the user that you are using on the box have an Outlook account setup?
Also, the Outlook install that you are using, is it fully registered? If not, you can only use it for about 20 times, I think.
let me know,
Regards,
Willy
I've tried with outlook open and close.
If open and Mail.NewMessage opendialog=TRUE gives an error system and closes NAV, if opendialog=FALSE it opens and closes outlook.
Yes it had and outlook account and it's fully registered.
I Know that the it not pass from here it enters in if and do exit.
if i comment the code enter in this if and give me an error on "ns sincronization handler" Can you help me?
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit
This looks like a mail account error to me.
It sounds like the automation is not able to create a message based on the user account that you are using.
What is the error it generates?
Willy
I solved with an automation of microsoft outlook library 12 but it preferible to use nav code units......
"I'm worse at what I do best
And for this gift I feel blessed
Our little group has always been
And always will until the end"
Nirvana - Nevermind - Smells Like Teen Spirit