Options

control Outlook Express if a mail couldn't deliver

rkadenbachrkadenbach Member Posts: 15
Hello all,

somebody know a solution for the following problem.

We send mails (> 1000) automatically with the standard mail codeunit. The problem is, when a mail couldn't deliver, because the address is wrong, a message popup in outlook express (used mail programm) and the job freezed for this time.

Is there any way to control or to setup outlook to prevent this message?

THX

Comments

  • g_dreyerg_dreyer Member Posts: 123
    Is the message that you get in Outlook because of the format of the mail address (i.e. someone forgot the @ sign or there are special characters that causes problems) ... OR ....
    Is the pop-up because the address does not exist, in which case you should be able to send the mail, but only get a non-delivery notification email.

    If your problem is based on formatting of the address, then you should write some code in nav to check the format of all stored addresses, so that Outlook Express would accept them.

    regards,
    gus
  • Dmitry_ChadaevDmitry_Chadaev Member Posts: 52
    In Navision 4.0 OLHandler dll is used insted of NSAppHandler, and there are these line in the NewMessage function:

    MailSent := OSendMail.Send;
    ErrorNo := OSendMail.ErrorStatus;

    Doesnt it return what you need?
    Best regards,
    Dmitry
Sign In or Register to comment.