I have this Issue with the email I get it says the recipient is postmaster@jomax.net? However I do not have the From line of code what should it be so it can read the senders email? I just have [To]
Try
Dim mailMessage As New MailMessage()
mailMessage.[To].Add("csosa@iogproducts.com")
mailMessage.Subject = txtSubject.Text
mailMessage.Body = "<b>Sender Name : </b>" + txtname.Text + "<br/>" + "<b>Sender Email : </b>" + txtEmail.Text + "<br/>" + "<b>Phone : </b>" + txtPhone.Text + "<br/>" + "<b>Subject : </b>" + txtSubject.Text + "<br/>" + "<b>Company : </b>" + txtCompany.Text + "<br/>" + "<b>Items Being Shipped : </b>" + txtItembeingshipped.Text + "<br/>" + "<b>How fragile is the shipment? : </b>" + txtHowfragileistheshipment.Text + "<br/>" + "<b>What are the dimensions of the shipment? : </b>" + txtWhatarethedimensionsoftheshipment.Text + "<br/>" + "<b>How much does shipment weigh? : </b>" + txtHowmuchdoesshipmentweigh.Text + "<br/>" + "<b>Comments : </b>" + txtComments.Text + "<br/>" + "<b>Country : </b>" + ddlCountries.SelectedValue
mailMessage.IsBodyHtml = True
Dim smtpClient As New SmtpClient("relay-hosting.secureserver.net", 25)
smtpClient.Send(mailMessage)
Label1.Text = "Thanks for contacting us"
Label1.ForeColor = System.Drawing.Color.Blue
txtname.Enabled = False
txtEmail.Enabled = False
txtComments.Enabled = False
txtSubject.Enabled = False
Button1.Enabled = False
Catch generatedExceptionName As Exception
' Log - Event Viewer or table
Label1.ForeColor = System.Drawing.Color.Blue
Label1.ForeColor = System.Drawing.Color.Red
Label1.Text = "There is an unknown problem. Please try later"
End Try