[rt-users] HTML emails and attachments

Kevin Falcone falcone at bestpractical.com
Mon Aug 20 12:43:11 EDT 2012


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] 
> 
> 
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120820/a146350b/attachment.sig>


More information about the rt-users mailing list