In a SO windows 2000 SERVER is execute correctly in
windows 2003 server not.
What is the problem?
the error is: Object 'COM' could not be created
No se pudo crear el objeto COM de la clase
'Dundas.mailer'. Asegúrese de que se ha registrado
correctamente en el ordenador 'SW2K3PO01'.
The code is next:
static void Envio_correo_smtp(Args _args)
{
userinfo user;
str usuario;
//SysMailer mailer;
SysMailer mailer = new SysMailer();
;
select user where user.id == curuserid();
usuario=user.name;
try {
mailer.fromAddress("[EMAIL PROTECTED]");
mailer.fromName("[EMAIL PROTECTED]");
mailer.subject('Warning Nexsysla_Orders to Axapta');
//custEmailAddress = custTable::find(.....);
mailer.tos().add("[EMAIL PROTECTED]");
mailer.body("Attached please find documents for period
" + date2str(SYSTEMDATEGET(),123,2,1,3,1,4) + " to " +
date2str(SYSTEMDATEGET(),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("C:\\p.txt");
mailer.sendMail();
} catch (Exception::Error) { PRINT "MAL" ;}
}
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/
SPONSORED LINKS
| Computer part | Programming languages | Microsoft axapta |
| Support exchange |
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

