Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

HTML emails and attachments

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


josh at prorivertech

Aug 9, 2012, 1:20 PM

Post #1 of 4 (878 views)
Permalink
HTML emails and attachments

We have updated our templates to use HTML but have noticed that now users don't receive attachments when getting responses.

I have tried adding the RT-Attach-Message: yes to the top of the template and then adding Content-Type:text/html a few lines below it but that just make the whole email come out in HTML code.

Is there a way to have HTML emails work with attachments?


falcone at bestpractical

Aug 10, 2012, 4:48 PM

Post #2 of 4 (831 views)
Permalink
Re: HTML emails and attachments [In reply to]

On Thu, Aug 09, 2012 at 03:20:26PM -0500, Josh Hopkins wrote:
> We have updated our templates to use HTML but have noticed that now users don't receive
> attachments when getting responses.
>
> I have tried adding the RT-Attach-Message: yes to the top of the template and then adding
> Content-Type:text/html a few lines below it but that just make the whole email come out in
> HTML code.
>
> Is there a way to have HTML emails work with attachments?

HTML emails and attachments work fine together.
Please post your template, I assume you have blank lines in the wrong
places.

-kevin


josh at prorivertech

Aug 20, 2012, 8:21 AM

Post #3 of 4 (737 views)
Permalink
Re: HTML emails and attachments [In reply to]

> -----Original Message-----
> From: rt-users-bounces [at] lists [mailto:rt-users-
> bounces [at] lists] On Behalf Of Kevin Falcone
> Sent: Friday, August 10, 2012 5:48 PM
> To: rt-users [at] lists
> Subject: Re: [rt-users] HTML emails and attachments
>
> On Thu, Aug 09, 2012 at 03:20:26PM -0500, Josh Hopkins wrote:
> > We have updated our templates to use HTML but have noticed that now
> users don't receive
> > attachments when getting responses.
> >
> > I have tried adding the RT-Attach-Message: yes to the top of the
> template and then adding
> > Content-Type:text/html a few lines below it but that just make the whole
> email come out in
> > HTML code.
> >
> > Is there a way to have HTML emails work with attachments?
>
> HTML emails and attachments work fine together.
> Please post your template, I assume you have blank lines in the wrong
> places.
>
> -kevin

Here is the template.
RT-Attach-Message: yes


Content-Type:text/html


<html>
<body>
<div style="width:625px">
<div style="width:625px">
<p><a href="http://www.domain.com"> <img src="http://www2.domain.com/support/foo_Footer.png" width="623" height="107" /></a></p>
</div>
<div style="width:625px">
<table width="623" border="0" cellpadding="2">
<tr>
<td><p><strong>Subject: Updated: {$Ticket->Subject}</strong></p>
<BR></td>
<td rowspan="4"><img src="http://www2.domain.com/support/foo-mascot.png" align="middle"></td>
</tr>
<tr>
<td>Your request: <strong>{ $Ticket->SubjectTag } </strong>has been updated or responded to.
</td>
</tr>
<tr>
<td><blockquote>
<p><strong>{$Transaction->Content()}</strong></p>
</blockquote></td>
</tr>
<tr>
<td><BR>
Please keep the subject line <strong>{ $Ticket->SubjectTag }</strong> for future correspondence relating to this request. Details about your request are at the end of this message. You may call your Pro River Support Team at 719-425-2148 then (Option 2) for support.<BR>
<BR>You will receive further emails as your request is addressed by our support staff.</td>
</tr>
</table>

</div>
<div style="width:625px">
<p><a href="http://www.domain.com">www.domain.com</a><BR>
<a href="http://www.facebook.com/domain?bookmark_t=page">Have you liked us on Facebook</a></p>
<p></p>
</div>
<div style="width:625px">
<a href="http://www.facebook.com/domain"><img src="http://www2.domain.com/support/facebook.png"></a>
<a href="http://www.twitter.com/domain"><img src="http://www2.domain.com/support/twitter.png"></a>
<a href="https://plus.google.com/u/0/111987394504497225"><img src="http://www2.domain.com/support/google.png"></a>
<a href="http://www.linkedin.com/company/24259"><img src="http://www2.domain.com/support/linkedin.png"></a>
<a href="http://www.youtube.com/user/domain"><img src="http://www2.domain.com/support/youtube.png"></a></div>
<BR>
<div style="width:625px">
<table width="623" border="0" cellpadding="2">
<tr>
<td>
<BR>
<p>------------------------Original Message------------------------<BR>
Date: {$Transaction->Attachments->First->GetHeader('Date')}<BR>
To: {$Transaction->Attachments->First->GetHeader('To')}<BR>
From: {$Transaction->Attachments->First->GetHeader('From')}<BR>
Cc: {$Transaction->Attachments->First->GetHeader('Cc')}<BR>
Subject: {$Ticket->Subject}<BR>
<br>
<br>
{$Ticket->Transactions->First->Content()}</p></td>
</tr>
</table>
</div>
</div>
</body>
</html>

[Josh Hopkins]


falcone at bestpractical

Aug 20, 2012, 9:43 AM

Post #4 of 4 (737 views)
Permalink
Re: HTML emails and attachments [In reply to]

On Mon, Aug 20, 2012 at 10:21:32AM -0500, Josh Hopkins wrote:
> > HTML emails and attachments work fine together.
> > Please post your template, I assume you have blank lines in the wrong
> > places.
>
> Here is the template.
> RT-Attach-Message: yes
>
>
> Content-Type:text/html

See those two blank lines?
You can't have those, it has to be RT-Attach-Message: yes and
Content-Type: text/html as the very first two lines in your template,
followed by a blank line, followed by your HTML.

-kevin

> <html>
> <body>
> <div style="width:625px">
> <div style="width:625px">
> <p><a href="http://www.domain.com"> <img src="http://www2.domain.com/support/foo_Footer.png" width="623" height="107" /></a></p>
> </div>
> <div style="width:625px">
> <table width="623" border="0" cellpadding="2">
> <tr>
> <td><p><strong>Subject: Updated: {$Ticket->Subject}</strong></p>
> <BR></td>
> <td rowspan="4"><img src="http://www2.domain.com/support/foo-mascot.png" align="middle"></td>
> </tr>
> <tr>
> <td>Your request: <strong>{ $Ticket->SubjectTag } </strong>has been updated or responded to.
> </td>
> </tr>
> <tr>
> <td><blockquote>
> <p><strong>{$Transaction->Content()}</strong></p>
> </blockquote></td>
> </tr>
> <tr>
> <td><BR>
> Please keep the subject line <strong>{ $Ticket->SubjectTag }</strong> for future correspondence relating to this request. Details about your request are at the end of this message. You may call your Pro River Support Team at 719-425-2148 then (Option 2) for support.<BR>
> <BR>You will receive further emails as your request is addressed by our support staff.</td>
> </tr>
> </table>
>
> </div>
> <div style="width:625px">
> <p><a href="http://www.domain.com">www.domain.com</a><BR>
> <a href="http://www.facebook.com/domain?bookmark_t=page">Have you liked us on Facebook</a></p>
> <p></p>
> </div>
> <div style="width:625px">
> <a href="http://www.facebook.com/domain"><img src="http://www2.domain.com/support/facebook.png"></a>
> <a href="http://www.twitter.com/domain"><img src="http://www2.domain.com/support/twitter.png"></a>
> <a href="https://plus.google.com/u/0/111987394504497225"><img src="http://www2.domain.com/support/google.png"></a>
> <a href="http://www.linkedin.com/company/24259"><img src="http://www2.domain.com/support/linkedin.png"></a>
> <a href="http://www.youtube.com/user/domain"><img src="http://www2.domain.com/support/youtube.png"></a></div>
> <BR>
> <div style="width:625px">
> <table width="623" border="0" cellpadding="2">
> <tr>
> <td>
> <BR>
> <p>------------------------Original Message------------------------<BR>
> Date: {$Transaction->Attachments->First->GetHeader('Date')}<BR>
> To: {$Transaction->Attachments->First->GetHeader('To')}<BR>
> From: {$Transaction->Attachments->First->GetHeader('From')}<BR>
> Cc: {$Transaction->Attachments->First->GetHeader('Cc')}<BR>
> Subject: {$Ticket->Subject}<BR>
> <br>
> <br>
> {$Ticket->Transactions->First->Content()}</p></td>
> </tr>
> </table>
> </div>
> </div>
> </body>
> </html>
>
> [Josh Hopkins]
>
>
>
>

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.