CDO AddAttachment

I am successfully sending emails with attachments using CDOSYS (CDO for windows 2000). I use the AddAttachment method and pass a url to a web page in our system that produces reports.

Is there any way the link used in AddAttachment can pass variables to the body part or the message? The most obvious would be http header variables returned in the response - but i haven't had any success with these, the AddAttachment method seems to ignore them(inspecting ADO Fields collections reveals the standard settings).

The reason I want to do this is to inspect a record count to determine if the mail should be sent, at this stage it looks like I'll have to hide it in the report and pull it out of the body part's ADO stream. Not the most efficient method.

View Replies


ADVERTISEMENT

Msg.AddAttachment Not Attaching File To Email?

I am using Server.CreateObject("Scripting.FileSystemObject") to create a CSV file.

'create file
Set fs=Server.CreateObject("Scripting.FileSystemObject")

if fs.FileExists(server.MapPath("/temp/data.csv")) then
set myfile = fs.GetFile(server.MapPath("/temp/data.csv"))
myfile.delete
set myfile = nothing
end if

The CSV file is then attached to an email and sent.

Code:....

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved