JoeP
10-20-2002, 09:54 PM
I do not have any problems with sending an ASP e-mail page utilizing CDONTS. The syntax I use is:
hopStrTo = Request.Form("hopStrTo")
hopStrFrom = Request.Form("hopStrFrom")
hopStrCc = Request.Form("hopStrCc")
hopStrSubject = Request.Form("hopStrSubject")
hopStrAttch = Request.Form("hopStrAttch")
hopStrBody = Request.Form("hopStrBody")
The problem I have is the attachment. If I HARD code the syntax:
hopMailBox.AttachFile "C:\Test.txt", "Test.txt"
The Test.txt goes with the e-mail - No Problems.
If I try to use the variable hopStrAttch passed from the form, it is not recognized and the file as well as the email) does not go.
I have tried:
hopStrAttch = "C:\Test.txt", "Test.txt" in the Form Box
with ASP code:
hopMailBox.AttachFile hopStrAttch
also tried 2 variables:
hopStrAttch1 = "C:\Test.txt"
hopStrAttch2 = "Test.txt"
with ASP code:
hopMailBox.AttachFile hopStrAttch1, hopstrAttach2
No Luck.
Any suggestions and or guidance very much appreciated.
TIA
hopStrTo = Request.Form("hopStrTo")
hopStrFrom = Request.Form("hopStrFrom")
hopStrCc = Request.Form("hopStrCc")
hopStrSubject = Request.Form("hopStrSubject")
hopStrAttch = Request.Form("hopStrAttch")
hopStrBody = Request.Form("hopStrBody")
The problem I have is the attachment. If I HARD code the syntax:
hopMailBox.AttachFile "C:\Test.txt", "Test.txt"
The Test.txt goes with the e-mail - No Problems.
If I try to use the variable hopStrAttch passed from the form, it is not recognized and the file as well as the email) does not go.
I have tried:
hopStrAttch = "C:\Test.txt", "Test.txt" in the Form Box
with ASP code:
hopMailBox.AttachFile hopStrAttch
also tried 2 variables:
hopStrAttch1 = "C:\Test.txt"
hopStrAttch2 = "Test.txt"
with ASP code:
hopMailBox.AttachFile hopStrAttch1, hopstrAttach2
No Luck.
Any suggestions and or guidance very much appreciated.
TIA