Hi all

If you want the SysMailer class to send mails via a local relay server (the advisable approach) then you need to specify what the relay servers fully qualified name is (or what its IP address is). In version 3 there is a form on the Administration / Setup menu called Email Parameters. You can specify the relay server to use in there. You can also specify it manually when using the SysMailer class as follows:-

      sysMailer.SMTPRelayServers().add(relayserverNameorIPstring);

If the SysMailer class doesn't have this information then the underlying Dundas mailer will attempt to deliver the message direct to the recipient's mail server by DNS look-up on their domain name. If your client machine doesn't have access to a DNS server then these lookups will fail and the message cannot be sent. Also, if the destination mail server is offline for any reason then the mail cannot be sent. That's why using a local relay server is best.

Regards

Malcolm Burtt
Global IT Group plc

-----Original Message-----
From: elianill [mailto:[EMAIL PROTECTED]
Sent: 11 February 2004 08:35
To: [EMAIL PROTECTED]
Subject: [development-axapta] Re: sending of emails without using outlook


Hi Jens,

I tested it on a client without Outlook (only outlook express which
is installed on installation of IE) - Axapta asked be to
install "dundamailer" on this client.
After installation same error-message was shown...

Best regards,
Elia
--- In [EMAIL PROTECTED], Jens Fudge <[EMAIL PROTECTED]>
wrote:
>
>
>
>
>
> I havent been testing it more, but I have been doing some thoughts
about
> this.
>
> It seems that SysMailer actually calls dundamailer, so both
solutions
> should give the same result. Sysmailer is aparantly just a wrapper. As
> I cannot find anywhere to tell sysmailer (or dundamailer) which
SMTP
> server (or POP3 server) to use, it has to take values from Windows
default
> mailer.
>
> On my workstation I have MS Outlook installed, but I never use it.
There
> are no accounts defined in it.
> I normally use Lotus Notes as mail program.
>
> I have a hunch that Windows thinks that Outlook is my normal
mailprogram,
> and this is probably why it will time out.
>
> I am not sure of these things, but I think it could be the issue. '
> /Jens
>
>
>
>
> |---------+---------------------------->
> |         |           "elianill"       |
> |         |           <[EMAIL PROTECTED]|
> |         |           e>               |
> |         |                            |
> |         |           11-02-2004 08:53 |
> |         |           Please respond to|
> |         |           development-axapt|
> |         |           a                |
> |---------+---------------------------->
>   >----------------------------------------------------------------
---------------------------------------------------------------------
-------------|
>  
|                                                                   
                                                                    
         |
>   |       To:       development-
[EMAIL PROTECTED]                                              
                                                |
>   |      
cc:                                                                 
                                                                    
|
>   |       Subject:  [development-axapta] Re: sending of emails
without using
outlook                                                             
   |
>   >----------------------------------------------------------------
---------------------------------------------------------------------
-------------|
>
>
>
>
> Hi Harish,
>
> I made the same expiriencies as Jens before....
> Do you have any other ideas how to solve?
> Best regards,
> Elia
>
> --- In [EMAIL PROTECTED], Jens Fudge <[EMAIL PROTECTED]>
> wrote:
> >
> >
> >
> >
> >
> > hmm...
> >
> > I just tried both solutions... Same result: It timed out.
> >
> > /Jens
> >
> >
> >
> > |---------+---------------------------->
> > |         |           "Harish          |
> > |         |           Mohanbabu"       |
> > |         |           <[EMAIL PROTECTED]|
> > |         |           .co.in>          |
> > |         |                            |
> > |         |           09-02-2004 18:05 |
> > |         |           Please respond to|
> > |         |           development-axapt|
> > |         |           a                |
> > |---------+---------------------------->
> >   >--------------------------------------------------------------
--
> -------------------------------------------------------------------
--
> -------------|
> >
> |
>
>          |
> >   |       To:       development-
> [EMAIL PROTECTED]
>                                                 |
> >   |
> cc:
>
> |
> >   |       Subject:  [development-axapta] Re: sending of emails
> without using
> outlook
>    |
> >   >--------------------------------------------------------------
--
> -------------------------------------------------------------------
--
> -------------|
> >
> >
> >
> >
> > Hi Elia,
> >
> > Please note that Dundas Mailer control is by default installed
when
> > you install Axapta ver 3.0.  For more info on this mailer
control,
> > please go to 'SysMailer' class which is available under AOT ->
> > Classes.  Once you there, select 'SysMailer' class and press F1. The
> > following is the code sample from that help -
> >
> > -------------------------------------------------
> > {
> > SysMailer mailer = new SysMailer();
> > mailer.body("This is the body of the mail"); mailer.subject("The
> > message subject"); mailer.fromAddress("[EMAIL PROTECTED]");
> > mailer.fromName("Peter Villadsen");
> > mailer.tos().add("[EMAIL PROTECTED]");
> > mailer.tos().add("[EMAIL PROTECTED]");
> > mailer.attachments().add("c:\\gylle.log");
> > mailer.sendMail();
> > pause;
> > }
> > ------------------------------------------------
> >
> > Do please make sure you have correctly configured SMTP settings.
> >
> > Hope this helps,
> >
> > Harish Mohanbabu
> >
> >
> > --- In [EMAIL PROTECTED], "elianill"
> > <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > I�ve found an email concering using SMTP server without an
email-
> > > client sent few months ago.
> > > When executing the code mentioned, I get the following error-
> > > message:
> > >
> > > Method 'QuickSend' in COM object of class 'DUNDAS.MAILER'
> returned
> > > error code 0x80004005 (E_FAIL) which means: The connection
timed-
> > out.
> > >
> > > Does anybody has an idea how to go on?
> > > With best regards and many thanks,
> > > Elia
> > >
> > >
> *******************************************************************
> > > With Axapta you have the license to use the dsmailer.dll,
placed
> > in
> > > your client\bin directory.
> > >
> > > With this dll you can send emails directly. Take a look at that
> > > piece of code:
> > >
> > > static void TEST_SendEmail_Dundas(Args _args)
> > > {
> > >     COM C = new COM("DUNDAS.MAILER");
> > >     ;
> > > //    C.QuickSend(fromAddr, toAddr, subject, body, cc,
> > attachments);
> > >     C.QuickSend("[EMAIL PROTECTED]
> > > account.com", "[EMAIL PROTECTED]", "Subject", "Body");
> > >
> > >     info("email sent");
> > > }
> > >
> > > There's also some documentation at www.dundas.com
> > >
> > > Have fun!
> > >
> > > Herbert
> > > -----Urspr�ngliche Nachricht-----
> > > Von: Anil Vzay [mailto:[EMAIL PROTECTED]
> > > Gesendet: Mittwoch, 11. Juni 2003 09:18
> > > An: [EMAIL PROTECTED]
> > > Betreff: [tadorna-axapta] Sending Email without Outlook
> > >
> > > Hi,
> > > How can i send e-mail from Axapta? Also i don't want to use
> > Outlook
> > > to send e-mail. Could you help me???
> > > Thanks..
> > > Anil Ozay
> >
> >
>
> >                            Yahoo! Groups
> Sponsor
> >
>
> >
>
> >
>
> >
> ADVERTISEMENT
> >                            Click to learn
> more...
> >
>
> >
>
> >
>
> >
>
> >
> >
> >
> > 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.
>
>
> 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.





Yahoo! Groups Links







Yahoo! Groups Links

Reply via email to