This topic is locked

Send PDF as attachment after record add

11/6/2007 6:00:32 AM
ASPRunnerPro General questions
D
dlangham author

Is there a way of auto sending a PDF document as an attachment after a record has been added using events and the fpdf function?

The record will contain images also!!!

Sergey Kornilov admin 11/6/2007

Sending file attachments is not possible with CDO.

D
dlangham author 11/6/2007

Sergey,
I beg to differ, you can use the property Send Attachment as below (attachment is hard coded here, but you could specify the file path using Server.Mappath as well):

MyMail.AddAttachment "c:\myweb\somefile.jpg"


Please correct me if I am wrong.

Sergey Kornilov admin 11/6/2007

You are correct - it is possible to attach the file. This means you need to have an access to writable directory on the web server where you can save your files, attach them and delete after email was sent.