Hello,
Not sure which forum to post this in, I'm utilizing Dreamweaver so I'm going to post it here to start. I'm using ASP.net (VB.net) to create a page. Got the page to update a record and send an email-I just added a CC line to the email and I get this error:
Compiler Error Message: BC30516: Overload resolution failed because no accessible 'Send' accepts this number of arguments.
Here is my mail code:
<%
Dim EmailTo As String
Dim EmailCc As String
Dim EmailFrom As String
Dim EmailSubject As String
Dim EmailBody As String
Dim StrFname As String
EmailTo = "whoever@123.com"
EmailFrom = Request.Form("Email"
EmailCc = "whoever@123.com"
EmailSubject = "Test"
EmailBody = "Hi!" & " " & Request.Form("strFname"
& " " & Request.Form("strLname"
SmtpMail.SmtpServer = "whatever.server.com"
System.Web.Mail.SmtpMail.Send(EmailFrom, EmailTo, EmailCc, EmailSubject, EmailBody)
%>
Why can't I CC someone??? If I take that out, all works fine! Weird- Help!
Much appreciated-
Lisa
Not sure which forum to post this in, I'm utilizing Dreamweaver so I'm going to post it here to start. I'm using ASP.net (VB.net) to create a page. Got the page to update a record and send an email-I just added a CC line to the email and I get this error:
Compiler Error Message: BC30516: Overload resolution failed because no accessible 'Send' accepts this number of arguments.
Here is my mail code:
<%
Dim EmailTo As String
Dim EmailCc As String
Dim EmailFrom As String
Dim EmailSubject As String
Dim EmailBody As String
Dim StrFname As String
EmailTo = "whoever@123.com"
EmailFrom = Request.Form("Email"
EmailCc = "whoever@123.com"
EmailSubject = "Test"
EmailBody = "Hi!" & " " & Request.Form("strFname"
SmtpMail.SmtpServer = "whatever.server.com"
System.Web.Mail.SmtpMail.Send(EmailFrom, EmailTo, EmailCc, EmailSubject, EmailBody)
%>
Why can't I CC someone??? If I take that out, all works fine! Weird- Help!
Much appreciated-
Lisa