> -----Original Message----- > From: [email protected] [mailto:rt-users- > [email protected]] On Behalf Of Kevin Falcone > Sent: Friday, August 10, 2012 5:48 PM > To: [email protected] > 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]
