You cannot disable the check but there are freeware tools like YesClick or
CLickYes which you can install and they will auto click yes on that dialogue

-----Original Message-----
From: Axapta-Knowledge-Village@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Sumit Loya
Sent: 20 June 2007 01:30
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: Re: [Axapta-Knowledge-Village] Re: Email in Batch with AX3

HI,

The window that pops up is the security window of outlook itself and am not
sure if this can be disabled or not.

But the code you mentioned used the SMTP relay server so should work fine
what is the error you are getting as we have implemented this code
successfully in one of our projects.

Regards,
Sumit


On 6/20/07, Steeve Gilbert <[EMAIL PROTECTED]> wrote:
>
>   You could probably replace the outlook code with the code you found.
> Put some breakpoint in SysOutlook_* classes to find where it is
> trigger and maybe from there you can make the customization.
>
> Good luck.
>
> Steeve...
>
> --- In
Axapta-Knowledge-Village@yahoogroups.com<Axapta-Knowledge-Village%40yahoogro
ups.com>,
> "Andrew Bartley"
> <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > Im having issues with emails, im trying to get Axapta to email us
> > when a job completes. Unfortunatly using standard axapta emailing
> > (tick the box on the batch tab) it uses the Outlook client on the
> > machine.
> >
> > As we run a batch server and run jobs at 2 - 3 am, and with Outlook
> > 2000 SP2 and above it now asks users if they want to confirm an
> > external program is trying to access their address book, and click
> > yes and yes.
> >
> > I would like to change the way this works so that it uses our SMTP
> > settings. As far as i can find there is in Administration - Setup -
> > Email parameters a place for putting this info. However the batch
> job
> > doesnt seem to use or recognise this?
> >
> > Is there any way of turning on this functionality to work with the
> > batch job please?
> >
> > Ive also found the below code which works for sending data from a
> > client which i thought i may be able to manipulate to run with the
> > batch job:
> >
> > static void ARB_EmailJob(Args _args)
> > {
> >
> > // "regsvr32.exe C:\Axapta\Axapta_Client\Bin\dsmailer.dll"
> > // need to register dsmailer on client for this to work.
> >
> > SysEMailBatch mailer;
> > Sysuserinfo Sysuserinfo;
> > userinfo userinfo;
> > str userid;
> > str username;
> > str emailadd;
> > ;
> >
> > userid = curUserId(); // Sets the username to the users current
> id
> >
> > emailadd = sysuserinfo::find(userid).Email; // Finds the users
> > (senders) email address
> >
> > while(!emailadd)
> > {
> > info(emailadd);
> > emailadd = "Axapta";
> > info(emailadd);
> > }
> >
> > select userInfo where userInfo.id == curUserId(); // Selects
> > User details
> > username = userinfo.name;
> >
> > mailer = SysEmailBatch::construct();
> > mailer.parmEmailAddr("[EMAIL PROTECTED]);
> > mailer.parmMessageBody("This is a test message; Please
> > disregard");
> > mailer.parmPriority(emailPriority::Normal);
> > mailer.parmSenderAddr(emailadd);
> > mailer.parmSubject("Message from Axapta: " + Username);
> > mailer.run();
> > }
> >
>
> 
>


[Non-text portions of this message have been removed]



Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends.

Come and choose your preferred name for Microsoft Dynamics AX on the Axapta
Knowledge Village, Visit www.axapta-knowledge-village.tk

 
Yahoo! Groups Links





Reply via email to