Using Hyperlink(emailto) in Navision 5

guidorobbenguidorobben Member Posts: 157
Hi,

Since Navision 5, the following code doesn't work anymore:

HYPERLINK('emailto:username@domain.nl');

Somehow they changed the way hyperlink works. Does anybody have a idea how I can make this work?

Thanks,

Guido

Comments

  • matttraxmatttrax Member Posts: 2,309
    I'm no HTML expert, but I always thought you did mailto links like this:

    mailto:matt@navision.com

    not

    emailto:matt@navision.com

    Maybe that will help.
  • guidorobbenguidorobben Member Posts: 157
    oeps, that was a typo.

    Mailto also doesn't work.
  • WaldoWaldo Member Posts: 3,412
    After diving deeper into the rundll32 possibilities ... you could use this:

    IF ISCLEAR(MSCShell) THEN CREATE(MSCShell);
    MSCShell.Run('rundll32.exe url.dll,FileProtocolHandler mailto:me@waldo.be');
    

    where MSCshell is an automation variable of "'Windows Script Host Object Model'.WshShell"

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • garakgarak Member Posts: 3,263
    This also doesn't work since Nav. 4.0

    use following Code
    //Name	DataType	Subtype	Length
    //WSHShell	Automation	'Windows Script Host Object Model'.WshShell	
    
    if isclear(WSHShell) then
      create(WSHShell);
    
    Varia1 := 0;     //Variant Variable
    Varia2 := TRUE;
    
    WSHShell.run('cmd /c start mailto:renekaufmann@XXX.de',Varia1,Varia2);
    clear(WSHShell);
    
    Do you make it right, it works too!
  • WaldoWaldo Member Posts: 3,412
    garak wrote:
    This also doesn't work since Nav. 4.0

    You mean my code?

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • garakgarak Member Posts: 3,263
    no, hyperlink and shell function

    you was al little bit faster than i with typing ;-)
    I'v make an coffee break between typing and posting.
    So your statement was faster then mine ;-)

    Regards
    Do you make it right, it works too!
  • WaldoWaldo Member Posts: 3,412
    garak wrote:
    no, hyperlink and shell function

    you was al little bit faster than i with typing ;-)
    I'v make an coffee break between typing and posting.
    So your statement was faster then mine ;-)

    Regards

    Ah, OK, because I tested it in 5.0 (no 4.0) and it worked ... .
    So solutions enough for this topic :wink:.

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • wakestarwakestar Member Posts: 207
    interestingly e-mail with *.ch works. Outlook E-Mail pops up.

    HYPERLINK('mailto:anything@test.ch');
Sign In or Register to comment.