The "SendUsing" configuration value is invalid

Hi Folks,

I wrote a code to send email for local intranet website. when i tested the doce worked fine, sent email to where ever i wanted. but when i uploaded on intranet server it displayed "The "SendUsing" configuration value is invalid" error. After a look through server i realised in IIS the in no SMTP Virtual Server installed which i have on my local system. but, this company i work for they use their mail server. like mail4.domain.com. i dont understand. any help will be appresiated. I am posting code which i am using for my local system to send software.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

emailMessage()

End Sub

Private Sub emailMessage()

Dim sb As StringBuilder = New StringBuilder

Dim msgMail As MailMessage = New MailMessage

msgMail.To = ConfigurationSettings.AppSettings("ToEmail")

msgMail.From = Email.Text

msgMail.Cc = ConfigurationSettings.AppSettings("CcEmail")

msgMail.Subject = Subject.Text

msgMail.BodyFormat = MailFormat.Html

sb.Append(Phone.Text)

sb.Append("<br>")

sb.Append(Message.Text)

msgMail.Body = sb.ToString

SmtpMail.Send(msgMail)

End Sub




Answer this question

The "SendUsing" configuration value is invalid