Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.net/Email/MX/VB.net

Status
Not open for further replies.

tsp1lrk

IS-IT--Management
May 30, 2001
103
US
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 = &quot;whoever@123.com&quot;
EmailFrom = Request.Form(&quot;Email&quot;)
EmailCc = &quot;whoever@123.com&quot;
EmailSubject = &quot;Test&quot;
EmailBody = &quot;Hi!&quot; & &quot; &quot; & Request.Form(&quot;strFname&quot;) & &quot; &quot; & Request.Form(&quot;strLname&quot;)
SmtpMail.SmtpServer = &quot;whatever.server.com&quot;
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
 
see if this yields answers:



logo.gif width='75' height='15'

bath.gif
 
Thanks but it still didn't work- Any other ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top