You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Hassan Schroeder <ha...@gmail.com> on 2009/08/28 17:19:56 UTC

Re: Display of velocity template emails in clients that might not display HTML

On Fri, Aug 28, 2009 at 8:02 AM, Pradnya
Gawade<pr...@gmail.com> wrote:

> I am using HTML velocity templates to send the emails through a web
> application. My question is, will these emails look okay on a client
> that might not display HTML email (such as a mobile phone)?

No. Regardless of the platform, if a mail client doesn't support (for
whatever reason) HTML mail, you need to send both an HTML and
a plain text version.

Google "multipart/alternative email" for more info...

-- 
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Display of velocity template emails in clients that might not display HTML

Posted by Pradnya Gawade <pr...@gmail.com>.
all right. Thanks Chris. I will try to implement multipart messages
with Velocity Engine.

On Fri, Aug 28, 2009 at 2:56 PM, Christopher
Schultz<ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Pradnya,
>
> On 8/28/2009 12:21 PM, Pradnya Gawade wrote:
>> one more quick question about this. Can I go for sending multipart
>> message with Velocity?
>
> Yes, you can generate multipart messages with Velocity. You can do this
> a number of ways, including "1 template for everything" where you
> generate the entire multipart message, or having separate templates for
> the HTML and text bodies. I think you might have better luck with the
> latter, because JavaMail/MimeMessage might mangle your all-in-one message.
>
>> or I will have to g for FreeMarker-based
>> multipart email necessarily?
>
> Freemarker is not necessary, and I'm not sure why it's relevant (unless
> Freemarker comes with a nice utility making this all easy to do or
> something).
>
>> I already have implemented Velocity based
>> email so I was thinking if I have change my implementation completely
>> or I can modify the same to make use of multipart messages.
>
> Stick with Velocity if you're comfortable with it. You'll likely have
> the same challenges regardless of the templating technology you use.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkqYKG4ACgkQ9CaO5/Lv0PCCJQCfcFnXvnQTtHxr19miEIfSSJWZ
> 8iQAoJtDdiOVbsNUAIcl8RvZPWQsDz6T
> =dW5N
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Display of velocity template emails in clients that might not display HTML

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pradnya,

On 8/28/2009 12:21 PM, Pradnya Gawade wrote:
> one more quick question about this. Can I go for sending multipart
> message with Velocity?

Yes, you can generate multipart messages with Velocity. You can do this
a number of ways, including "1 template for everything" where you
generate the entire multipart message, or having separate templates for
the HTML and text bodies. I think you might have better luck with the
latter, because JavaMail/MimeMessage might mangle your all-in-one message.

> or I will have to g for FreeMarker-based
> multipart email necessarily?

Freemarker is not necessary, and I'm not sure why it's relevant (unless
Freemarker comes with a nice utility making this all easy to do or
something).

> I already have implemented Velocity based
> email so I was thinking if I have change my implementation completely
> or I can modify the same to make use of multipart messages.

Stick with Velocity if you're comfortable with it. You'll likely have
the same challenges regardless of the templating technology you use.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqYKG4ACgkQ9CaO5/Lv0PCCJQCfcFnXvnQTtHxr19miEIfSSJWZ
8iQAoJtDdiOVbsNUAIcl8RvZPWQsDz6T
=dW5N
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Display of velocity template emails in clients that might not display HTML

Posted by Pradnya Gawade <pr...@gmail.com>.
all right. Thanks Todd. I will try to implement multipart messages
with Velocity Engine.

On Fri, Aug 28, 2009 at 2:43 PM, <To...@wellsfargo.com> wrote:
> Pradnya,
>
> Yes, the implementation would be the same except that you would be using Velocity instead of FreeMarker to transform the template into the email body.
>
> I am not familiar with FreeMarker so I can't comment it.
>
> Regards
>
> Todd McClintock
>
> -----Original Message-----
> From: Pradnya Gawade [mailto:pradnya.gawade7@gmail.com]
> Sent: Friday, August 28, 2009 11:35 AM
> To: Velocity Users List
> Subject: Re: Display of velocity template emails in clients that might not display HTML
>
> Thank you Todd for replying. Thanks for additional info about testing
> the plain mail messages. Even I am not sure if I will get client to
> test the plain test messages or not.
>
> After goggling for multipart email messages, I got following link
> showing sample of Sending FreeMarker-based multipart email with
> Spring:
> http://opensource.atlassian.com/confluence/spring/display/DISC/Sending+FreeMarker-based+multipart+email+with+Spring
>
> So, if I have to use Velocity Engine then will the implementation
> would be on similar lines with a difference of using velocity template
> to generate the mail message instead of using FreeMarker  templates?
>
>
> Thanks,
> Pradnya
>
>
> On Fri, Aug 28, 2009 at 2:14 PM, <To...@wellsfargo.com> wrote:
>> Pradnya,
>>
>> I implemented a multipart mime email in Java using velocity templates.  I used one template for the HTML version and another template for the text version.  Both templates used the same variable names for substitution.  The beauty of doing this with Velocity was that I could open the HTML version with a browser and see what the email would look like.  I could also edit the email with an HTML Authoring tool.  The text version was equally easy to review and maintain.
>>
>> The Java code that creates and sends multipart mime email messages puts the HTML Body and the Text Body in two different objects.
>>
>> When trying to test the text part of the multipart mime email I found it very hard to find a client that would display the text version.  Outlook says that it has a text option but I found that it displayed the HTML Version minus the HTML Markup.  The only way I could display the text version was to use gmail.  They have a "garbled message" option which will display the text version.  Maybe there are email clients for the vision impaired that use the text version.  I was left wondering who would see the text version.
>>
>> Regards
>>
>> Todd McClintock
>>
>>
>> -----Original Message-----
>> From: Pradnya Gawade [mailto:pradnya.gawade7@gmail.com]
>> Sent: Friday, August 28, 2009 10:58 AM
>> To: user@velocity.apache.org
>> Subject: Display of velocity template emails in clients that might not display HTML
>>
>> Hi,
>>
>> I am planning to use multipart email messages so that both HTML
>> supporting and HTML not supporting clients will be able to read the
>> message properly. My question is can it be implemented with Velocity
>> Engine or I will have to necessarily go for template library such as
>> FreeMarker? I already have implemented Velocity based email in my web
>> application, so I was thinking if I have to change my implementation
>> completely
>> or I can modify the same to make use of multipart messages.
>>
>> Thanks in advance.
>> Pradnya
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
>> For additional commands, e-mail: user-help@velocity.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
>> For additional commands, e-mail: user-help@velocity.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


RE: Display of velocity template emails in clients that might not display HTML

Posted by To...@wellsfargo.com.
Pradnya,

Yes, the implementation would be the same except that you would be using Velocity instead of FreeMarker to transform the template into the email body.

I am not familiar with FreeMarker so I can't comment it.

Regards

Todd McClintock

-----Original Message-----
From: Pradnya Gawade [mailto:pradnya.gawade7@gmail.com] 
Sent: Friday, August 28, 2009 11:35 AM
To: Velocity Users List
Subject: Re: Display of velocity template emails in clients that might not display HTML

Thank you Todd for replying. Thanks for additional info about testing
the plain mail messages. Even I am not sure if I will get client to
test the plain test messages or not.

After goggling for multipart email messages, I got following link
showing sample of Sending FreeMarker-based multipart email with
Spring:
http://opensource.atlassian.com/confluence/spring/display/DISC/Sending+FreeMarker-based+multipart+email+with+Spring

So, if I have to use Velocity Engine then will the implementation
would be on similar lines with a difference of using velocity template
to generate the mail message instead of using FreeMarker  templates?


Thanks,
Pradnya


On Fri, Aug 28, 2009 at 2:14 PM, <To...@wellsfargo.com> wrote:
> Pradnya,
>
> I implemented a multipart mime email in Java using velocity templates.  I used one template for the HTML version and another template for the text version.  Both templates used the same variable names for substitution.  The beauty of doing this with Velocity was that I could open the HTML version with a browser and see what the email would look like.  I could also edit the email with an HTML Authoring tool.  The text version was equally easy to review and maintain.
>
> The Java code that creates and sends multipart mime email messages puts the HTML Body and the Text Body in two different objects.
>
> When trying to test the text part of the multipart mime email I found it very hard to find a client that would display the text version.  Outlook says that it has a text option but I found that it displayed the HTML Version minus the HTML Markup.  The only way I could display the text version was to use gmail.  They have a "garbled message" option which will display the text version.  Maybe there are email clients for the vision impaired that use the text version.  I was left wondering who would see the text version.
>
> Regards
>
> Todd McClintock
>
>
> -----Original Message-----
> From: Pradnya Gawade [mailto:pradnya.gawade7@gmail.com]
> Sent: Friday, August 28, 2009 10:58 AM
> To: user@velocity.apache.org
> Subject: Display of velocity template emails in clients that might not display HTML
>
> Hi,
>
> I am planning to use multipart email messages so that both HTML
> supporting and HTML not supporting clients will be able to read the
> message properly. My question is can it be implemented with Velocity
> Engine or I will have to necessarily go for template library such as
> FreeMarker? I already have implemented Velocity based email in my web
> application, so I was thinking if I have to change my implementation
> completely
> or I can modify the same to make use of multipart messages.
>
> Thanks in advance.
> Pradnya
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Re: Display of velocity template emails in clients that might not display HTML

Posted by Pradnya Gawade <pr...@gmail.com>.
Thank you Todd for replying. Thanks for additional info about testing
the plain mail messages. Even I am not sure if I will get client to
test the plain test messages or not.

After goggling for multipart email messages, I got following link
showing sample of Sending FreeMarker-based multipart email with
Spring:
http://opensource.atlassian.com/confluence/spring/display/DISC/Sending+FreeMarker-based+multipart+email+with+Spring

So, if I have to use Velocity Engine then will the implementation
would be on similar lines with a difference of using velocity template
to generate the mail message instead of using FreeMarker  templates?


Thanks,
Pradnya


On Fri, Aug 28, 2009 at 2:14 PM, <To...@wellsfargo.com> wrote:
> Pradnya,
>
> I implemented a multipart mime email in Java using velocity templates.  I used one template for the HTML version and another template for the text version.  Both templates used the same variable names for substitution.  The beauty of doing this with Velocity was that I could open the HTML version with a browser and see what the email would look like.  I could also edit the email with an HTML Authoring tool.  The text version was equally easy to review and maintain.
>
> The Java code that creates and sends multipart mime email messages puts the HTML Body and the Text Body in two different objects.
>
> When trying to test the text part of the multipart mime email I found it very hard to find a client that would display the text version.  Outlook says that it has a text option but I found that it displayed the HTML Version minus the HTML Markup.  The only way I could display the text version was to use gmail.  They have a "garbled message" option which will display the text version.  Maybe there are email clients for the vision impaired that use the text version.  I was left wondering who would see the text version.
>
> Regards
>
> Todd McClintock
>
>
> -----Original Message-----
> From: Pradnya Gawade [mailto:pradnya.gawade7@gmail.com]
> Sent: Friday, August 28, 2009 10:58 AM
> To: user@velocity.apache.org
> Subject: Display of velocity template emails in clients that might not display HTML
>
> Hi,
>
> I am planning to use multipart email messages so that both HTML
> supporting and HTML not supporting clients will be able to read the
> message properly. My question is can it be implemented with Velocity
> Engine or I will have to necessarily go for template library such as
> FreeMarker? I already have implemented Velocity based email in my web
> application, so I was thinking if I have to change my implementation
> completely
> or I can modify the same to make use of multipart messages.
>
> Thanks in advance.
> Pradnya
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


RE: Display of velocity template emails in clients that might not display HTML

Posted by To...@wellsfargo.com.
Pradnya,

I implemented a multipart mime email in Java using velocity templates.  I used one template for the HTML version and another template for the text version.  Both templates used the same variable names for substitution.  The beauty of doing this with Velocity was that I could open the HTML version with a browser and see what the email would look like.  I could also edit the email with an HTML Authoring tool.  The text version was equally easy to review and maintain.

The Java code that creates and sends multipart mime email messages puts the HTML Body and the Text Body in two different objects.

When trying to test the text part of the multipart mime email I found it very hard to find a client that would display the text version.  Outlook says that it has a text option but I found that it displayed the HTML Version minus the HTML Markup.  The only way I could display the text version was to use gmail.  They have a "garbled message" option which will display the text version.  Maybe there are email clients for the vision impaired that use the text version.  I was left wondering who would see the text version.

Regards

Todd McClintock


-----Original Message-----
From: Pradnya Gawade [mailto:pradnya.gawade7@gmail.com] 
Sent: Friday, August 28, 2009 10:58 AM
To: user@velocity.apache.org
Subject: Display of velocity template emails in clients that might not display HTML

Hi,

I am planning to use multipart email messages so that both HTML
supporting and HTML not supporting clients will be able to read the
message properly. My question is can it be implemented with Velocity
Engine or I will have to necessarily go for template library such as
FreeMarker? I already have implemented Velocity based email in my web
application, so I was thinking if I have to change my implementation
completely
or I can modify the same to make use of multipart messages.

Thanks in advance.
Pradnya

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Display of velocity template emails in clients that might not display HTML

Posted by Pradnya Gawade <pr...@gmail.com>.
Hi,

I am planning to use multipart email messages so that both HTML
supporting and HTML not supporting clients will be able to read the
message properly. My question is can it be implemented with Velocity
Engine or I will have to necessarily go for template library such as
FreeMarker? I already have implemented Velocity based email in my web
application, so I was thinking if I have to change my implementation
completely
or I can modify the same to make use of multipart messages.

Thanks in advance.
Pradnya

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Re: Display of velocity template emails in clients that might not display HTML

Posted by Pradnya Gawade <pr...@gmail.com>.
all right, sorry. Actually I had a difficulty in successfully
deploying my web application to Tomcat when I used Velocity Engine in
it, which is when I posted to this group last time. And just continued
with same this time for further difficulty by mistake. I will contact
Velocity group for Velocity related problems henceforth. Thanks.


On Fri, Aug 28, 2009 at 12:59 PM, Pid<pi...@pidster.com> wrote:
> On 28/08/2009 17:21, Pradnya Gawade wrote:
>>
>> Hi folks,
>>
>> one more quick question about this. Can I go for sending multipart
>> message with Velocity? or I will have to g for FreeMarker-based
>> multipart email necessarily? I already have implemented Velocity based
>> email so I was thinking if I have change my implementation completely
>> or I can modify the same to make use of multipart messages.
>
> You are really probably better off asking this stuff on the Velocity mailing
> lists.
>
>  http://velocity.apache.org/contact.html
>
> This here's the Tomcat Server's User list, where we specialise in asking
> people to repeat their email including their Tomcat, JVM & OS versions -
> then telling them not to use path="" in their Context definitions.
>
> Occasionally we help with other stuff, but it's mostly to do with getting
> Tomcat servers to work.
>
> p
>
>
>
>> Thanks in advance.
>> Pradnya
>>
>>
>>
>> On Fri, Aug 28, 2009 at 11:28 AM, Pradnya
>> Gawade<pr...@gmail.com>  wrote:
>>>
>>> Thank you all for your replies. Yes, it looks like I should send the
>>> alternate text email along with HTML. I will go through the links
>>> provided to get me started.
>>>
>>> Martin, I don't know what version of browser because I am considering
>>> this as a general scenario for all those clients which do not display
>>> HTML emails.
>>>
>>> Thanks,
>>> Pradnya
>>>
>>>
>>> On Fri, Aug 28, 2009 at 11:19 AM, Hassan
>>> Schroeder<ha...@gmail.com>  wrote:
>>>>
>>>> On Fri, Aug 28, 2009 at 8:02 AM, Pradnya
>>>> Gawade<pr...@gmail.com>  wrote:
>>>>
>>>>> I am using HTML velocity templates to send the emails through a web
>>>>> application. My question is, will these emails look okay on a client
>>>>> that might not display HTML email (such as a mobile phone)?
>>>>
>>>> No. Regardless of the platform, if a mail client doesn't support (for
>>>> whatever reason) HTML mail, you need to send both an HTML and
>>>> a plain text version.
>>>>
>>>> Google "multipart/alternative email" for more info...
>>>>
>>>> --
>>>> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>>>> twitter: @hassan
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Display of velocity template emails in clients that might not display HTML

Posted by Pid <pi...@pidster.com>.
On 28/08/2009 17:21, Pradnya Gawade wrote:
> Hi folks,
>
> one more quick question about this. Can I go for sending multipart
> message with Velocity? or I will have to g for FreeMarker-based
> multipart email necessarily? I already have implemented Velocity based
> email so I was thinking if I have change my implementation completely
> or I can modify the same to make use of multipart messages.

You are really probably better off asking this stuff on the Velocity 
mailing lists.

  http://velocity.apache.org/contact.html

This here's the Tomcat Server's User list, where we specialise in asking 
people to repeat their email including their Tomcat, JVM & OS versions - 
then telling them not to use path="" in their Context definitions.

Occasionally we help with other stuff, but it's mostly to do with 
getting Tomcat servers to work.

p



> Thanks in advance.
> Pradnya
>
>
>
> On Fri, Aug 28, 2009 at 11:28 AM, Pradnya
> Gawade<pr...@gmail.com>  wrote:
>> Thank you all for your replies. Yes, it looks like I should send the
>> alternate text email along with HTML. I will go through the links
>> provided to get me started.
>>
>> Martin, I don't know what version of browser because I am considering
>> this as a general scenario for all those clients which do not display
>> HTML emails.
>>
>> Thanks,
>> Pradnya
>>
>>
>> On Fri, Aug 28, 2009 at 11:19 AM, Hassan
>> Schroeder<ha...@gmail.com>  wrote:
>>> On Fri, Aug 28, 2009 at 8:02 AM, Pradnya
>>> Gawade<pr...@gmail.com>  wrote:
>>>
>>>> I am using HTML velocity templates to send the emails through a web
>>>> application. My question is, will these emails look okay on a client
>>>> that might not display HTML email (such as a mobile phone)?
>>>
>>> No. Regardless of the platform, if a mail client doesn't support (for
>>> whatever reason) HTML mail, you need to send both an HTML and
>>> a plain text version.
>>>
>>> Google "multipart/alternative email" for more info...
>>>
>>> --
>>> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>>> twitter: @hassan
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Display of velocity template emails in clients that might not display HTML

Posted by Pradnya Gawade <pr...@gmail.com>.
Hi folks,

one more quick question about this. Can I go for sending multipart
message with Velocity? or I will have to g for FreeMarker-based
multipart email necessarily? I already have implemented Velocity based
email so I was thinking if I have change my implementation completely
or I can modify the same to make use of multipart messages.

Thanks in advance.
Pradnya



On Fri, Aug 28, 2009 at 11:28 AM, Pradnya
Gawade<pr...@gmail.com> wrote:
> Thank you all for your replies. Yes, it looks like I should send the
> alternate text email along with HTML. I will go through the links
> provided to get me started.
>
> Martin, I don't know what version of browser because I am considering
> this as a general scenario for all those clients which do not display
> HTML emails.
>
> Thanks,
> Pradnya
>
>
> On Fri, Aug 28, 2009 at 11:19 AM, Hassan
> Schroeder<ha...@gmail.com> wrote:
>> On Fri, Aug 28, 2009 at 8:02 AM, Pradnya
>> Gawade<pr...@gmail.com> wrote:
>>
>>> I am using HTML velocity templates to send the emails through a web
>>> application. My question is, will these emails look okay on a client
>>> that might not display HTML email (such as a mobile phone)?
>>
>> No. Regardless of the platform, if a mail client doesn't support (for
>> whatever reason) HTML mail, you need to send both an HTML and
>> a plain text version.
>>
>> Google "multipart/alternative email" for more info...
>>
>> --
>> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
>> twitter: @hassan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Display of velocity template emails in clients that might not display HTML

Posted by Pradnya Gawade <pr...@gmail.com>.
Thank you all for your replies. Yes, it looks like I should send the
alternate text email along with HTML. I will go through the links
provided to get me started.

Martin, I don't know what version of browser because I am considering
this as a general scenario for all those clients which do not display
HTML emails.

Thanks,
Pradnya


On Fri, Aug 28, 2009 at 11:19 AM, Hassan
Schroeder<ha...@gmail.com> wrote:
> On Fri, Aug 28, 2009 at 8:02 AM, Pradnya
> Gawade<pr...@gmail.com> wrote:
>
>> I am using HTML velocity templates to send the emails through a web
>> application. My question is, will these emails look okay on a client
>> that might not display HTML email (such as a mobile phone)?
>
> No. Regardless of the platform, if a mail client doesn't support (for
> whatever reason) HTML mail, you need to send both an HTML and
> a plain text version.
>
> Google "multipart/alternative email" for more info...
>
> --
> Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
> twitter: @hassan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org