[ZendTo] Re: HTML Email formatting?

Gray McCord gdm at sangabriel.com
Mon Mar 11 18:34:17 GMT 2013


Turns out I had to change the content type to text/html to make it work.
When I used multipart/mixed, Mailscanner (familiar with it? ;-)  )
quarantined the mails and sent me nasty messages. Works great now!

Thanks!

Gray

Gray McCord
Adapt, Mutate, Migrate, or Die
                                                          -C. Darwin


From:  Jules <Jules at zend.to>
Organization:  ZendTo
Reply-To:  ZendTo Users <zendto at zend.to>
Date:  Monday, March 11, 2013 9:13 AM
To:  ZendTo Users <zendto at zend.to>
Subject:  [ZendTo] Re: HTML Email formatting?

    
 This would require a tiny change to the code to insert the relevant
headers, and then a rewrite of the email templates in
/opt/zendto/templates/*email.tpl.
 
 The change is in /opt/zendto/lib/NSSDropbox.php, in the function
"deliverEmail". You would need to change the Content-Type header to be
"multipart/mixed" and set the separator line and so on so that the message
was correctly built in MIME format.
 
 If you're up to doing that (look at the headers and source structure for a
simple HTML email containing a bit of styled text and you'll see the layout
used), then it's not too big a job.
 
 I haven't done it in ZendTo already because getting the email template
exactly right is probably beyond the abilities of most administrators, so
they would just end up breaking it. Not a good result. :-(
 It's simpler for everyone getting it going if they are just plain text.
 
 Jules.
 
 
On 07/03/2013 15:19, Gray McCord wrote:
 
 
>  
>  
>  
> Is there any way to format the outgoing email notifications as HTML? I'd like
> to apply a bit more branding to the installation I'm working on and was
> wondering if I could make the emails a bit more user-friendly.
>  
> 
>  
>  
> Thanks!
>  
> 
>  
>  
> Gray
>  
> 
>  
>  
>  
>  
> Gray McCord
>  
> Adapt, Mutate, Migrate, or Die
>  
>                                                           -C. Darwin
>  
>  
> 
>  
>  
>  
>  
>  
>  -- 
>  This message has been scanned for viruses and
>  dangerous content by MailScanner <http://www.mailscanner.info/> , and is
>  believed to be clean.
>   
>  
> _______________________________________________
> ZendTo mailing list
> ZendTo at zend.tohttp://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
>  
>  
> Jules
> 
> -- 
> Julian Field MEng MBCS CITP CEng
> 
> Viking: Variable 4, becoming northwest 5 or 6. Moderate, becoming rough later.
> Snow showers. Good, occasionally poor.
> 
> www.Zend.To <http://www.Zend.To>
> Twitter: @JulesFM
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
>  
 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner <http://www.mailscanner.info/> , and is
believed to be clean.
_______________________________________________ ZendTo mailing list
ZendTo at zend.to http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20130311/6835d27c/attachment.html 


More information about the ZendTo mailing list