title: Mails are not being sent using smtp client and ASP.NET
body: <p>I have been going through some posts on Stack Overflow that look similar to mine and I have tweaked my code but it is still not working. My code is pated for your perusal below:</p>
  
  <pre><code>Dim ss As SmtpClient = New SmtpClient("smtp.gmail.com", 587)
      'Dim ss As SmtpClient = New SmtpClient("smtp.gmail.com",465 )
      'Dim ss As SmtpClient = New SmtpClient("smtp.gmail.com", 25)
      ss.Timeout = 10000
      ss.DeliveryMethod = SmtpDeliveryMethod.Network
      ss.UseDefaultCredentials = False
      ss.EnableSsl = True
      ss.UseDefaultCredentials = False
      ss.Credentials = New NetworkCredential("name@gmail.com", "name@123")
  
  
      Dim subject As String = "Approval request for Quotation with Order Number: " + Me.OrderNo
  
      Dim body As String = "Dear Sir/Madam," + vbCrLf + " This is to bring to your notice the quotation for the Client " + Me.cmbCustomer.SelectedItem.Text + " and Order Number " + Me.OrderNo &amp; _
          " which is awaiting your approval." + vbCrLf + "Click here to view and approve the Quotation: http:192.168.20.7/appname/Sales/ManageInvoices.aspx" + vbCrLf &amp; _
          " Kindly revert after approval. Thank you." + vbCrLf + "Regards."
  
      Dim To1, To2, To3 As String
  
      Dim mm As MailMessage = New MailMessage()
      mm.From = New MailAddress("name@gmail.com")
  
      To1 = "usernameTo1@domain.com"
      To2 = "usernameTo2@domain.com"
      To3 = "usernameTo3@gmail.com"
      'To is a collection of MailAddress types
      mm.To.Add(To1)
      mm.To.Add(To2)
      mm.To.Add(To3)
  
      mm.Subject = subject
      mm.Body = body
  
      mm.BodyEncoding = UTF8Encoding.UTF8
      'mm.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure
      Try
          ss.Send(mm)
      Catch ex As SmtpException
          Me.lblerr.Text = "SMTP Err:" &amp; ex.ToString
      End Try
  </code></pre>
  
  <p>So what could be making the mails not to reach their destination? I am not getting any error message at all. Please help thanks.</p>