Codeunit 397 - modify to not automatically send email

Lisa_Randall
Member Posts: 44
Hi there,
Can you help?...I am currently trying to Generate an email using Navision but instead of sending this i would like to have this generate a draft email so that i can insert text, I know i could used the Addbodyline function but this only seems to allow generic text ( is this correct) ..
Alternatively is there a way within Navision that I could create an email body text which i could then also store against the interaction as well.
Thanks,
Can you help?...I am currently trying to Generate an email using Navision but instead of sending this i would like to have this generate a draft email so that i can insert text, I know i could used the Addbodyline function but this only seems to allow generic text ( is this correct) ..
Alternatively is there a way within Navision that I could create an email body text which i could then also store against the interaction as well.
Thanks,
0
Comments
-
Comment line
//MailSent := OSendMail.Send; //Don't send auto
in NewMessage func.
Also there is a func Send() MailSent : Boolean.
Check that too (I don't know, which CU func are you using)0 -
IS the new message func avaliable in 3.70 ???..I can't see ?0
-
search for ".send" in codeunit 397 there will be only 2 lines; comment them. if you use these functions in a personalized process maybe it's better to copy the functions, comment the lines only in the copied functions and call the copies, leaving standard code unchanged0
-
I have not been able to get this to work. Does anyone have any experience getting this to work? I copied the New Message code to a new function. I only found one line of code with .send and after commenting it out the email isn’t sent But there also is no draft saved.
Also does anyone know where I can find a list of OSendMail Properties? Is what is listed in the C/AL symbol menu all that is available or is there something not listed I am missing, like OSendEmail."Save Draft" but haven't been able to guess yet?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions