Options

Hyperlink for Record Links

armela20armela20 Member Posts: 71
edited 2015-05-19 in NAV Three Tier
Hello friends.
So I have a report that sends emails via SMTP.
It is looking at the record link table and sends an email with the info and the URL on that record.

Smth like this.


smtp.CreateMessage('NAV',fromuser."E-Mail",touser."E-Mail",'Note from my Notifications in NAV',"Record Link".URL1,TRUE);
smtp.Send;
"Record Link"."E-mail Sent" :=TRUE;


I want the URL to be a hyperlink, meaning, I want the recipient of the email to be able to click on it.
Any ideas how I can accomplish that ??

Thanks.

Answers

  • Options
    Jan_VeenendaalJan_Veenendaal Member Posts: 206
    ( I have not tried this recently, but it used to work for me: )

    Create variable MyLink of type Text, assign a html 'anchor' to that variable, and send that:
    MyLink := STRSUBSTNO( '<A href="%1">%1</A>', "Record Link".URL1);
    smtp.CreateMessage('NAV',fromuser."E-Mail",touser."E-Mail",'Note from my Notifications in NAV',  MyLink  ,TRUE);
    smtp.Send;
    
    Jan Veenendaal
  • Options
    armela20armela20 Member Posts: 71
    That worked.
    Thanks
Sign In or Register to comment.