I am trying to get an ASP.NET email form to run using C#
Here is my code:
Code:
SmtpClient Mail = new SmtpClient("smtp.mydomain.com");
Mail.Send("myemail@ddress.com", txtEmail.Text,
txtName.Text, txtMessage.Text, txtPref.Text);
When I run that I get the following error message:
Quote:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1501: No overload for method 'Send' takes '5' arguments
|
If I take out txtName or txtMessage or txtPref it works, is there a way to get it to work with all of them?
__________________
pjb007
|