[rt-users] Mailto link in template
Emmanuel Lacour
elacour at easter-eggs.com
Thu Sep 30 01:45:43 EDT 2010
On Fri, Sep 24, 2010 at 08:41:40AM -0600, Sysadmin wrote:
> I'm trying to embed a mailto: HTML code into my ticket creation
> template so that the customer can click the link and this will
> generate a blank email with the ticket info in the subject that can
> use for a reply, that the system can then parse into the ticket. The
> mail to address would vary according to the group or queue it was
> created for.
>
> I tried this:
>
> <A HREF="mailto:{$Ticket->QueueObj->CorrespondAddress()}?subject=[{$Ticket->QueueObj->SubjectTag
> || $rtname} #{$Ticket->id}] {$Ticket->Subject()}
> ">To Email RNS about the ticket</A>
>
>
> While I know this is wrong, perhaps it will give you a better idea
> of what I,m trying to do.
>
In an html template, you can use something like this:
<a href="mailto:{$Ticket->QueueObj->QueueOrDefaultCorrespondAddress}?subject=SUBJECT&body=BODY">To Email RNS about the ticket</a>
you should urlencode BODY
More information about the rt-users
mailing list