Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use environment variable in link in email

I want to generate links that can be pasted in emails so I can show people folders in their directory structure such as where to edit their email signature manually.

I'm trying to put a link to the folder in an email but make it generic enough that when they forward it, everyone who opens it will get the link into their own directory structure properly so I need to use environment variables.

I type the text I want the link to say then highlight and CTRL-K then put %CSIDL_APPDATA%\Microsoft\Signatures\ in the link but Outlook changes my % symbols to %25's. I'd ask how to escape a % but it shouldn't be escaped I don't think since it's actually part of a link.

Environment variable list FYI:http://technet.microsoft.com/en-us/library/dd560744(v=ws.10).aspx

like image 952
Still.Tony Avatar asked Oct 02 '22 17:10

Still.Tony


1 Answers

Simple answer, you can't. When you're linking like that, the current directory looks like root / to the html. So you could look at a subfolder of current directory (which you aren't guaranteed to know since it could be different on different OS's or even per user configuration) but that won't really help you.

This project will let you edit the actual HTML of your email by adding an Advanced tab but even with full control of the HTML, it can't be done. "It would open up a security hole the size of Denver."

Here's a lot of quality info on Relative Addressing which is what you're trying to do.

like image 58
AppFzx Avatar answered Oct 13 '22 11:10

AppFzx