Maybe I am making this harder than it should be.   I just want to 
submit a report to batch with option email recipient but not have the 
outlook window open waiting for email address when job runs on the 
batch.   How do I submit a report to batch and automatically email 
recipients.

Sorry if this is a simple procedure.  I have tried all I know.
Thanks
Bob


--- In Axapta-Knowledge-Village@yahoogroups.com, "manoch_niti" 
<[EMAIL PROTECTED]> wrote:
>
> May be you need to put your file in share folder instead of a local 
folder.
> Hope this can help you.
> 
> Regards.
>  
> 
> --- In Axapta-Knowledge-Village@yahoogroups.com, "bobchamp5" 
> <bchampion@> wrote:
> >
> > I am trying to run this Email job through a batch process.   My 
> > problem is that when the job runs through batch it fails to 
attach 
> > file.
> > If I am starting the batch process on my pc where is the batch 
job 
> > looking for the attachment file?  It works fine interactive from 
my 
> > pc.  Below is my code.
> > 
> > SysMailer mailer;
> > ;
> > mailer = new SysMailer();
> > 
> > mailer.fromAddress('bob@');
> > mailer.fromName('Shipping Update');
> > mailer.subject("Daily Shipping Update");
> > 
> > mailer.tos().add('bob@');
> > 
> > mailer.body("Please find attached Shipping Update");
> > 
> > mailer.SMTPRelayServers
> > ().addSysEmailParameters::find                   
> > ().SMTPRelayServerName,
> >       SysEmailParameters::find().SMTPPortNumber,
> >       SysEmailParameters::find().SMTPServerIPAddress,
> >       SysEmailParameters::find().SMTPUserName,
> >       SysEmailParameters::find().SMTPPassword);
> > 
> >  mailer.attachments().add(C:\\dailyrecap.pdf);
> > 
> > mailer.sendMail();
> > 
> > Thanks Bob
> >
>


Reply via email to