Saturday, March 24, 2012
HTML E-Mail with HTML Form ??
Do you know if it's possible to send an HTML E-Mail with an HTML Form
(<form></form>) embedded in it??
And if so, will Outlook (a) render the form properly and (b) allow you
to submit the form normally?
Thanks!!> Do you know if it's possible to send an HTML E-Mail with an HTML Form
> (<form></form>) embedded in it??
Yes, you can include the form and the send will work.
> And if so, will Outlook (a) render the form properly and (b) allow you
> to submit the form normally?
It depends on the user's security settings and which version of outlook they
are using. (It should work for most.)
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
"Glen" <gfergo@.henryschein.com> wrote in message
news:58841151.0311131004.22e96081@.posting.google.c om...
> Hi,
> Do you know if it's possible to send an HTML E-Mail with an HTML Form
> (<form></form>) embedded in it??
> And if so, will Outlook (a) render the form properly and (b) allow you
> to submit the form normally?
> Thanks!!
html email with embedded images
I know how to send emails from the .Net environment, even html mails.
But, what is the best way to add images to the html?
A URL to an image somewhere on some server is usually blocked nowadays,
so you need to send the image as attachment. I had some success when I
used the filename (without path) of the attachment as img-src.
Is that the only way or are there better methods?
A related question: some of these images might be stored in the database
or generated "on the fly", but the MailAttachment class uses filenames.
Is there any way to attach some document *without* storing it first?
If not, can I safely delete that temporary file directly after I send the
email to the server?
Hans KestingI don't believe you can embed images into an email with the .net mail.
I also have to send out email's with embedded images that came from a
database. I basically had to write my own SMTP client to replace the built
in .net version. You can also purchase a 3rd party package that will do
this. (I couldn't since our product is resold and it would cause licencing
issues)
Unfortunally I can't send my code...they would probably fire me! But I can
offer you a few pointers on what you should do. Writing you're own SMTP
client isn't as easy as it sounds...there's a lot of standards to follow.
I strongly recommend that you use a 3rd party package...maybe this:
http://www.quiksoft.com/emdotnet/comparison.asp
"Hans Kesting" <news.2.hansdk@.spamgourmet.com> wrote in message
news:OZp%23JhRsEHA.160@.TK2MSFTNGP11.phx.gbl...
> Hi,
> I know how to send emails from the .Net environment, even html mails.
> But, what is the best way to add images to the html?
> A URL to an image somewhere on some server is usually blocked nowadays,
> so you need to send the image as attachment. I had some success when I
> used the filename (without path) of the attachment as img-src.
> Is that the only way or are there better methods?
> A related question: some of these images might be stored in the database
> or generated "on the fly", but the MailAttachment class uses filenames.
> Is there any way to attach some document *without* storing it first?
> If not, can I safely delete that temporary file directly after I send the
> email to the server?
> Hans Kesting
>
html email with embedded images
I know how to send emails from the .Net environment, even html mails.
But, what is the best way to add images to the html?
A URL to an image somewhere on some server is usually blocked nowadays,
so you need to send the image as attachment. I had some success when I
used the filename (without path) of the attachment as img-src.
Is that the only way or are there better methods?
A related question: some of these images might be stored in the database
or generated "on the fly", but the MailAttachment class uses filenames.
Is there any way to attach some document *without* storing it first?
If not, can I safely delete that temporary file directly after I send the
email to the server?
Hans KestingI don't believe you can embed images into an email with the .net mail.
I also have to send out email's with embedded images that came from a
database. I basically had to write my own SMTP client to replace the built
in .net version. You can also purchase a 3rd party package that will do
this. (I couldn't since our product is resold and it would cause licencing
issues)
Unfortunally I can't send my code...they would probably fire me! But I can
offer you a few pointers on what you should do. Writing you're own SMTP
client isn't as easy as it sounds...there's a lot of standards to follow.
I strongly recommend that you use a 3rd party package...maybe this:
http://www.quiksoft.com/emdotnet/comparison.asp
"Hans Kesting" <news.2.hansdk@.spamgourmet.com> wrote in message
news:OZp%23JhRsEHA.160@.TK2MSFTNGP11.phx.gbl...
> Hi,
> I know how to send emails from the .Net environment, even html mails.
> But, what is the best way to add images to the html?
> A URL to an image somewhere on some server is usually blocked nowadays,
> so you need to send the image as attachment. I had some success when I
> used the filename (without path) of the attachment as img-src.
> Is that the only way or are there better methods?
> A related question: some of these images might be stored in the database
> or generated "on the fly", but the MailAttachment class uses filenames.
> Is there any way to attach some document *without* storing it first?
> If not, can I safely delete that temporary file directly after I send the
> email to the server?
> Hans Kesting
Html email and embedded images.
If so can you post an example.
Thanks
Ok now I know it is not possible without a component. Is there a freecomponent around that lets you imbed images in to html emails?
Thursday, March 22, 2012
HTML Code embedded within HTML Page as Text
I want to display HTML code on an HTML page but I want the code to display
as text. In other words, I want the code not to be rendered as HTML on the
HTML page, but rather have it rendered as simple text.
This must be easy to do as I see it everywhere.
TIA."Paul" <Paul@.discussions.microsoft.comwrote in message
news:D092F17D-1B17-4C1C-BCD0-F60B7A640368@.microsoft.com...
Quote:
Originally Posted by
I want to display HTML code on an HTML page but I want the code to display
as text. In other words, I want the code not to be rendered as HTML on the
HTML page, but rather have it rendered as simple text.
>
This must be easy to do as I see it everywhere.
<pre>
</pre>
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
I initially tried this (before the post) and it did not work.
For example the code below showed up as a hyperlink...
<pre>
<a href="http://links.10026.com/?link=help">asas</a>
</pre>
"Mark Rae [MVP]" wrote:
Quote:
Originally Posted by
"Paul" <Paul@.discussions.microsoft.comwrote in message
news:D092F17D-1B17-4C1C-BCD0-F60B7A640368@.microsoft.com...
>
Quote:
Originally Posted by
I want to display HTML code on an HTML page but I want the code to display
as text. In other words, I want the code not to be rendered as HTML on the
HTML page, but rather have it rendered as simple text.
This must be easy to do as I see it everywhere.
>
<pre>
>
</pre>
>
>
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
>
>
"Paul" <Paul@.discussions.microsoft.comwrote in message
news:1FA6E284-FA15-4C39-9616-47785A5F4046@.microsoft.com...
Quote:
Originally Posted by
>I initially tried this (before the post) and it did not work.
Works for me...
You can see an example of it here:
http://www.htmlcodetutorial.com/linepar/_PRE.html
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
This does NOT work
<PRE>
<a href="http://links.10026.com/?link=www.blah.com"Click here to got to blah.com</a>
</PRE>
However This Works
<PRE>
<a href="http://links.10026.com/?link=www.blah.com"> Click here to got to blah.com</a>
</PRE>
"Mark Rae [MVP]" <mark@.markNOSPAMrae.netwrote in message
news:eM80IiVIIHA.3940@.TK2MSFTNGP05.phx.gbl...
Quote:
Originally Posted by
"Paul" <Paul@.discussions.microsoft.comwrote in message
news:1FA6E284-FA15-4C39-9616-47785A5F4046@.microsoft.com...
>
Quote:
Originally Posted by
>>I initially tried this (before the post) and it did not work.
>
Works for me...
>
You can see an example of it here:
http://www.htmlcodetutorial.com/linepar/_PRE.html
>
>
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
"IfThenElse" <sql_agentman@.hotmail.comwrote in message
news:erYYK%23VIIHA.588@.TK2MSFTNGP05.phx.gbl...
Quote:
Originally Posted by
"Mark Rae [MVP]" <mark@.markNOSPAMrae.netwrote in message
news:eM80IiVIIHA.3940@.TK2MSFTNGP05.phx.gbl...
Quote:
Originally Posted by
>"Paul" <Paul@.discussions.microsoft.comwrote in message
>news:1FA6E284-FA15-4C39-9616-47785A5F4046@.microsoft.com...
>>
Quote:
Originally Posted by
>>>I initially tried this (before the post) and it did not work.
>>
>Works for me...
>>
>You can see an example of it here:
>http://www.htmlcodetutorial.com/linepar/_PRE.html
Quote:
Originally Posted by
This does NOT work
<PRE>
<a href="http://links.10026.com/?link=www.blah.com"Click here to got to blah.com</a>
</PRE>
>
However This Works
<PRE>
<a href="http://links.10026.com/?link=www.blah.com"> Click here to got to blah.com</a>
</PRE>
>
Yes - I forgot to mention the encoding part - apologies, group...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net