Sending Email Fails [solved]

Posts 1–12 of 12 · Page 1 of 1
Sending Email Fails [solved]
Code:
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at                              
   at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
   at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
   at System.Net.Mail.SmtpTranspo******ndMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at WindowsApplication1.Form1.Timer1_Tick(Object sender, EventArgs e) in C:\Users\Hackzerz\Desktop\HACKING\email bomber\Email Bomber\Form1.2.vb:line 22
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.237 (RTMGDR.030319-2300)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Email Bomber
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Hackzerz/Desktop/HACKING/email%20bomber/Email%20Bomber/bin/Release/Email%20Bomber.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 10.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.236 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.235 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 built by: RTMRel
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.233 built by: RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


---
this is on my email bomber, can anyone help?
Use SSL and an authentication account
wats that lol
and what do u mean by auth acc?

[FIXED] THANKS BRO
Okay, here's some code I used in an old project, a very generic email function:
[highlight=vb.net]
Imports System.Net.Mail
Imports System.Net
[/highlight]

[highlight=vb.net]
Public Structure SmtpServer
Public Shared LiveSmtp = New SmtpServer("smtp.live.com", 587, False)
Public Shared GmailSmtp = New SmtpServer("smtp.gmail.com", 587, True)

Public URI As String
Public Port As Integer
Public UseSSL As Boolean

Public Sub New(ByVal smtp As String, ByVal port As Integer, ByVal ssl As Boolean)
Me.URI = smtp
Me.Port = port
Me.UseSSL = ssl
End Sub
End Structure

Public Function SendEmail(ByVal message As String, ByVal accountInfo As NetworkCredential, ByVal recipients As String(), ByVal sender As String, ByVal subj As String, ByVal server As SmtpServer)
Dim nMail As New MailMessage
Dim smtpServer As New SmtpClient(server.URI, server.Port)

nMail.Sender = New MailAddress(sender)
nMail.From = New MailAddress(sender)
nMail.Subject = subj
nMail.Body = message

For Each s As String In recipients
nMail.To.Add(New MailAddress(s))
Next s
Try
smtpServer.Credentials = CType(accountInfo, ICredentials)
smtpServer.EnableSsl = server.UseSSL
smtpServer.Send(nMail)
Return True
Catch ex As Exception
Return False
End Try
End Function
[/highlight]

Example use:
[highlight=vb.net]
SendEmail("Hello World", _
new NetworkCredential("foo@gmail.com", "bar"), _
new String() { "fake@live.com", "joke@hotmail.com" }, _
"[MPGH]Jason", _
"Testing Email", _
SmtpServer.GmailSmtp)
[/highlight]
thanks mate :P
Marked solved then.
oh i need ur help again, il post a new thread :S
buttons lock them self LOL
Use multi-threading.
its fixed now lol but il keep that in mind. can u help me with something else -
when ever i click a button on my bomber (v2) the names go blue then they lock and i cant press them anymore :P
Quote Originally Posted by hackzerz View Post
its fixed now lol but il keep that in mind. can u help me with something else -
when ever i click a button on my bomber (v2) the names go blue then they lock and i cant press them anymore :P
That's because you are sending the email synchronously. Until the email is sent / fails, the thread remains locked. To solve this, you need to use multi threading as I stated earlier.
Quote Originally Posted by Hassan View Post


That's because you are sending the email synchronously. Until the email is sent / fails, the thread remains locked. To solve this, you need to use multi threading as I stated earlier.
For multithreading...

[highlight=VB.Net]
Private Sub Foo()
For i = 0 To Whatever - 1
Fufufu()
Next
End Sub[/highlight]

To start a multithread of Foo() you need to do the following:

[highlight=VB.Net]
Dim mT as new threading.thread(addressof Foo)
mT.Start
[/highlight]

As for multithreading, the sub now runs in the background. So you can execute further code while Foo() is running in the background. Your controls/form won't freeze.
il try that, thanks guys !
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us