• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

cdo .addattachment?

JeffPell

n00b
Joined
Aug 24, 2005
Messages
49
I made another post concerning this yesterday but have yet to find a helpful answer.

I am trying create a page to allow people to submit resumes via our webpage. I decided it would be easiest to write it into a simpe cdo format, but I am getting an error whenever I attempt to attach a file and send.

Here is the error I am getting:

Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'Request.Form(...).AddAttachment'


Here is the code that I'm using:

<%
sch = "http://schemas.microsoft.com/cdo/configuration/"

Set cdoConfig = CreateObject("CDO.Configuration")

With cdoConfig.Fields
.Item(sch & "sendusing") = 2 'CDO SEND USING PORT NUMBER
.Item(sch & "smtpserver") = "smtp.server.net"
.update
End With

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = Request.Form("email")
.To = "mail@mail.com"
.Subject = Request.Form("subject")
.TextBody = Request.Form("body")
.AddAttachment = Request.Form("resume")
.Send
End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>


Any help would be greatly appreciated. Thanks in advance. :)
 
Back
Top