Currently Online:

Hyperlink within MailEvent (HTML)

Last post 05-09-2008, 4:30 AM by man_anja. 2 replies.
Sort Posts: Previous Next
  •  05-08-2008, 3:07 AM 23704

    Hyperlink within MailEvent (HTML)

    Hello,

    I have a little problem with the mailevent and the html body. I create a link with the anker html tag - something like this:

    <a href="......?ProcessID=XXXXX">click hier</a>

    Instead of XXXXX I add the processID over the k2 data browser.

    The mail arrived have following content:

    <a href="..ProcessID=</span>227<span style='font-family:Arial;font-size:11px;font-weight:Normal;font-style:Normal;font-stretch:Normal;color:#FF000000;text-align:Left;text-decoration:;' id='run'>"> ..."

    How can I use K2 fields within HTML-Mail without any strange additional formating?

  •  05-08-2008, 2:05 PM 23722 in reply to 23704

    Re: Hyperlink within MailEvent (HTML)

    Have you tried looking at this?

    http://k2underground.com/forums/thread/23345.aspx

    This might allow you to have more flexibility in your email format.

  •  05-09-2008, 4:30 AM 23733 in reply to 23722

    Re: Hyperlink within MailEvent (HTML)

    Hello,

    this thread did not help me. I make something similar to this. I create a Mail Event before my Client Event and want to send an HTML Mail with some information.

    I build an html code for my mail and copy it (without any LineBreaks) in the Body of the Mail Event:

    <table border=0 cellspacing=0 cellpadding=10pt width=623 style="border:solid #7F7F7F 1.0pt"><tr><td align="left" valign="center" style="background:#30659a;"><span style="font-size:17.0pt;font-family:Arial,sans-serif;color:white;"><br>Workflow Notification<br></span></td></tr><tr><td><table><tr><td rowspan="4" width="200"><img src="...gif" width="87" height="83" /></td><td width="100" style="font-size:10.0pt;font-family:Arial,sans-serif;color:#30659a;">Process</td><td width="100" style="font-size:9.0pt;font-family:Arial,sans-serif;color:#000000;">&lt;a href="...ViewFlowMain.aspx?ProcessID=[ProcessID]">[ProcessName]</a></td></tr></tr><td style="font-size:10.0pt;font-family:Arial,sans-serif;color:#30659a;">Folio</td><td style="font-size:9.0pt;font-family:Arial,sans-serif;color:#000000;">[ProcessFolio]</td></tr><tr><td style="font-size:10.0pt;font-family:Arial,sans-serif;color:#30659a;">Customer</td><td style="font-size:9.0pt;font-family:Arial,sans-serif;color:#000000;">[Form-DisplayName]</td></tr><tr><td colspan="2" style="font-size:10.0pt;font-family:Arial,sans-serif;color:#30659a;">[Description]</td></tr></table></td></tr><tr><td>&nbsp;</td></tr><tr><td style="font-size:9.0pt;font-family:Arial,sans-serif;color:#000000;">You have tasks assigned to you. Please use the link below to action your task: <a href="..">My Worklist</a></td></tr><tr><td style="font-size:10.0pt;font-family:Arial,sans-serif;color:#30659a;background:#e5ecf2;height:60pt">Further information to MD-Workflows you find on the K2 [blackpearl] support side on Compass: <a href=".">Support</a></td></tr></table></td></tr></table>

    Then I use the Context Browser and replace the [xxx] Parts with K2 fields.

    The problem is, that this HTML-code is changed by K2 - someone, somewhere includes additional code - this additional code destroys my layout and make the used link unuseable.

View as RSS news feed in XML