I actually commented out the attachment part so the email going out
was a mere one liner.
--- In development-axapta@yahoogroups.com, "Jacob Hjelmer Nielsen"
<[EMAIL PROTECTED]> wrote:
>
> Hi Martin
> what's the size of the attachments?
>
> :-J
>
> Jacob Hjelmer
>
> thy:development
>
> Søvej 13B
>
> DK-3460 Birkerød
>
> Phone.: +45 96 170 470
> Fax: +45 45 824 544
> Mobile: +45 24 474 032
>
> e-mail: [EMAIL PROTECTED]
>
> www.thydevelopment.com
>
> www.x-masterclass.com <file:///C:\Documents%20and%
20Settings\jhn\Application%20Data\Microsoft\Signatures\www.x-
masterclass.com> High-end education program for Axapta developers.
>
> ________________________________
>
> Fra: development-axapta@yahoogroups.com på vegne af Martin
Sujkowski
> Sendt: ti 07-03-2006 19:34
> Til: development-axapta@yahoogroups.com
> Emne: [development-axapta] SysMailer class
>
>
>
> 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?
>
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
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.