How to send the mail automatily

DarkHorseDarkHorse Member Posts: 389
edited 2007-03-27 in Navision Attain
Hello to all. He've created a Form using the Codeunit 397. This form send e-mails and runs correctry, but when I run the form the e-mail opens and I've to push the button "send"; I want to know how to send the mail automatily, whithout confirmation pushing the Send button.
Thanks in advance.

Comments

  • nunomaianunomaia Member Posts: 1,153
    Outlook for security reasons always confirm sending an e-mail using automation. If you don't want to confirm I prefer to use another automation object to send e-mails. In download section there are several tools to send e-mails.
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • DarkHorseDarkHorse Member Posts: 389
    Ok, I'll see it. Many thanks for your help.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    If you only want to automate the clicking on the "Send"-button, the program "ClickYes" can be used. See this topic Automating Email
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • willywilly Member Posts: 67
    Hi! In the function NewMessage in codeunit 397 there is a parameter called 'OpenDialog' which controlls this. Try putting the value to No and see.
  • SavatageSavatage Member Posts: 7,142
    FYI

    For those who are using Outlook Express make sure also the check box is unticked in the security tab for the option.....

    "Warn me when other applications try to send mail as me"

    else you'll have to keep confirming too.
Sign In or Register to comment.