[ZendTo] Re: HTML Email formatting?

Gray McCord gdm at sangabriel.com
Tue Mar 12 16:04:55 GMT 2013


Well, you are correct. After brushing up on my RFC1341 I figured out that
the reason I was having problems was that I needed to add the "boundary"
parameter to the "Content-Type" header and them incorporate it in the
template. I actually chose to use "multipart/alternative", which lets me put
both an html and text version in the same email template. Seems to work
great.  Text-only mail clients see the text version and HTML-capable clients
display only the HTML version, which is the behavior I'm looking for. If I
use "multipart/mixed", both show up in HTML-capable clients. Plus or minus
getting my HTML under control in the template, it works great!

Thanks, Jules

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:  Tuesday, March 12, 2013 7:51 AM
To:  ZendTo Users <zendto at zend.to>
Subject:  [ZendTo] Re: HTML Email formatting?

    
 But if you only use text/html, then only mail apps that can display HTML
(and are configured to do so) can/will show any message content at all.
Anything that can only render plain text (or has been set to just show plain
text emails, which is fairly easy in Thunderbird and Outlook, I believe)
won't be able to show anything as there's no text/plain message segment at
all.
 
 Also, without multipart/mixed you can't embed an image of any sort, which
many people might want to do so they can put an image in their sig like you
do.
 
 Jules.
 
 
On 11/03/2013 18:34, Gray McCord wrote:
 
 
>  
>  
>  
> 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 <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
> 
> 'What happened in the past that was painful, has a great deal to
>  do with what we are today.' - William Glasser
> 
> 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/20130312/8d529178/attachment-0001.html 


More information about the ZendTo mailing list