Send mail on GRN

souravbsouravb Member Posts: 135
Hi,
I am trying to send mail to supplier on Posting Purchase order as Received. I have writen a Function in Multilevel Auth. CU. I am calling the Function inside Codeunit 90. The problem is for each purchase line the mail is getting fired. I want to fire it only once. Where do i write the code. Plz help.

Comments

  • darshanmdarshanm Member Posts: 280
    You should end the GRN copy as an attachment to the Vendor.

    use report.savehtml() for saving report in html
    then use newmessage() function from Mail codeunit to send
    it as an attachment.

    Note : you should have Office Outlook 2003 as a default
    mail client.
    Darshan Mungekar
    Senior Consultan
Sign In or Register to comment.