Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding attachment to generated emails

Status
Not open for further replies.

SmokeyJoe

Programmer
Nov 13, 2000
80
US
I have a web site where I send emails to members with email addresses in file using the following code:
veMailAddress= veMail
Set myMail=CreateObject("CDO.Message")
myMail.Subject=vSubject
myMail.From=vSender
myMail.To=veMailAddress
myMail.TextBody=veMailMessage
myMail.Send
set myMail=nothing
This works well however, I want to be able to attach newsletters to the emails and I don't know the code. I would guess something like "MyMail.Attachment" should do it where Attachment is a string containing the what I want attached.

Thanks for any help

smokey joe
 
Thanks, I looked up the info and I think it is what I was looking for.
smokey joe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top