navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

CDONTS.NewMail / FSO question

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> CDONTS.NewMail / FSO question
Page: [1]
 
Aaron Edwards

 

Posts: 2
Joined: 8/15/2003
Status: offline

 
CDONTS.NewMail / FSO question - 8/15/2003 16:41:22   
Hi,

I want to attach the contents of a string variable as a text file to a CDONTs.Newmail object. My question is:

Do I need to first save the text file to the server using the FileSystemObject and then attach it using the attach method of the Newmail object or is there a way to skip the first step?

Thanks.
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: CDONTS.NewMail / FSO question - 8/16/2003 2:31:07   
Youd have to do FSO first, the attachfile method doesnt have any extra capabilities.
Is there a reason to need an attached file?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Aaron Edwards)
Aaron Edwards

 

Posts: 2
Joined: 8/15/2003
Status: offline

 
RE: CDONTS.NewMail / FSO question - 8/16/2003 12:16:27   
Yes, the reason is that I blew it. I blew it by showing the client how cool it was when the notification emil came in html format and had their logo and pretty colors in it and everything. The email is a notification of a submitted form, the data of which go to a database of course, but are also presented in an html table in the notification email. Now the client loves that, but they also want it in text format, without having to copy anyhthing and paste it into a text editor, so they can use it as metadata to the work that the submission actually initiates.

So, I was hoping you could do something like:

objMailer.AttachFile (objBody AS "mailbody.txt")

or something like that. Too bad we can't mix languages like that whenever we want.

Hey, thanks for your reply.

_____________________________


(in reply to Aaron Edwards)
Spooky

 

Posts: 26606
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: CDONTS.NewMail / FSO question - 8/16/2003 15:44:35   
If its not heavily used (and no-one else comes up with a better idea!) it will work the way you want.
I think it just gets messy when maintaining unique text file names or overwriting old copies.
Still, the client is always right ;-)

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to Aaron Edwards)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> CDONTS.NewMail / FSO question
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts