NAS and Outlook

garth
Member Posts: 25
Is it possible to use App server to send mail with Outlook? Mapihandler does not work because of Outlook security prompts. Olhandler bypasses Outlook security, but does not work with NAS (ver 4 sp1).
Any ideas?
Any ideas?
0
Comments
-
We;ve also had problems with Olhandler in NAS.
It seems to check if it is used with the navision client.0 -
A tip is to use Outlook Express instead, even thou I havn't used Nav4Sp1 yet.
Several security warnings can easyliy be set in the security tab, like 'Warn me if another program is trying to send eamil' Yes/No.
I haven't been able find corresponing setttings in 'normal' Outlook
We have an NAS that sends email with no problems under Navision 3.60 and Outlook ExpressRegards
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 20090 -
I tried outlook express with 3.7, but I could not get it to work - there was no error message, and I turned off security but no luck (possibly because it brings up a progress dialog?)
How did you get outlook express to work?[/quote]0 -
Default mailhandler is set to OE
under the menu Tools - Options
tab General, Read, Compose & Maintenace: uncheck all
tab Send: uncheck all but send immediately
tab Security: choose Internet zone, uncheck 'warn me...'
Good luck!Regards
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 20090 -
Default mailhandler is set to OE
under the menu Tools - Options
tab General, Read, Compose & Maintenace: uncheck all
tab Send: uncheck all but send immediately
tab Security: choose Internet zone, uncheck 'warn me...'
Works from client, but not from NAS (3.7). It brings up a dialog progress box - perhaps that's why it fails. Is there a way to turn this off? What version of Outlook Express are you using?0 -
I'm using OE 6.00.3790.1830 (srv03_sp1_rtm.050324-1447)
Yes, the dialog opens if you are running NAS as application. But as far as I know it doesn't if NAS is running as service.
code from Navision
MailMgt = codeunit 6229 (version NAVW13.10)
MyOwnStuff()
... some work
CLEAR(MailMgt);
MailMgt.CreateNewMail(to,cc,subject);
MailMgt.AddBodyLine('some text');
MailMgt.AddBodyLine('ready at '+FORMAT(TODAY)+' '+FORMAT(TIME));
MailMgt.AddBodyLine('workdate '+FORMAT(WORKDATE));
MailMgt.AddValue(1,'dummy');
//there is an error in 3.60 that don't fill in subject and body texts in the email if addvalue is missing
MailMgt.QueueEMail;
CLEAR(MailMgt);
... some other work
later in the code:
CountDown::CountDown(VAR intNextInterval : Integer)
intNextInterval := NASMgt.GetMailInterval * 1000;
MailMgt.SendMailFromQueue;
MyOwnStuff;Regards
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 20090 -
Thanks danlindstrom, that works. I was using codeunit 397 (mail) directly when I should have been using Mail Management.0
-
Does anybody know how to use NAS with Outlook to automatically send mail WITHOUT using commerce portal functionality - just by using the standard Mail codeunit?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