Hi,
You can use the sysMailer class.
Here you can find a sample. Don't forget to initialize the Server SMPT in the form EMail Parameters.
sysMailer mailer;
SysEmailParameters parameters = SysEmailParameters::find();
;
mailer = new sysMailer();
mailer.fromAddress('Axapta');
mailer.fromName('Axapta');
mailer.subject('The subject');
if (parameters.DNSServerName)
{
mailer.DNSServers().add(parameters.DNSServerName,
parameters.DNSTCPIPRetryCount,
parameters.DNSUDPRetryCount);
}
if (parameters.SMTPRelayServerName)
{
mailer.SMTPRelayServers().add(parameters.SMTPRelayServerName,
parameters.SMTPPortNumber,
parameters.SMTPServerIPAddress,
parameters.SMTPUserName,
parameters.SMTPPassword);
}
mailer.priority(1);
mailer.body('the body');
mailer.tos().add('[EMAIL PROTECTED]');
mailer.sendMail();
Best regards,
Olivier Parent ,
SYLIS Belgium S.A./N.V.
http://www.sylis.be
| "ooi aikchong" <[EMAIL PROTECTED]>
25/03/2004 03:51
|
To: [EMAIL PROTECTED] cc: Subject: [development-axapta] Send Email in Axapta 3.0 |
Greetings to all,
I am looking for a solution in Axapta which will enable me to send the email
alert directly without going through Outlook. Is there any standard class
which allow me to do so?
Advice are welcomed.
Appreciate your assiatance.
Thanks,
Rgds,
AC Ooi
_________________________________________________________________
Are you in love? Find a date on MSN Personals http://match.msn.com.my/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/saFolB/TM
---------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

