Hi Guys

I have 2 files

1st File a user creates a Text File using the FileSystemObject
2nd File I want to send an email confirming the Text File has been created

I do not want to include the script to send an email with the script to create a file so is there any way I could cause an email to be sent in another asp page
after a file is created in the first page?

I have the code to create a file and send an email already just need to know how I might make the above work

Cheers Everyone

Hi,
once the text file has been created, use

Response.Redirect

to get to the second file, where you can send an e-mail.

I think you need to forward some information to the second file, e.g. recipient or file name. In this case, the upper procedure will not work, except you use cookies.

The best way is to define 2 functions. This way you use one executing asp file only. You can place the functions in other files and include them in your executing file.

Good luck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.