How can i send email with link

aboomaraboomar Member Posts: 47
please guys i want to send email from nav 5 as i can to link from email to the same record .

I sent the email but with static record and with out link Brick wall ](*,)
that is the link in code

'navision://client/run?database=d:%5Chasoub.fdb%26company=TrainingMe%26target=Form'
+'%2050012%26view=SORTING(Field1)%26position=Field1=0(P-00000001)%26servertype=NAVISION'

I need help ASAP [-o<
Thanks

Comments

  • kinekine Member Posts: 12,562
    You need to sent the mail in HTML format. It means using SMTP mailing...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • aboomaraboomar Member Posts: 47
    Thank you kine

    but if you please can you send me example
  • kinekine Member Posts: 12,562
    Sorry, I missed that you are using NAV 5.00...

    Just use the HtmlFormatted (last parameter) = True param of function Mail.CreateMessage to create HTML mail. Than the URL will be recognized as URL in the mail client. Or to be sure that it is OK, you can use something like
      MyBody := STRUBSTNO(Text000,MyURL);
    

    where Text000 is text constant with text like "<a href="%1">NAV Link</a>". This will add HTML tag marking the text "NAV Link" as hyperlink to given address...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • aboomaraboomar Member Posts: 47
    Thanks for your help
Sign In or Register to comment.