|
 |
asp_web_howto thread: Attaching an RTF file via CDONTS.NewMail
Message #1 by "Paul Hawthorne" <paul.hawthorne@s...> on Mon, 7 Oct 2002 12:51:26
|
|
I have an application that generates an RFT file and I want to
automatically email to people.
I have struggled with all the "" issues and have mangaged to get it to
work for txt files.
When I change the code to rtf it fails with an Unspecified Error on that
line.
My question is simple - Can you attach rtf files?
If so can someone please send me an example, if not does anyone have a
work around.
Many Thank
Paul
Message #2 by Imar Spaanjaars <Imar@S...> on Mon, 07 Oct 2002 19:51:45 +0200
|
|
Yes, you can. You can attach any kind of file, as long it's on disk somewhere.
Why don't you post some of your code so we can take a look at it?
Cheers,
Imar
At 12:51 PM 10/7/2002 +0000, you wrote:
>I have an application that generates an RFT file and I want to
>automatically email to people.
>
>I have struggled with all the "" issues and have mangaged to get it to
>work for txt files.
>
>When I change the code to rtf it fails with an Unspecified Error on that
>line.
>
>My question is simple - Can you attach rtf files?
>
>If so can someone please send me an example, if not does anyone have a
>work around.
>
>Many Thank
>
>Paul
Message #3 by "Paul Hawthorne" <paul.hawthorne@s...> on Tue, 8 Oct 2002 10:24:51
|
|
The file is generated each month from a database and saved on the web server as sept02.rtf. This works
fine, the next stage is to email the file as an attachment.
This is the code I am using to attach and send the email:-
Subject = "Data for Sept 02"
objEMail.To = email 'from db table of recipients
objEMail.From = sender ' system
objEMail.Subject = subject
objEmail.AttachFile "d:\inetpub\wwwroot\inetapp\export\sept02.rtf", "sept02.rft",1
objEMail.BodyFormat = 0
objEMail.MailFormat = 0
objEMail.Body = HTML
objEMail.Send
Set objEMail = Nothing
Thanks
Paul
> Yes, you can. You can attach any kind of file, as long it's on disk somewhere.
Why don't you post some of your code so we can take a look at it?
Cheers,
Imar
At 12:51 PM 10/7/2002 +0000, you wrote:
>I have an application that generates an RFT file and I want to
>automatically email to people.
>
>I have struggled with all the "" issues and have mangaged to get it to
>work for txt files.
>
>When I change the code to rtf it fails with an Unspecified Error on that
>line.
>
>My question is simple - Can you attach rtf files?
>
>If so can someone please send me an example, if not does anyone have a
>work around.
>
>Many Thank
>
>Paul
|
|
 |