Email problems

Results 1 to 2 of 2

Thread: Email problems

  1. #1
    Join Date
    Dec 1969

    Default Email problems

    &#060;%@ Page Language="c#" AutoEventWireup="false"%&#062;<BR>&#060;%<BR> System.Web.Mail.SmtpMail.Send (<BR> "",<BR> "",<BR> "This is the subject.",<BR> "This is the message.");<BR>%&#062;<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?

  2. #2
    Join Date
    Dec 1969

    Default RE: Email problems

    try specifying the smtpServer:<BR><BR> System.Web.Mail.MailMessage objMail = new System.Web.Mail.MailMessage();<BR> objMail.To = "";<BR> objMail.From = "";<BR> objMail.Subject = "OK";<BR> objMail.Body = "Now I See";<BR> System.Web.Mail.SmtpMail.SmtpServer = "";<BR> System.Web.Mail.SmtpMail.Send(objMail); <BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts