attachments on RTC not working when sending mail?

manikandanmanikandan Member Posts: 160
edited 2012-07-06 in NAV Three Tier
Hi
i Have one changes in default codeunit 400(SMTP Mail) for attachments when sending mail.
but this code is working for classic only .when RTC is running it's not working.
please help me :!: :!:

Thanks and Regards
Muthusubramanian.M

Answers

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    If servicetier is installed in seperate system then RTC will be searching for the file in servicetier system not client machine..

    You have to upload the file to servicetier machine before attaching..
  • vijay_gvijay_g Member Posts: 884
    Are you getting any error with RTC....?

    Why didn't you used standard Addattachment() function to send attachement with mail..?
  • manikandanmanikandan Member Posts: 160
    If servicetier is installed in seperate system then RTC will be searching for the file in servicetier system not client machine..

    You have to upload the file to servicetier machine before attaching..
    Hi Mohana,
    i have change code from your advice
    Old Code
    Mail.AddAttachments('C:\Users\muthusubramanian.m\Desktop\Org.pdf');
    New code
    Mail.AddAttachments('\\172.20.1.205\MS Dynamics NAV\Org.pdf');
    Note ://172.20.1.205 is server IP and i have uploaded the file to servicetier machine before attaching
    after change code getting error message like this when sending mail
    Microsoft Dynamics NAV

    The SMTP mail system returned the following error: (0x80004005): Unspecified error
    OK
    Please Help me
    Thanks and Regards
    Muthusubramanian.M
  • mohana_cse06mohana_cse06 Member Posts: 5,504
    Please check reports 9171 and 9172 are working..
  • manikandanmanikandan Member Posts: 160
    If servicetier is installed in seperate system then RTC will be searching for the file in servicetier system not client machine..

    You have to upload the file to servicetier machine before attaching..

    Hi mohana,
    I really thank to you .Now my issue is solved. :D:D
    Thanks and Regards,
    Muthusubramanian.M
Sign In or Register to comment.