Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Email using CDONTS

Hi

I would like to include a list from a recordset in a CDONTS email to be sent
to a customer at the end of a transaction.
So far I can add various fields as shown:

Set MailObj = Server.CreateObject("CDONTS.NewMail")
MailObj.From = "
MailObj.To = rsSchools.Fields.Item("Email").Value
MailObj.Cc = "
MailObj.Bcc = "
MailObj.Subject = "Subject matter- " & (rsSchools.Fields.Item("School
Name").Value)
MailObj.Importance = 2
MailObj.Body = "GB 2004 entry received from: " &
rsSchools.Fields.Item("School Name").Value & VBCrLf &_
rsSchools.Fields.Item("Contact").Value & VBCrLf &_
rsSchools.Fields.Item("Address1").Value & VBCrLf &_
rsSchools.Fields.Item("Address2").Value & ", " &
rsSchools.Fields.Item("Town").Value & VBCrLf &_
rsSchools.Fields.Item("County").Value & ". " &
rsSchools.Fields.Item("PostCode").Value & VBCrLf &_
rsSchools.Fields.Item("Phone").Value & VBCrLf &_
rsSchools.Fields.Item("Email").Value & VBCrLf & VBCrLf &_

etc. etc

I would now like to add the content of an existing recordset to the email,
repeating until the recordset is empty.

What code do I need to add to the above?? Thanks for any help.

Jim


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Email using CDONTS

Jim,

What does this have to do with Excel??

Stan Scott
New York City

"Jim" wrote in message
...
Hi

I would like to include a list from a recordset in a CDONTS email to be

sent
to a customer at the end of a transaction.
So far I can add various fields as shown:

Set MailObj = Server.CreateObject("CDONTS.NewMail")
MailObj.From = "
MailObj.To = rsSchools.Fields.Item("Email").Value
MailObj.Cc = "
MailObj.Bcc = "
MailObj.Subject = "Subject matter- " & (rsSchools.Fields.Item("School
Name").Value)
MailObj.Importance = 2
MailObj.Body = "GB 2004 entry received from: " &
rsSchools.Fields.Item("School Name").Value & VBCrLf &_
rsSchools.Fields.Item("Contact").Value & VBCrLf &_
rsSchools.Fields.Item("Address1").Value & VBCrLf &_
rsSchools.Fields.Item("Address2").Value & ", " &
rsSchools.Fields.Item("Town").Value & VBCrLf &_
rsSchools.Fields.Item("County").Value & ". " &
rsSchools.Fields.Item("PostCode").Value & VBCrLf &_
rsSchools.Fields.Item("Phone").Value & VBCrLf &_
rsSchools.Fields.Item("Email").Value & VBCrLf & VBCrLf &_

etc. etc

I would now like to add the content of an existing recordset to the email,
repeating until the recordset is empty.

What code do I need to add to the above?? Thanks for any help.

Jim




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Macro how to create email link for the email addresses in aRange or Selection Satish[_2_] Excel Worksheet Functions 8 December 28th 09 03:30 PM
send wkbk as an email attachment with an email address copied from SueInAtl Excel Discussion (Misc queries) 0 May 21st 07 10:53 PM
can I copy a column of email addresses, paste into email address? Lizizfree New Users to Excel 4 July 20th 06 10:03 PM
Transfer Email addresses from spreadsheet to email address book Beana Excel Discussion (Misc queries) 2 May 30th 06 06:07 PM
Email editor closes when forwarding Excel-embedded email Bambina Setting up and Configuration of Excel 0 March 16th 06 10:45 PM


All times are GMT +1. The time now is 04:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"