Community Discussions and Support
How do I insert a clickable hyperlink in a template?

I know how to insert a hyperlink in the mail editor. How can I do this in the template editor? I tried to insert html but it just shows up as text. I don't see any fields or variables for doing this.
Thanks!
Sam


I know how to insert a hyperlink in the mail editor. How can I do this in the template editor? I tried to insert html but it just shows up as text. I don't see any fields or variables for doing this. Thanks! Sam

You can't. Templates are plain text. You can do it in messages saved as Stationary though. Perhaps that will fit your need.


You can't. Templates are plain text. You can do it in messages saved as Stationary though. Perhaps that will fit your need.

Tried this and in body it shows text, but when message received it shows as a link that can be clicked on.


Simple template - TESTHTML.PM5
Title Test HTML Template
string TO: "" "Msg TO:" 0 Address
set To = "~vTO:~"
set Subject = "HTML TEST Message"
insert "<\"http://setzco.dyndns.org:8081\"> ~z"
insert "~z"


Run template and it prompt for the To field then send.
Shows body with regular text, but not as a link.
Send message and receive it, the the link is highlighted and allows opening as link.
Think have a back-slash in front of any quotes in string was required.
Also, in typing message I had to enter double less than and double greater than signs to get it to show in the preview screen. Don't know if that helps. Without the backslash quotes it didn't work.
Have been playing with creating a regular template to duplicate the TPHONE extension mostly, so ran into some issues in doing that.
Someone mentioned that in V5 the TPhone extension may be gone. Don't know if it is really useful, but wanted to try..
Hope this helps.


Tried this and in body it shows text, but when message received it shows as a link that can be clicked on. Simple template - TESTHTML.PM5 Title Test HTML Template string TO: &quot;&quot; &quot;Msg TO:&quot; 0 Address set To = &quot;~vTO:~&quot; set Subject = &quot;HTML TEST Message&quot; insert &quot;&lt;&lt;\&quot;http://setzco.dyndns.org:8081\&quot;&gt;&gt; ~z&quot; insert &quot;~z&quot; Run template and it prompt for the To field then send. Shows body with regular text, but not as a link. Send message and receive it, the the link is highlighted and allows opening as link. Think have a back-slash in front of any quotes in string was required. Also, in typing message I had to enter double less than and double greater than signs to get it to show in the preview screen. Don&#039;t know if that helps. Without the backslash quotes it didn&#039;t work. Have been playing with creating a regular template to duplicate the TPHONE extension mostly, so ran into some issues in doing that. Someone mentioned that in V5 the TPhone extension may be gone. Don&#039;t know if it is really useful, but wanted to try.. Hope this helps.

mikes@guam.net

Tried this and in body it shows text, but when message received it shows as a link that can be clicked on.


Assuming you know that there are no hyperlinks in plain text, don't you? Pegasus Mail provides hyperlink detection in plain text messages via Tools => Options => Hyperlinks: If you disable the first option on this page it won't do so and your hyperlink won't how up as such anymore. Other email clients may provide this kind of hyperlink detection as well but it's still plain text without "real" hyperlinks since these require HTML or Rich Text formatting for adding a hidden URL to be executed allowing arbitrary text to be used as hyperlink labels.


[quote=&quot;pid:53676, uid:2546&quot;]Tried this and in body it shows text, but when message received it shows as a link that can be clicked on.[/quote] Assuming you know that there are no hyperlinks in plain text, don&#039;t you? Pegasus Mail provides hyperlink detection in plain text messages via _Tools =&gt; Options =&gt; Hyperlinks_: If you disable the first option on this page it won&#039;t do so and your hyperlink won&#039;t how up as such anymore. Other email clients may provide this kind of hyperlink detection as well but it&#039;s still plain text without &quot;real&quot; hyperlinks since these require HTML or Rich Text formatting for adding a hidden URL to be executed allowing arbitrary text to be used as hyperlink labels.
			Michael
--
IERenderer's Homepage
PGP Key ID (RSA 2048): 0xC45D831B
S/MIME Fingerprint: 94C6B471 0C623088 A5B27701 742B8666 3B7E657C
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft