Hello Dear Sirs ,
Please, I have a question about How to Send email using SMTP Mail Server !
The following code is valid and works, but in Server link Godaddy :
Dim body As String = "<b> Hi Sir , <br/> This E-mail ... </b> <br/> <br/> " + "Name :" + TextName + "<br/>" + "<br/>" + "Email :" + TextEmail + "<br/>" + "<br/>" + "Country :" + TextCityName + "<br/>" + "<br/>" + "Phone :" + TextPhone + "<br/>" + "<br/>" + " <b> Selected Course : </b>" + "<br/>" + "<br/>" + "Course Title :" + "<br/>" + EnglishName + "<br/>" + "<br/>" + "Course Date :" + StartCours + "<br/>" + "<br/>" + "Msg :" + TextComment
Dim mail As New MailMessage()
mail.[To].Add("email.com")
mail.Bcc.Add("email.com")
mail.From = New MailAddress("email.com")
mail.Subject = "New Register Member - CGC G "
mail.Body = body
mail.IsBodyHtml = True
Dim smtp As New SmtpClient("relay-hosting.secureserver.net")
smtp.EnableSsl = False
smtp.UseDefaultCredentials = True
smtp.Send(mail)
How to change settings from Godaddy to 1and1 server link ,So that I can send the email?