|
|
 |
| ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.1 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|

October 4th, 2005, 03:20 PM
|
|
Authorized User
|
|
Join Date: Aug 2005
Location: , , Canada.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Sending Web based email to multiple people
Hello,
Does anyone know the process as to how to send HTML Web based email to a group of people. I have a database of 20 names and email addresses. I would like to send an email to each of them with their name inserted. Also I would like the email to look like a webpage with Tables.
Can anyone point me in the right direction as to how I can do this?
thanks,
Ray
|

October 5th, 2005, 07:06 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Location: Melbourne, Vic, Australia.
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Code:
sMsg = "<table><tr><td>SomeHTML stuff</td></tr></table>"
Do While Not Rs.EOF
SendEmail Rs("Name"), "your@email", "some Subject", "Dear " & Rs("Name") & sMsg
Rs.MoveNext
Loop
Function SendEmail(sTo, sFrom, sSubject, sBody, sAttach)
Dim objCDO
'Create a new CDO objects
Set objCDO = Server.CreateObject("CDONTS.NewMail")
'Enter the sender's email address
objCDO.To = sTo
'Enter the recipients of this email, use ; to separate the addresses
objCDO.From = sFrom
'Enter the subject of this email
objCDO.Subject = sSubject
objCDO.BodyFormat = 0 'CdoBodyFormatHTML
objCDO.MailFormat = 0 'CdoMailFormatMime
objCDO.AddAttachment(sAttach)
'Enter the body text of the message
objCDO.Body = sBody
'Send the email!
objCDO.Send
'Release the object
set objCDO=nothing
End Function
I am a loud man with a very large hat. This means I am in charge
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |