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?
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 Express
Regards
Dan Lindström NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer) MBSP Developer for Microsoft Dynamics NAV 2009
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]
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 2009
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?
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
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?
Comments
It seems to check if it is used with the navision client.
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 Express
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 2009
How did you get outlook express to work?[/quote]
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!
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 2009
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?
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;
Dan Lindström
NCSD Navision 2.00 since 1999 (Navision Certified Solution Developer)
MBSP Developer for Microsoft Dynamics NAV 2009