Hi,
My booking system sends a HTML formated email as a recipt to the client
on completion of their booking. All is working well however it has been
pointed out to me that not all people's email clients will display the
reciept as HTML, if for instance the person has chosen to view email's as
plain text only, then the email will render as a unpleasent text. It is
crucial that the person visible see the information in the reciept presented
nicely, regardless of if there email client has been configured to show
email as HTML or plin text.
I have done a bit of research and found that I ca show either HTML of email
by altering a setting in the message headers.
My question is can I ammend the message headers directly through vb.net (or
any other dot net language) or will I have to use a third party component
for this, if so has anybody got any recomendations.
cheers
martin.System.Web.Mail.MailMessage exposes the Headers property, which will return
an IDictionary object that you can use to modify the headers.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows XP
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"Alex" <alex_REMOVE_9876@.yahoo.com> wrote in message
news:ebvSd5ApDHA.2456@.TK2MSFTNGP09.phx.gbl...
> Hi,
> My booking system sends a HTML formated email as a recipt to the client
> on completion of their booking. All is working well however it has been
> pointed out to me that not all people's email clients will display the
> reciept as HTML, if for instance the person has chosen to view email's as
> plain text only, then the email will render as a unpleasent text. It is
> crucial that the person visible see the information in the reciept
presented
> nicely, regardless of if there email client has been configured to show
> email as HTML or plin text.
> I have done a bit of research and found that I ca show either HTML of
email
> by altering a setting in the message headers.
> My question is can I ammend the message headers directly through vb.net
(or
> any other dot net language) or will I have to use a third party component
> for this, if so has anybody got any recomendations.
>
> cheers
> martin.
Hi Chris,
Thanks for that advice.
However I am a little perplexed by this property.
The documentation says
Specifies the custom headers that are transmitted with the e-mail message.
but the definitions says
[Visual Basic]
Public ReadOnly Property Headers As IDictionary
so what I am wondering is how exactly I set the headers of a attributes of a
read only property.
I can't seem to find any good examples of this, do you know of any or can
you point me in the right direction.
cheers
Alex.
"Chris Jackson" <chrisjATmvpsDOTorgNOSPAM> wrote in message
news:OzslbcKpDHA.2612@.TK2MSFTNGP10.phx.gbl...
> System.Web.Mail.MailMessage exposes the Headers property, which will
return
> an IDictionary object that you can use to modify the headers.
> --
> Chris Jackson
> Software Engineer
> Microsoft MVP - Windows XP
> Windows XP Associate Expert
> --
> More people read the newsgroups than read my email.
> Reply to the newsgroup for a faster response.
> (Control-G using Outlook Express)
> --
> "Alex" <alex_REMOVE_9876@.yahoo.com> wrote in message
> news:ebvSd5ApDHA.2456@.TK2MSFTNGP09.phx.gbl...
> > Hi,
> > My booking system sends a HTML formated email as a recipt to the
client
> > on completion of their booking. All is working well however it has been
> > pointed out to me that not all people's email clients will display the
> > reciept as HTML, if for instance the person has chosen to view email's
as
> > plain text only, then the email will render as a unpleasent text. It is
> > crucial that the person visible see the information in the reciept
> presented
> > nicely, regardless of if there email client has been configured to show
> > email as HTML or plin text.
> > I have done a bit of research and found that I ca show either HTML of
> email
> > by altering a setting in the message headers.
> > My question is can I ammend the message headers directly through vb.net
> (or
> > any other dot net language) or will I have to use a third party componen
t
> > for this, if so has anybody got any recomendations.
> > cheers
> > martin.
Showing posts with label completion. Show all posts
Showing posts with label completion. Show all posts
Saturday, March 24, 2012
Thursday, March 22, 2012
HTML completion - VS.NET 7.1
Hi,
I'm working on an ASP.NET application, written in C#, using VS.NET .
When working on aspx pages, HTML completion does not work (neither tag
closing nor statement completion). Completion works fine for code behind
files and for HTML written in ascx user control files.
My definitions looks fine:
Tools->Options->Test Editor->HTML/XML->HTML specific:
* 'Auto pop-up HTML statement completion' is checked.
* 'Auto pop-up scripting statement completion' is checked.
* 'Close tag' is checked.
If anyone has any ideas or directions it would be a big help.
Thanks
I'm working on an ASP.NET application, written in C#, using VS.NET .
When working on aspx pages, HTML completion does not work (neither tag
closing nor statement completion). Completion works fine for code behind
files and for HTML written in ascx user control files.
My definitions looks fine:
Tools->Options->Test Editor->HTML/XML->HTML specific:
* 'Auto pop-up HTML statement completion' is checked.
* 'Auto pop-up scripting statement completion' is checked.
* 'Close tag' is checked.
If anyone has any ideas or directions it would be a big help.
Thanks
HTML completion - VS.NET 7.1
Hi,
I'm working on an ASP.NET application, written in C#, using VS.NET .
When working on aspx pages, HTML completion does not work (neither tag
closing nor statement completion). Completion works fine for code behind
files and for HTML written in ascx user control files.
My definitions looks fine:
Tools->Options->Test Editor->HTML/XML->HTML specific:
* 'Auto pop-up HTML statement completion' is checked.
* 'Auto pop-up scripting statement completion' is checked.
* 'Close tag' is checked.
If anyone has any ideas or directions it would be a big help.
Thanks
I'm working on an ASP.NET application, written in C#, using VS.NET .
When working on aspx pages, HTML completion does not work (neither tag
closing nor statement completion). Completion works fine for code behind
files and for HTML written in ascx user control files.
My definitions looks fine:
Tools->Options->Test Editor->HTML/XML->HTML specific:
* 'Auto pop-up HTML statement completion' is checked.
* 'Auto pop-up scripting statement completion' is checked.
* 'Close tag' is checked.
If anyone has any ideas or directions it would be a big help.
Thanks
Subscribe to:
Posts (Atom)