Title: Message
Hi,
 
We also mail PDF documents from Axapta and it works like a dream.....
Try using the SysMailer Class instead of SysInetMail. 
 
SysMailer mailer;
;
mailer = new SysMailer();
try {
mailer.fromAddress(emplTable.Email);
mailer.fromName(emplTable.Name);
mailer.subject("Hallo World");
custEmailAddress = custTable::find(.....);
mailer.tos().add(custEmailAddress);
mailer.body("Attached please find documents for period " + date2str(beginDate,123,2,1,3,1,4) + " to " + date2str(endingDate,123,2,1,3,1,4));
mailer.SMTPRelayServers().add(SysEmailParameters::find().SMTPRelayServerName,
                                  SysEmailParameters::find().SMTPPortNumber,
                                  SysEmailParameters::find().SMTPServerIPAddress,
                                  SysEmailParameters::find().SMTPUserName,
                                  SysEmailParameters::find().SMTPPassword);
 mailer.attachments().add(File);
mailer.sendMail();
} catch (Exception::Error) { ...... }
 
Hope this helps
 
Hennie
-----Original Message-----
From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Huseyin Akdag
Sent: Friday, 19 August 2005 11:23 AM
To: development-axapta@yahoogroups.com; Axapta-Knowledge-Village@yahoogroups.com
Subject: [Axapta-Knowledge-Village] Sending email automatically in Axapta

Hi all,

I am trying  to create a batch job which should send  some Reports  as PDF file per Mail daily. The problem is, The job can generate this file , and attach to Email this file but can’t send the mail automatically. After calling the   SendAttachment method , Outlook window  is opened. And I must click to send Button in this Window . But I want to send this mail without a Confirmation or manual handling. I am using SysInetMail  class.

Is there any other way to send it automatically?

 

 

Regards..



Sharing the knowledge on Axapta.



SPONSORED LINKS
Business finance course Business to business finance Small business finance
Business finance consultant Business finance magazine Business finance schools


YAHOO! GROUPS LINKS




Reply via email to