02-02-2009 05:42 PM
I am trying to add a hyperlink to a local document (Excel file) in the body of an email. I'm using "SMTP Email Send Message.vi" and have tried wiring several different string formats to the body attempting to attach a hyperlink and have had no luck.
Any ideas? I have the Report Generation Toolkit but do not have the Internet Toolkit.
Thanks very much,
Mark
Solved! Go to Solution.
02-02-2009 05:59 PM
02-02-2009 09:17 PM
02-03-2009 11:27 AM
By inserting file:/// before the file name, a linkable local link was created. When read by Outlook/email program this appears as a link.
i.e. "file:///C:\Documents and Settings\user\excelsheet.xls" would link to the Excel sheet. This works for local files.
Mark
11-30-2012 03:43 AM
Firstly, I know this is an old thread, but as RavensFan said, "...if someone searches the forums with the same question, you will be able to help them with your answer...".
And I did search, and it did help. But there is something to add to this.
MITAeroBike's solution, as written, doesn't quite work as intended.
The spaces in the file path need to be replaced with %20 to work correctly, which is easily done with a Search and Replace Pattern vi.
11-30-2012 05:39 AM - edited 11-30-2012 05:40 AM
If you use Microsoft Outlook, I've used this techinque before:
No need to prefix with file:// or replace spaces with %20
Example email sent from my LabVIEW app using the Internet Toolkit:
Recent SWORDS report file not found.
Reminder to be sent in 24 h
Download report from: <https://enpec2.emerson.com/SwordsPhase2/index.jsp>
Save file to: <\\netapp1\shared\Manufacturing\Test Engineering\Log Files\>
Please do not respond to this email
This account is NOT Monitored.
In Outlook, the UNC is clickable.