try to add SMTP relay server befpre sending:

mailer.SMTPRelayServers().add(SMTPServerName);

--- Martin Sujkowski <[EMAIL PROTECTED]> wrote:

> Hi everyone,
> I copied the send email example code from SysMailer
> help file and
> put it in a job. It goes like this:
>
>     SysMailer mailer = new SysMailer();
>     mailer.body("This is the body of the mail");
>     mailer.subject("Eureka! Axapta generated and
> email");
>     mailer.fromAddress("[EMAIL PROTECTED]");
>     mailer.fromName("Joe Smith");
>     mailer.tos().add("[EMAIL PROTECTED]");
>     //mailer.attachments().add("c:\\gylle.log");
>     mailer.sendMail();
>     print 'done';
>     pause;
>
>
>
>  The job executes fine but it is extremly slow. At
> least 15-20
> seconds for an email with a single receipient
> (mailer.sendMail() is
> where it chugs). Does anyone  have a clue why that
> could be and if
> so how to fix it?
>
>
>
>
>
>
>
>


Paulius Cerniauskas
ICQ: 280959446

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com





SPONSORED LINKS
Computer part Programming languages Microsoft axapta
Support exchange


YAHOO! GROUPS LINKS




Reply via email to