By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,160 Members | 1,983 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,160 IT Pros & Developers. It's quick & easy.

Need Advice: HTML newsletter

P: n/a
I have an HTML newsletter that I want to email to a bunch of people found in
a database.

1. I want some parts of the newsletter to filled in dynamically from a
database (company, address, etc...)
2. I want to email send the HTML newletter in the BODY of the message (ie
NOT an attachment.)

Using ASP.NET and VB.NET, what is the best way to do this?

Thanks!
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
You can email a page to somebody using the WebRequest and MailMessage
classes for this functionality.
Here are a couple examples:

http://www.aspalliance.com/stevesmit...ailwebsite.asp

http://aspnet.4guysfromrolla.com/articles/091102-1.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"VB Programmer" <Ro************************@juno.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have an HTML newsletter that I want to email to a bunch of people found in a database.

1. I want some parts of the newsletter to filled in dynamically from a
database (company, address, etc...)
2. I want to email send the HTML newletter in the BODY of the message (ie
NOT an attachment.)

Using ASP.NET and VB.NET, what is the best way to do this?

Thanks!

Nov 18 '05 #2

P: n/a
Thanks. I know how to send an email message. So, do I have to, in my
code-behind, stick all the HTML in a string, appending dynamic text as
necessary, then send this as the body? Is this the best way?

What if the user want to change the text of the newsletter via the web. Any
suggestions?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:ex**************@TK2MSFTNGP09.phx.gbl...
You can email a page to somebody using the WebRequest and MailMessage
classes for this functionality.
Here are a couple examples:

http://www.aspalliance.com/stevesmit...ailwebsite.asp

http://aspnet.4guysfromrolla.com/articles/091102-1.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"VB Programmer" <Ro************************@juno.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have an HTML newsletter that I want to email to a bunch of people found
in
a database.

1. I want some parts of the newsletter to filled in dynamically from a
database (company, address, etc...)
2. I want to email send the HTML newletter in the BODY of the message

(ie NOT an attachment.)

Using ASP.NET and VB.NET, what is the best way to do this?

Thanks!


Nov 18 '05 #3

P: n/a
The instructions I gave were for emailing a web page.
In other words, you could create a standard web page containing the dynamic
contents of your choosing, using standard Label controls and whatnot to fill
in user specific data.
Then you can email the contents of that page.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"VB Programmer" <Ro************************@juno.com> wrote in message
news:eC*************@TK2MSFTNGP12.phx.gbl...
Thanks. I know how to send an email message. So, do I have to, in my
code-behind, stick all the HTML in a string, appending dynamic text as
necessary, then send this as the body? Is this the best way?

What if the user want to change the text of the newsletter via the web. Any suggestions?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:ex**************@TK2MSFTNGP09.phx.gbl...
You can email a page to somebody using the WebRequest and MailMessage
classes for this functionality.
Here are a couple examples:

http://www.aspalliance.com/stevesmit...ailwebsite.asp

http://aspnet.4guysfromrolla.com/articles/091102-1.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"VB Programmer" <Ro************************@juno.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have an HTML newsletter that I want to email to a bunch of people found
in
a database.

1. I want some parts of the newsletter to filled in dynamically from a
database (company, address, etc...)
2. I want to email send the HTML newletter in the BODY of the message

(ie NOT an attachment.)

Using ASP.NET and VB.NET, what is the best way to do this?

Thanks!



Nov 18 '05 #4

P: n/a
So I can use standard Label controls to fill in the dynamic portions of this
standard HTML file?

Thanks Steve!

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:u$**************@TK2MSFTNGP09.phx.gbl...
The instructions I gave were for emailing a web page.
In other words, you could create a standard web page containing the dynamic contents of your choosing, using standard Label controls and whatnot to fill in user specific data.
Then you can email the contents of that page.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"VB Programmer" <Ro************************@juno.com> wrote in message
news:eC*************@TK2MSFTNGP12.phx.gbl...
Thanks. I know how to send an email message. So, do I have to, in my
code-behind, stick all the HTML in a string, appending dynamic text as
necessary, then send this as the body? Is this the best way?

What if the user want to change the text of the newsletter via the web.

Any
suggestions?
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:ex**************@TK2MSFTNGP09.phx.gbl...
You can email a page to somebody using the WebRequest and MailMessage
classes for this functionality.
Here are a couple examples:

http://www.aspalliance.com/stevesmit...ailwebsite.asp

http://aspnet.4guysfromrolla.com/articles/091102-1.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"VB Programmer" <Ro************************@juno.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> I have an HTML newsletter that I want to email to a bunch of people

found
in
> a database.
>
> 1. I want some parts of the newsletter to filled in dynamically from a > database (company, address, etc...)
> 2. I want to email send the HTML newletter in the BODY of the
message (ie
> NOT an attachment.)
>
> Using ASP.NET and VB.NET, what is the best way to do this?
>
> Thanks!
>
>



Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.