|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Email the same html page as attachment after submission
I have designed a form after submission of which an email is sent to a perticular e-mail id. Up to this it works fine but I need to send a complete filled html page in attachment too.
Can this be possible. If any way to do this please let me know. As mail sender am using CDO. Thanks Sachin ![]() |
|
#2
|
|||
|
|||
|
I accomplish this in one of my apps by writing to a text file on submit (either .txt or using the formatting for .rtf) and attach the file to the email. You could even delete the file after the email is sent if you didn't have a reason for keeping it on the server.
|
|
#3
|
|||
|
|||
|
Kindly send me a link to that thread please
|
|
#4
|
|||
|
|||
|
Code:
dim objFile, oInStream
Const ForWriting = 2
Set objFile = CreateObject("Scripting.FileSystemObject")
Set oInStream = objFile.CreateTextFile( Server.MapPath(Session.SessionID & "/filename.txt"))
oInStream.WriteLine "System : " & Request.Form("addSys")
oInStream.WriteLine "Reason : " & Request.Form(jobDuties")
oInStream.Close
Set oInStream = Nothing
Just an example mind you. But you could use .rtf formatting as well if you want it pretty. Also check out here: http://support.microsoft.com/defaul...&NoWebContent=1 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Email the same html page as attachment after submission |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|