<pre>mailbox unavailable. the server response was relay not permitted </pre>
<system.net> <mailSettings> <smtp from="feedback@gorwalyouthstar.co.in"> <network host="smtp.net4india.com" port="25" userName="grtgrt" password="fgfhgf" </smtp> </mailSettings> </system.net>
Protected Sub btnvsubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnvsubmit.Click If Panel1.Visible = False Then Panel1.Visible = True End If Dim smtpClient As New SmtpClient() Dim MailMessage As New MailMessage() Dim EMail As MailMessage = New MailMessage() EMail.From = New MailAddress(txtvemail.Text) EMail.To.Add(New MailAddress("feedback@gorwalyouthstar.co.in")) EMail.Subject = "Feedback " + txtvemail.Text EMail.Body = "Name: " + txtvname.Text + Environment.NewLine + "Email Id: " + txtvemail.Text + Environment.NewLine + "Country: " + txtvillage.Text + Environment.NewLine + "Message: " + txtvmsg.Text smtpClient.Host = "smtp.net4india.com" 'what is Smtp mail address ' 'smtpClient.EnableSsl = False smtpClient.Send(EMail) 'smtpClient.Credentials = New System.Net.NetworkCredential("", "password") Try 'smtpClient.Send(EMail) lblmsg.Text = "Thank you for sending us feedback!" txtvname.Text = "" txtvemail.Text = "" 'ddlCountry.SelectedValue = "---Select---" txtvillage.Text = "" txtvmsg.Text = "" Catch exc As Exception Response.Write("Send failure: " & exc.ToString()) lblmsg.Text = "Try Again .. Data is not save Successfully!" End Try End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)