tanyacaribou
New Member
<%@ Page Language="c#" AutoEventWireup="false"%><BR><%<BR> System.Web.Mail.SmtpMail.Send (<BR> "[email protected]",<BR> "[email protected]",<BR> "This is the subject.",<BR> "This is the message.");<BR>%><BR><BR>I use this code on a certain server and it gives me this error<BR>The "SendUsing" configuration value is invalid.<BR><BR>But I used the same code on another server and it works. (they both have the .Net Framework installed)<BR><BR>What adjustments will I have to make on the server?try specifying the smtpServer:<BR><BR> System.Web.Mail.MailMessage objMail = new System.Web.Mail.MailMessage();<BR> objMail.To = "[email protected]";<BR> objMail.From = "[email protected]";<BR> objMail.Subject = "OK";<BR> objMail.Body = "Now I See";<BR> System.Web.Mail.SmtpMail.SmtpServer = "mail.elity.com";<BR> System.Web.Mail.SmtpMail.Send(objMail); <BR>