begin process at 2010 02 10 09:35:19
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Réseau & Internet

 > MAILER ENVOI DE MAILS EN RAFFALE (ANONYMES OU PAS) STABLE ET RAPIDE (PARAMÉTRABLE)

MAILER ENVOI DE MAILS EN RAFFALE (ANONYMES OU PAS) STABLE ET RAPIDE (PARAMÉTRABLE)


 Information sur la source

Note :
6,5 / 10 - par 2 personnes
6,50 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Réseau & Internet Source .NET ( DotNet ) Niveau :Initié Date de création :21/12/2003 Date de mise à jour :19/10/2004 14:48:08 Vu / téléchargé :8 013 / 923

Auteur : lcprog

Ecrire un message privé
Commentaire sur cette source (12)
Ajouter un commentaire et/ou une note

 Description

Cliquez pour voir la capture en taille normale
Coucou! Ce programme permet d'envoyer des emails anonymes ou non.
Vous pouvez en envoyer plusieurs en même temps. Il est paramétrable. Assez stable et rapide.
J'utilise un seul objet winsock.

Ce source peut vous être utile si vous désirez étudier les commandes mimes smtp, ainsi que leur utilisation via winsock.


Source

  • Public Class Principal
  • Inherits System.Windows.Forms.Form
  • #Region " Code généré par le Concepteur Windows Form "
  • Public Sub New()
  • MyBase.New()
  • 'Cet appel est requis par le Concepteur Windows Form.
  • InitializeComponent()
  • 'Ajoutez une initialisation quelconque après l'appel InitializeComponent()
  • End Sub
  • 'La méthode substituée Dispose du formulaire pour nettoyer la liste des composants.
  • Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
  • If disposing Then
  • If Not (components Is Nothing) Then
  • components.Dispose()
  • End If
  • End If
  • MyBase.Dispose(disposing)
  • End Sub
  • 'Requis par le Concepteur Windows Form
  • Private components As System.ComponentModel.IContainer
  • 'REMARQUE : la procédure suivante est requise par le Concepteur Windows Form
  • 'Elle peut être modifiée en utilisant le Concepteur Windows Form.
  • 'Ne la modifiez pas en utilisant l'éditeur de code.
  • Friend WithEvents TbAdresseDest As System.Windows.Forms.TextBox
  • Friend WithEvents TbAdresseExp As System.Windows.Forms.TextBox
  • Friend WithEvents TbSujet As System.Windows.Forms.TextBox
  • Friend WithEvents RtbMessage As System.Windows.Forms.RichTextBox
  • Friend WithEvents BtEnvoyer As System.Windows.Forms.Button
  • Friend WithEvents LbDest As System.Windows.Forms.Label
  • Friend WithEvents LbExp As System.Windows.Forms.Label
  • Friend WithEvents LbSujet As System.Windows.Forms.Label
  • Friend WithEvents GrConfiguration As System.Windows.Forms.GroupBox
  • Friend WithEvents LbServeurSMTP As System.Windows.Forms.Label
  • Friend WithEvents TbServeurSMTP As System.Windows.Forms.TextBox
  • Friend WithEvents LbNbEnvois As System.Windows.Forms.Label
  • Friend WithEvents VsNbEnvois As System.Windows.Forms.VScrollBar
  • Friend WithEvents TxNbEnvois As System.Windows.Forms.TextBox
  • Friend WithEvents Pbar As System.Windows.Forms.ProgressBar
  • Friend WithEvents Winsock As AxMSWinsockLib.AxWinsock
  • Friend WithEvents Timer As System.Timers.Timer
  • Friend WithEvents LbStatut As System.Windows.Forms.Label
  • Friend WithEvents LbDelai As System.Windows.Forms.Label
  • Friend WithEvents TxtDelai As System.Windows.Forms.TextBox
  • Friend WithEvents VsDelai As System.Windows.Forms.VScrollBar
  • Friend WithEvents LbS As System.Windows.Forms.Label
  • <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  • Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Principal))
  • Me.TbAdresseDest = New System.Windows.Forms.TextBox()
  • Me.LbDest = New System.Windows.Forms.Label()
  • Me.LbExp = New System.Windows.Forms.Label()
  • Me.TbAdresseExp = New System.Windows.Forms.TextBox()
  • Me.LbSujet = New System.Windows.Forms.Label()
  • Me.TbSujet = New System.Windows.Forms.TextBox()
  • Me.RtbMessage = New System.Windows.Forms.RichTextBox()
  • Me.BtEnvoyer = New System.Windows.Forms.Button()
  • Me.GrConfiguration = New System.Windows.Forms.GroupBox()
  • Me.Winsock = New AxMSWinsockLib.AxWinsock()
  • Me.TxNbEnvois = New System.Windows.Forms.TextBox()
  • Me.VsNbEnvois = New System.Windows.Forms.VScrollBar()
  • Me.LbNbEnvois = New System.Windows.Forms.Label()
  • Me.LbServeurSMTP = New System.Windows.Forms.Label()
  • Me.TbServeurSMTP = New System.Windows.Forms.TextBox()
  • Me.Pbar = New System.Windows.Forms.ProgressBar()
  • Me.LbStatut = New System.Windows.Forms.Label()
  • Me.Timer = New System.Timers.Timer()
  • Me.LbDelai = New System.Windows.Forms.Label()
  • Me.TxtDelai = New System.Windows.Forms.TextBox()
  • Me.VsDelai = New System.Windows.Forms.VScrollBar()
  • Me.LbS = New System.Windows.Forms.Label()
  • Me.GrConfiguration.SuspendLayout()
  • CType(Me.Winsock, System.ComponentModel.ISupportInitialize).BeginInit()
  • CType(Me.Timer, System.ComponentModel.ISupportInitialize).BeginInit()
  • Me.SuspendLayout()
  • '
  • 'TbAdresseDest
  • '
  • Me.TbAdresseDest.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
  • Me.TbAdresseDest.Location = New System.Drawing.Point(160, 140)
  • Me.TbAdresseDest.Name = "TbAdresseDest"
  • Me.TbAdresseDest.Size = New System.Drawing.Size(184, 20)
  • Me.TbAdresseDest.TabIndex = 4
  • Me.TbAdresseDest.Text = ""
  • '
  • 'LbDest
  • '
  • Me.LbDest.Location = New System.Drawing.Point(18, 141)
  • Me.LbDest.Name = "LbDest"
  • Me.LbDest.Size = New System.Drawing.Size(133, 16)
  • Me.LbDest.TabIndex = 1
  • Me.LbDest.Text = "Adresse du destinataire :"
  • '
  • 'LbExp
  • '
  • Me.LbExp.Location = New System.Drawing.Point(18, 108)
  • Me.LbExp.Name = "LbExp"
  • Me.LbExp.Size = New System.Drawing.Size(133, 16)
  • Me.LbExp.TabIndex = 3
  • Me.LbExp.Text = "Adresse de l'expéditeur :"
  • '
  • 'TbAdresseExp
  • '
  • Me.TbAdresseExp.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
  • Me.TbAdresseExp.Location = New System.Drawing.Point(160, 108)
  • Me.TbAdresseExp.Name = "TbAdresseExp"
  • Me.TbAdresseExp.Size = New System.Drawing.Size(184, 20)
  • Me.TbAdresseExp.TabIndex = 3
  • Me.TbAdresseExp.Text = ""
  • '
  • 'LbSujet
  • '
  • Me.LbSujet.Location = New System.Drawing.Point(16, 176)
  • Me.LbSujet.Name = "LbSujet"
  • Me.LbSujet.Size = New System.Drawing.Size(32, 16)
  • Me.LbSujet.TabIndex = 5
  • Me.LbSujet.Text = "Sujet :"
  • '
  • 'TbSujet
  • '
  • Me.TbSujet.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
  • Me.TbSujet.Location = New System.Drawing.Point(54, 176)
  • Me.TbSujet.Name = "TbSujet"
  • Me.TbSujet.Size = New System.Drawing.Size(290, 20)
  • Me.TbSujet.TabIndex = 5
  • Me.TbSujet.Text = ""
  • '
  • 'RtbMessage
  • '
  • Me.RtbMessage.Location = New System.Drawing.Point(16, 211)
  • Me.RtbMessage.Name = "RtbMessage"
  • Me.RtbMessage.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical
  • Me.RtbMessage.Size = New System.Drawing.Size(328, 232)
  • Me.RtbMessage.TabIndex = 6
  • Me.RtbMessage.Text = ""
  • '
  • 'BtEnvoyer
  • '
  • Me.BtEnvoyer.FlatStyle = System.Windows.Forms.FlatStyle.Flat
  • Me.BtEnvoyer.Location = New System.Drawing.Point(136, 484)
  • Me.BtEnvoyer.Name = "BtEnvoyer"
  • Me.BtEnvoyer.Size = New System.Drawing.Size(80, 24)
  • Me.BtEnvoyer.TabIndex = 7
  • Me.BtEnvoyer.Text = "Envoyer"
  • '
  • 'GrConfiguration
  • '
  • Me.GrConfiguration.Controls.AddRange(New System.Windows.Forms.Control() {Me.LbS, Me.TxtDelai, Me.VsDelai, Me.LbDelai, Me.TxNbEnvois, Me.VsNbEnvois, Me.LbNbEnvois, Me.LbServeurSMTP, Me.TbServeurSMTP})
  • Me.GrConfiguration.Location = New System.Drawing.Point(16, 8)
  • Me.GrConfiguration.Name = "GrConfiguration"
  • Me.GrConfiguration.Size = New System.Drawing.Size(328, 80)
  • Me.GrConfiguration.TabIndex = 1
  • Me.GrConfiguration.TabStop = False
  • Me.GrConfiguration.Text = "Configuration"
  • '
  • 'Winsock
  • '
  • Me.Winsock.Enabled = True
  • Me.Winsock.Location = New System.Drawing.Point(16, 482)
  • Me.Winsock.Name = "Winsock"
  • Me.Winsock.OcxState = CType(resources.GetObject("Winsock.OcxState"), System.Windows.Forms.AxHost.State)
  • Me.Winsock.Size = New System.Drawing.Size(28, 28)
  • Me.Winsock.TabIndex = 16
  • '
  • 'TxNbEnvois
  • '
  • Me.TxNbEnvois.BackColor = System.Drawing.Color.AntiqueWhite
  • Me.TxNbEnvois.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
  • Me.TxNbEnvois.Enabled = False
  • Me.TxNbEnvois.Location = New System.Drawing.Point(127, 53)
  • Me.TxNbEnvois.Name = "TxNbEnvois"
  • Me.TxNbEnvois.ReadOnly = True
  • Me.TxNbEnvois.Size = New System.Drawing.Size(41, 20)
  • Me.TxNbEnvois.TabIndex = 15
  • Me.TxNbEnvois.Text = "1"
  • Me.TxNbEnvois.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
  • '
  • 'VsNbEnvois
  • '
  • Me.VsNbEnvois.Location = New System.Drawing.Point(106, 52)
  • Me.VsNbEnvois.Maximum = 10000
  • Me.VsNbEnvois.Name = "VsNbEnvois"
  • Me.VsNbEnvois.Size = New System.Drawing.Size(14, 22)
  • Me.VsNbEnvois.TabIndex = 2
  • Me.VsNbEnvois.Value = 1
  • '
  • 'LbNbEnvois
  • '
  • Me.LbNbEnvois.Location = New System.Drawing.Point(8, 56)
  • Me.LbNbEnvois.Name = "LbNbEnvois"
  • Me.LbNbEnvois.Size = New System.Drawing.Size(96, 16)
  • Me.LbNbEnvois.TabIndex = 13
  • Me.LbNbEnvois.Text = "Nombre d'envois : "
  • '
  • 'LbServeurSMTP
  • '
  • Me.LbServeurSMTP.Location = New System.Drawing.Point(8, 23)
  • Me.LbServeurSMTP.Name = "LbServeurSMTP"
  • Me.LbServeurSMTP.Size = New System.Drawing.Size(88, 16)
  • Me.LbServeurSMTP.TabIndex = 12
  • Me.LbServeurSMTP.Text = "Serveur SMTP :"
  • '
  • 'TbServeurSMTP
  • '
  • Me.TbServeurSMTP.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
  • Me.TbServeurSMTP.Location = New System.Drawing.Point(97, 20)
  • Me.TbServeurSMTP.Name = "TbServeurSMTP"
  • Me.TbServeurSMTP.Size = New System.Drawing.Size(221, 20)
  • Me.TbServeurSMTP.TabIndex = 1
  • Me.TbServeurSMTP.Text = ""
  • '
  • 'Pbar
  • '
  • Me.Pbar.Location = New System.Drawing.Point(17, 455)
  • Me.Pbar.Name = "Pbar"
  • Me.Pbar.Size = New System.Drawing.Size(327, 20)
  • Me.Pbar.Step = 1
  • Me.Pbar.TabIndex = 12
  • Me.Pbar.Value = 100
  • Me.Pbar.Visible = False
  • '
  • 'LbStatut
  • '
  • Me.LbStatut.BackColor = System.Drawing.Color.PeachPuff
  • Me.LbStatut.Location = New System.Drawing.Point(7, 520)
  • Me.LbStatut.Name = "LbStatut"
  • Me.LbStatut.Size = New System.Drawing.Size(345, 16)
  • Me.LbStatut.TabIndex = 13
  • Me.LbStatut.Text = "état : en attente..."
  • '
  • 'Timer
  • '
  • Me.Timer.Enabled = True
  • Me.Timer.Interval = 1000
  • Me.Timer.SynchronizingObject = Me
  • '
  • 'LbDelai
  • '
  • Me.LbDelai.AutoSize = True
  • Me.LbDelai.Font = New System.Drawing.Font("Microsoft Sans Serif", 6.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  • Me.LbDelai.Location = New System.Drawing.Point(177, 57)
  • Me.LbDelai.Name = "LbDelai"
  • Me.LbDelai.Size = New System.Drawing.Size(78, 11)
  • Me.LbDelai.TabIndex = 16
  • Me.LbDelai.Text = "Délai de réponse :"
  • '
  • 'TxtDelai
  • '
  • Me.TxtDelai.BackColor = System.Drawing.Color.AntiqueWhite
  • Me.TxtDelai.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
  • Me.TxtDelai.Enabled = False
  • Me.TxtDelai.Location = New System.Drawing.Point(271, 54)
  • Me.TxtDelai.Name = "TxtDelai"
  • Me.TxtDelai.ReadOnly = True
  • Me.TxtDelai.Size = New System.Drawing.Size(28, 20)
  • Me.TxtDelai.TabIndex = 18
  • Me.TxtDelai.Text = "30"
  • Me.TxtDelai.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
  • '
  • 'VsDelai
  • '
  • Me.VsDelai.Location = New System.Drawing.Point(254, 55)
  • Me.VsDelai.Maximum = 10000
  • Me.VsDelai.Minimum = 1
  • Me.VsDelai.Name = "VsDelai"
  • Me.VsDelai.Size = New System.Drawing.Size(12, 17)
  • Me.VsDelai.TabIndex = 17
  • Me.VsDelai.Value = 30
  • '
  • 'LbS
  • '
  • Me.LbS.AutoSize = True
  • Me.LbS.Font = New System.Drawing.Font("Microsoft Sans Serif", 6.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
  • Me.LbS.Location = New System.Drawing.Point(304, 57)
  • Me.LbS.Name = "LbS"
  • Me.LbS.Size = New System.Drawing.Size(18, 11)
  • Me.LbS.TabIndex = 19
  • Me.LbS.Text = "sec"
  • '
  • 'Principal
  • '
  • Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
  • Me.BackColor = System.Drawing.Color.AntiqueWhite
  • Me.ClientSize = New System.Drawing.Size(358, 540)
  • Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.LbStatut, Me.Pbar, Me.GrConfiguration, Me.BtEnvoyer, Me.RtbMessage, Me.LbSujet, Me.TbSujet, Me.LbExp, Me.TbAdresseExp, Me.LbDest, Me.TbAdresseDest, Me.Winsock})
  • Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D
  • Me.MaximizeBox = False
  • Me.Name = "Principal"
  • Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
  • Me.Text = "Douby's mailer"
  • Me.GrConfiguration.ResumeLayout(False)
  • CType(Me.Winsock, System.ComponentModel.ISupportInitialize).EndInit()
  • CType(Me.Timer, System.ComponentModel.ISupportInitialize).EndInit()
  • Me.ResumeLayout(False)
  • End Sub
  • #End Region
  • Dim nNbSecAttente As Integer
  • Dim sRepServeur As String
  • Dim bSTOP As Boolean
  • Private Sub BtEnvoyer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtEnvoyer.Click
  • Dim nI As Integer
  • If BtEnvoyer.Text = "Envoyer" Then
  • BtEnvoyer.Text = "STOP"
  • sRepServeur = ""
  • bSTOP = False
  • Pbar.Value = 0
  • Pbar.Maximum = VsNbEnvois.Value
  • Pbar.Visible = True
  • Winsock.LocalPort = 0
  • Winsock.Protocol = MSWinsockLib.ProtocolConstants.sckTCPProtocol
  • Winsock.RemoteHost = Trim(TbServeurSMTP.Text)
  • Winsock.RemotePort = 25
  • If Winsock.CtlState = 0 Then
  • LbStatut.Text = "état: Tentative de connexion..."
  • Winsock.Connect()
  • AttenteReponseServeur("220")
  • If Not bSTOP Then
  • Winsock.SendData("HELO DouByWorD.com" + vbCrLf)
  • LbStatut.Text = "état: Authentification sur le serveur"
  • AttenteReponseServeur("250")
  • For nI = 1 To VsNbEnvois.Value
  • If Not bSTOP Then
  • EnvoiEmail(Trim(TbAdresseExp.Text), Trim(TbAdresseDest.Text), Trim(TbSujet.Text), Trim(RtbMessage.Text))
  • Pbar.Value = nI
  • End If
  • Next nI
  • Winsock.SendData("quit" + vbCrLf)
  • LbStatut.Text = "état: Déconnexion en cours..."
  • AttenteReponseServeur("221")
  • End If
  • Winsock.Close()
  • LbStatut.Text = "Opération terminée"
  • Else
  • MsgBox("Impossible d'initialiser la connexion", MsgBoxStyle.Critical, "Erreur Winsock")
  • bSTOP = True
  • End If
  • Winsock.Close()
  • If Not bSTOP Then
  • MsgBox("Opération terminée", MsgBoxStyle.Information, "information")
  • Else
  • MsgBox("Opération annulée", MsgBoxStyle.Critical)
  • End If
  • Pbar.Visible = False
  • BtEnvoyer.Text = "Envoyer"
  • Else
  • bSTOP = True
  • End If
  • End Sub
  • Private Sub BtEnvoyer_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtEnvoyer.MouseEnter
  • BtEnvoyer.FlatStyle = FlatStyle.Standard
  • End Sub
  • Private Sub BtEnvoyer_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtEnvoyer.MouseLeave
  • BtEnvoyer.FlatStyle = FlatStyle.Flat
  • End Sub
  • Private Sub VsNbEnvois_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles VsNbEnvois.Scroll
  • TxNbEnvois.Text = Trim(Str(VsNbEnvois.Value))
  • End Sub
  • Sub EnvoiEmail(ByVal sAdresseExp As String, ByVal sAdresseDest As String, ByVal sSujet As String, ByVal sMessage As String)
  • Dim sEtapeCom(8, 3) As String
  • Dim nCpt As Integer
  • sEtapeCom(1, 1) = "mail from:" + Chr(32) + sAdresseExp + vbCrLf
  • sEtapeCom(1, 2) = "250"
  • sEtapeCom(1, 3) = "Déclaration de l'expéditeur"
  • sEtapeCom(2, 1) = "rcpt to:" + Chr(32) + sAdresseDest + vbCrLf
  • sEtapeCom(2, 2) = "250"
  • sEtapeCom(2, 3) = "Déclaration du destinataire"
  • sEtapeCom(3, 1) = "data" + vbCrLf
  • sEtapeCom(3, 2) = "354"
  • sEtapeCom(3, 3) = "Transmission de la commande data"
  • sEtapeCom(4, 1) = "subject:" + sSujet + vbCrLf
  • sEtapeCom(4, 2) = ""
  • sEtapeCom(4, 3) = "Transmission du sujet du message"
  • sEtapeCom(5, 1) = sMessage + vbCrLf
  • sEtapeCom(5, 2) = ""
  • sEtapeCom(5, 3) = "Transmission du corps du message"
  • sEtapeCom(6, 1) = vbCrLf + "." + vbCrLf
  • sEtapeCom(6, 2) = "250"
  • sEtapeCom(6, 3) = "Trasmission de la requête de fin de transmission"
  • For nCpt = 1 To 6
  • If Not bSTOP Then
  • LbStatut.Text = "état: " + sEtapeCom(nCpt, 3)
  • Winsock.SendData(sEtapeCom(nCpt, 1))
  • If Len(Trim(sEtapeCom(nCpt, 2))) <> 0 Then
  • AttenteReponseServeur(sEtapeCom(nCpt, 2))
  • End If
  • End If
  • Next nCpt
  • LbStatut.Text = "Opération terminée"
  • End Sub
  • Sub AttenteReponseServeur(ByVal sCodeReponseAttendu As String)
  • Dim nNbSecMaxReponse As Integer
  • nNbSecMaxReponse = VsDelai.Value
  • nNbSecAttente = 0
  • While Len(sRepServeur) = 0 And Not bSTOP
  • Application.DoEvents()
  • If nNbSecAttente > nNbSecMaxReponse Then
  • MsgBox("Le serveur SMTP ne répond pas - délai de réponse imparti dépassé", 64, "erreur")
  • bSTOP = True
  • Exit Sub
  • End If
  • End While
  • While Mid(sRepServeur, 1, 3) <> sCodeReponseAttendu And Not bSTOP
  • Application.DoEvents()
  • If nNbSecAttente > nNbSecMaxReponse Then
  • MsgBox("Code de retour attendu du serveur SMTP incorrect, attendu : " + sCodeReponseAttendu + " reçu : " + sRepServeur, 64, "erreur")
  • bSTOP = True
  • Exit Sub
  • End If
  • End While
  • sRepServeur = ""
  • End Sub
  • Private Sub Timer_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs) Handles Timer.Elapsed
  • nNbSecAttente = nNbSecAttente + 1
  • End Sub
  • Private Sub Winsock_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles Winsock.DataArrival
  • Winsock.GetData(sRepServeur)
  • End Sub
  • Private Sub VsDelai_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles VsDelai.Scroll
  • TxtDelai.Text = Trim(Str(VsDelai.Value))
  • End Sub
  • End Class
Public Class Principal
    Inherits System.Windows.Forms.Form
#Region " Code généré par le Concepteur Windows Form "

    Public Sub New()
        MyBase.New()

        'Cet appel est requis par le Concepteur Windows Form.
        InitializeComponent()

        'Ajoutez une initialisation quelconque après l'appel InitializeComponent()

    End Sub

    'La méthode substituée Dispose du formulaire pour nettoyer la liste des composants.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Requis par le Concepteur Windows Form
    Private components As System.ComponentModel.IContainer

    'REMARQUE : la procédure suivante est requise par le Concepteur Windows Form
    'Elle peut être modifiée en utilisant le Concepteur Windows Form.  
    'Ne la modifiez pas en utilisant l'éditeur de code.
    Friend WithEvents TbAdresseDest As System.Windows.Forms.TextBox
    Friend WithEvents TbAdresseExp As System.Windows.Forms.TextBox
    Friend WithEvents TbSujet As System.Windows.Forms.TextBox
    Friend WithEvents RtbMessage As System.Windows.Forms.RichTextBox
    Friend WithEvents BtEnvoyer As System.Windows.Forms.Button
    Friend WithEvents LbDest As System.Windows.Forms.Label
    Friend WithEvents LbExp As System.Windows.Forms.Label
    Friend WithEvents LbSujet As System.Windows.Forms.Label
    Friend WithEvents GrConfiguration As System.Windows.Forms.GroupBox
    Friend WithEvents LbServeurSMTP As System.Windows.Forms.Label
    Friend WithEvents TbServeurSMTP As System.Windows.Forms.TextBox
    Friend WithEvents LbNbEnvois As System.Windows.Forms.Label
    Friend WithEvents VsNbEnvois As System.Windows.Forms.VScrollBar
    Friend WithEvents TxNbEnvois As System.Windows.Forms.TextBox
    Friend WithEvents Pbar As System.Windows.Forms.ProgressBar
    Friend WithEvents Winsock As AxMSWinsockLib.AxWinsock
    Friend WithEvents Timer As System.Timers.Timer
    Friend WithEvents LbStatut As System.Windows.Forms.Label
    Friend WithEvents LbDelai As System.Windows.Forms.Label
    Friend WithEvents TxtDelai As System.Windows.Forms.TextBox
    Friend WithEvents VsDelai As System.Windows.Forms.VScrollBar
    Friend WithEvents LbS As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Principal))
        Me.TbAdresseDest = New System.Windows.Forms.TextBox()
        Me.LbDest = New System.Windows.Forms.Label()
        Me.LbExp = New System.Windows.Forms.Label()
        Me.TbAdresseExp = New System.Windows.Forms.TextBox()
        Me.LbSujet = New System.Windows.Forms.Label()
        Me.TbSujet = New System.Windows.Forms.TextBox()
        Me.RtbMessage = New System.Windows.Forms.RichTextBox()
        Me.BtEnvoyer = New System.Windows.Forms.Button()
        Me.GrConfiguration = New System.Windows.Forms.GroupBox()
        Me.Winsock = New AxMSWinsockLib.AxWinsock()
        Me.TxNbEnvois = New System.Windows.Forms.TextBox()
        Me.VsNbEnvois = New System.Windows.Forms.VScrollBar()
        Me.LbNbEnvois = New System.Windows.Forms.Label()
        Me.LbServeurSMTP = New System.Windows.Forms.Label()
        Me.TbServeurSMTP = New System.Windows.Forms.TextBox()
        Me.Pbar = New System.Windows.Forms.ProgressBar()
        Me.LbStatut = New System.Windows.Forms.Label()
        Me.Timer = New System.Timers.Timer()
        Me.LbDelai = New System.Windows.Forms.Label()
        Me.TxtDelai = New System.Windows.Forms.TextBox()
        Me.VsDelai = New System.Windows.Forms.VScrollBar()
        Me.LbS = New System.Windows.Forms.Label()
        Me.GrConfiguration.SuspendLayout()
        CType(Me.Winsock, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Timer, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'TbAdresseDest
        '
        Me.TbAdresseDest.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.TbAdresseDest.Location = New System.Drawing.Point(160, 140)
        Me.TbAdresseDest.Name = "TbAdresseDest"
        Me.TbAdresseDest.Size = New System.Drawing.Size(184, 20)
        Me.TbAdresseDest.TabIndex = 4
        Me.TbAdresseDest.Text = ""
        '
        'LbDest
        '
        Me.LbDest.Location = New System.Drawing.Point(18, 141)
        Me.LbDest.Name = "LbDest"
        Me.LbDest.Size = New System.Drawing.Size(133, 16)
        Me.LbDest.TabIndex = 1
        Me.LbDest.Text = "Adresse du destinataire :"
        '
        'LbExp
        '
        Me.LbExp.Location = New System.Drawing.Point(18, 108)
        Me.LbExp.Name = "LbExp"
        Me.LbExp.Size = New System.Drawing.Size(133, 16)
        Me.LbExp.TabIndex = 3
        Me.LbExp.Text = "Adresse de l'expéditeur :"
        '
        'TbAdresseExp
        '
        Me.TbAdresseExp.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.TbAdresseExp.Location = New System.Drawing.Point(160, 108)
        Me.TbAdresseExp.Name = "TbAdresseExp"
        Me.TbAdresseExp.Size = New System.Drawing.Size(184, 20)
        Me.TbAdresseExp.TabIndex = 3
        Me.TbAdresseExp.Text = ""
        '
        'LbSujet
        '
        Me.LbSujet.Location = New System.Drawing.Point(16, 176)
        Me.LbSujet.Name = "LbSujet"
        Me.LbSujet.Size = New System.Drawing.Size(32, 16)
        Me.LbSujet.TabIndex = 5
        Me.LbSujet.Text = "Sujet :"
        '
        'TbSujet
        '
        Me.TbSujet.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.TbSujet.Location = New System.Drawing.Point(54, 176)
        Me.TbSujet.Name = "TbSujet"
        Me.TbSujet.Size = New System.Drawing.Size(290, 20)
        Me.TbSujet.TabIndex = 5
        Me.TbSujet.Text = ""
        '
        'RtbMessage
        '
        Me.RtbMessage.Location = New System.Drawing.Point(16, 211)
        Me.RtbMessage.Name = "RtbMessage"
        Me.RtbMessage.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical
        Me.RtbMessage.Size = New System.Drawing.Size(328, 232)
        Me.RtbMessage.TabIndex = 6
        Me.RtbMessage.Text = ""
        '
        'BtEnvoyer
        '
        Me.BtEnvoyer.FlatStyle = System.Windows.Forms.FlatStyle.Flat
        Me.BtEnvoyer.Location = New System.Drawing.Point(136, 484)
        Me.BtEnvoyer.Name = "BtEnvoyer"
        Me.BtEnvoyer.Size = New System.Drawing.Size(80, 24)
        Me.BtEnvoyer.TabIndex = 7
        Me.BtEnvoyer.Text = "Envoyer"
        '
        'GrConfiguration
        '
        Me.GrConfiguration.Controls.AddRange(New System.Windows.Forms.Control() {Me.LbS, Me.TxtDelai, Me.VsDelai, Me.LbDelai, Me.TxNbEnvois, Me.VsNbEnvois, Me.LbNbEnvois, Me.LbServeurSMTP, Me.TbServeurSMTP})
        Me.GrConfiguration.Location = New System.Drawing.Point(16, 8)
        Me.GrConfiguration.Name = "GrConfiguration"
        Me.GrConfiguration.Size = New System.Drawing.Size(328, 80)
        Me.GrConfiguration.TabIndex = 1
        Me.GrConfiguration.TabStop = False
        Me.GrConfiguration.Text = "Configuration"
        '
        'Winsock
        '
        Me.Winsock.Enabled = True
        Me.Winsock.Location = New System.Drawing.Point(16, 482)
        Me.Winsock.Name = "Winsock"
        Me.Winsock.OcxState = CType(resources.GetObject("Winsock.OcxState"), System.Windows.Forms.AxHost.State)
        Me.Winsock.Size = New System.Drawing.Size(28, 28)
        Me.Winsock.TabIndex = 16
        '
        'TxNbEnvois
        '
        Me.TxNbEnvois.BackColor = System.Drawing.Color.AntiqueWhite
        Me.TxNbEnvois.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.TxNbEnvois.Enabled = False
        Me.TxNbEnvois.Location = New System.Drawing.Point(127, 53)
        Me.TxNbEnvois.Name = "TxNbEnvois"
        Me.TxNbEnvois.ReadOnly = True
        Me.TxNbEnvois.Size = New System.Drawing.Size(41, 20)
        Me.TxNbEnvois.TabIndex = 15
        Me.TxNbEnvois.Text = "1"
        Me.TxNbEnvois.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'VsNbEnvois
        '
        Me.VsNbEnvois.Location = New System.Drawing.Point(106, 52)
        Me.VsNbEnvois.Maximum = 10000
        Me.VsNbEnvois.Name = "VsNbEnvois"
        Me.VsNbEnvois.Size = New System.Drawing.Size(14, 22)
        Me.VsNbEnvois.TabIndex = 2
        Me.VsNbEnvois.Value = 1
        '
        'LbNbEnvois
        '
        Me.LbNbEnvois.Location = New System.Drawing.Point(8, 56)
        Me.LbNbEnvois.Name = "LbNbEnvois"
        Me.LbNbEnvois.Size = New System.Drawing.Size(96, 16)
        Me.LbNbEnvois.TabIndex = 13
        Me.LbNbEnvois.Text = "Nombre d'envois : "
        '
        'LbServeurSMTP
        '
        Me.LbServeurSMTP.Location = New System.Drawing.Point(8, 23)
        Me.LbServeurSMTP.Name = "LbServeurSMTP"
        Me.LbServeurSMTP.Size = New System.Drawing.Size(88, 16)
        Me.LbServeurSMTP.TabIndex = 12
        Me.LbServeurSMTP.Text = "Serveur SMTP :"
        '
        'TbServeurSMTP
        '
        Me.TbServeurSMTP.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.TbServeurSMTP.Location = New System.Drawing.Point(97, 20)
        Me.TbServeurSMTP.Name = "TbServeurSMTP"
        Me.TbServeurSMTP.Size = New System.Drawing.Size(221, 20)
        Me.TbServeurSMTP.TabIndex = 1
        Me.TbServeurSMTP.Text = ""
        '
        'Pbar
        '
        Me.Pbar.Location = New System.Drawing.Point(17, 455)
        Me.Pbar.Name = "Pbar"
        Me.Pbar.Size = New System.Drawing.Size(327, 20)
        Me.Pbar.Step = 1
        Me.Pbar.TabIndex = 12
        Me.Pbar.Value = 100
        Me.Pbar.Visible = False
        '
        'LbStatut
        '
        Me.LbStatut.BackColor = System.Drawing.Color.PeachPuff
        Me.LbStatut.Location = New System.Drawing.Point(7, 520)
        Me.LbStatut.Name = "LbStatut"
        Me.LbStatut.Size = New System.Drawing.Size(345, 16)
        Me.LbStatut.TabIndex = 13
        Me.LbStatut.Text = "état : en attente..."
        '
        'Timer
        '
        Me.Timer.Enabled = True
        Me.Timer.Interval = 1000
        Me.Timer.SynchronizingObject = Me
        '
        'LbDelai
        '
        Me.LbDelai.AutoSize = True
        Me.LbDelai.Font = New System.Drawing.Font("Microsoft Sans Serif", 6.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.LbDelai.Location = New System.Drawing.Point(177, 57)
        Me.LbDelai.Name = "LbDelai"
        Me.LbDelai.Size = New System.Drawing.Size(78, 11)
        Me.LbDelai.TabIndex = 16
        Me.LbDelai.Text = "Délai de réponse :"
        '
        'TxtDelai
        '
        Me.TxtDelai.BackColor = System.Drawing.Color.AntiqueWhite
        Me.TxtDelai.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
        Me.TxtDelai.Enabled = False
        Me.TxtDelai.Location = New System.Drawing.Point(271, 54)
        Me.TxtDelai.Name = "TxtDelai"
        Me.TxtDelai.ReadOnly = True
        Me.TxtDelai.Size = New System.Drawing.Size(28, 20)
        Me.TxtDelai.TabIndex = 18
        Me.TxtDelai.Text = "30"
        Me.TxtDelai.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
        '
        'VsDelai
        '
        Me.VsDelai.Location = New System.Drawing.Point(254, 55)
        Me.VsDelai.Maximum = 10000
        Me.VsDelai.Minimum = 1
        Me.VsDelai.Name = "VsDelai"
        Me.VsDelai.Size = New System.Drawing.Size(12, 17)
        Me.VsDelai.TabIndex = 17
        Me.VsDelai.Value = 30
        '
        'LbS
        '
        Me.LbS.AutoSize = True
        Me.LbS.Font = New System.Drawing.Font("Microsoft Sans Serif", 6.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.LbS.Location = New System.Drawing.Point(304, 57)
        Me.LbS.Name = "LbS"
        Me.LbS.Size = New System.Drawing.Size(18, 11)
        Me.LbS.TabIndex = 19
        Me.LbS.Text = "sec"
        '
        'Principal
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.BackColor = System.Drawing.Color.AntiqueWhite
        Me.ClientSize = New System.Drawing.Size(358, 540)
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.LbStatut, Me.Pbar, Me.GrConfiguration, Me.BtEnvoyer, Me.RtbMessage, Me.LbSujet, Me.TbSujet, Me.LbExp, Me.TbAdresseExp, Me.LbDest, Me.TbAdresseDest, Me.Winsock})
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D
        Me.MaximizeBox = False
        Me.Name = "Principal"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Douby's mailer"
        Me.GrConfiguration.ResumeLayout(False)
        CType(Me.Winsock, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.Timer, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub

#End Region
    Dim nNbSecAttente As Integer
    Dim sRepServeur As String
    Dim bSTOP As Boolean

    Private Sub BtEnvoyer_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtEnvoyer.Click
        Dim nI As Integer
        If BtEnvoyer.Text = "Envoyer" Then
            BtEnvoyer.Text = "STOP"
            sRepServeur = ""
            bSTOP = False
            Pbar.Value = 0
            Pbar.Maximum = VsNbEnvois.Value
            Pbar.Visible = True
            Winsock.LocalPort = 0
            Winsock.Protocol = MSWinsockLib.ProtocolConstants.sckTCPProtocol
            Winsock.RemoteHost = Trim(TbServeurSMTP.Text)
            Winsock.RemotePort = 25
            If Winsock.CtlState = 0 Then
                LbStatut.Text = "état: Tentative de connexion..."
                Winsock.Connect()
                AttenteReponseServeur("220")
                If Not bSTOP Then
                    Winsock.SendData("HELO DouByWorD.com" + vbCrLf)
                    LbStatut.Text = "état: Authentification sur le serveur"
                    AttenteReponseServeur("250")
                    For nI = 1 To VsNbEnvois.Value
                        If Not bSTOP Then
                            EnvoiEmail(Trim(TbAdresseExp.Text), Trim(TbAdresseDest.Text), Trim(TbSujet.Text), Trim(RtbMessage.Text))
                            Pbar.Value = nI
                        End If
                    Next nI
                    Winsock.SendData("quit" + vbCrLf)
                    LbStatut.Text = "état: Déconnexion en cours..."
                    AttenteReponseServeur("221")
                End If
                Winsock.Close()
                LbStatut.Text = "Opération terminée"
            Else
                MsgBox("Impossible d'initialiser la connexion", MsgBoxStyle.Critical, "Erreur Winsock")
                bSTOP = True
            End If
            Winsock.Close()
            If Not bSTOP Then
                MsgBox("Opération terminée", MsgBoxStyle.Information, "information")
            Else
                MsgBox("Opération annulée", MsgBoxStyle.Critical)
            End If
            Pbar.Visible = False
            BtEnvoyer.Text = "Envoyer"
        Else
            bSTOP = True
        End If
    End Sub

    Private Sub BtEnvoyer_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtEnvoyer.MouseEnter
        BtEnvoyer.FlatStyle = FlatStyle.Standard
    End Sub

    Private Sub BtEnvoyer_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtEnvoyer.MouseLeave
        BtEnvoyer.FlatStyle = FlatStyle.Flat
    End Sub


    Private Sub VsNbEnvois_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles VsNbEnvois.Scroll
        TxNbEnvois.Text = Trim(Str(VsNbEnvois.Value))
    End Sub


    Sub EnvoiEmail(ByVal sAdresseExp As String, ByVal sAdresseDest As String, ByVal sSujet As String, ByVal sMessage As String)
        Dim sEtapeCom(8, 3) As String
        Dim nCpt As Integer

        sEtapeCom(1, 1) = "mail from:" + Chr(32) + sAdresseExp + vbCrLf
        sEtapeCom(1, 2) = "250"
        sEtapeCom(1, 3) = "Déclaration de l'expéditeur"
        sEtapeCom(2, 1) = "rcpt to:" + Chr(32) + sAdresseDest + vbCrLf
        sEtapeCom(2, 2) = "250"
        sEtapeCom(2, 3) = "Déclaration du destinataire"
        sEtapeCom(3, 1) = "data" + vbCrLf
        sEtapeCom(3, 2) = "354"
        sEtapeCom(3, 3) = "Transmission de la commande data"
        sEtapeCom(4, 1) = "subject:" + sSujet + vbCrLf
        sEtapeCom(4, 2) = ""
        sEtapeCom(4, 3) = "Transmission du sujet du message"
        sEtapeCom(5, 1) = sMessage + vbCrLf
        sEtapeCom(5, 2) = ""
        sEtapeCom(5, 3) = "Transmission du corps du message"
        sEtapeCom(6, 1) = vbCrLf + "." + vbCrLf
        sEtapeCom(6, 2) = "250"
        sEtapeCom(6, 3) = "Trasmission de la requête de fin de transmission"

        For nCpt = 1 To 6
            If Not bSTOP Then
                LbStatut.Text = "état: " + sEtapeCom(nCpt, 3)
                Winsock.SendData(sEtapeCom(nCpt, 1))
                If Len(Trim(sEtapeCom(nCpt, 2))) <> 0 Then
                    AttenteReponseServeur(sEtapeCom(nCpt, 2))
                End If
            End If
        Next nCpt
        LbStatut.Text = "Opération terminée"
    End Sub


    Sub AttenteReponseServeur(ByVal sCodeReponseAttendu As String)
        Dim nNbSecMaxReponse As Integer

        nNbSecMaxReponse = VsDelai.Value
        nNbSecAttente = 0

        While Len(sRepServeur) = 0 And Not bSTOP
            Application.DoEvents()
            If nNbSecAttente > nNbSecMaxReponse Then
                MsgBox("Le serveur SMTP ne répond pas - délai de réponse imparti dépassé", 64, "erreur")
                bSTOP = True
                Exit Sub
            End If
        End While
        While Mid(sRepServeur, 1, 3) <> sCodeReponseAttendu And Not bSTOP
            Application.DoEvents()
            If nNbSecAttente > nNbSecMaxReponse Then
                MsgBox("Code de retour attendu du serveur SMTP incorrect, attendu : " + sCodeReponseAttendu + " reçu : " + sRepServeur, 64, "erreur")
                bSTOP = True
                Exit Sub
            End If
        End While
        sRepServeur = ""
    End Sub


    Private Sub Timer_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs) Handles Timer.Elapsed
        nNbSecAttente = nNbSecAttente + 1
    End Sub


    Private Sub Winsock_DataArrival(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent) Handles Winsock.DataArrival
        Winsock.GetData(sRepServeur)
    End Sub

    Private Sub VsDelai_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles VsDelai.Scroll
        TxtDelai.Text = Trim(Str(VsDelai.Value))
    End Sub
End Class


 Fichier Zip

Les Membres Club peuvent télécharger directement un fichier contenu dans le zip sans télécharger le zip en entier !
  • AssemblyInfo.vbTélécharger ce fichier [Réservé aux membres club]Voir ce fichier1 094 octets
  • AxInterop.MSWinsockLib.dllTélécharger ce fichier [Réservé aux membres club]11 776 octets
  • DoubyMailer.exeTélécharger ce fichier [Réservé aux membres club]40 960 octets
  • DoubyMailer.pdbTélécharger ce fichier [Réservé aux membres club]26 112 octets
  • Interop.MSWinsockLib.dllTélécharger ce fichier [Réservé aux membres club]15 872 octets
  • DoubyMailer.slnTélécharger ce fichier [Réservé aux membres club]Voir ce fichier918 octets
  • DoubyMailer.suoTélécharger ce fichier [Réservé aux membres club]7 168 octets
  • DoubyMailer.vbprojTélécharger ce fichier [Réservé aux membres club]Voir ce fichier4 860 octets
  • DoubyMailer.vbproj.userTélécharger ce fichier [Réservé aux membres club]Voir ce fichier1 784 octets
  • AxInterop.MSWinsockLib.dllTélécharger ce fichier [Réservé aux membres club]11 776 octets
  • DoubyMailer.exeTélécharger ce fichier [Réservé aux membres club]40 960 octets
  • DoubyMailer.pdbTélécharger ce fichier [Réservé aux membres club]26 112 octets
  • DoubyMailer.Principal.resourcesTélécharger ce fichier [Réservé aux membres club]5 822 octets
  • Interop.MSWinsockLib.dllTélécharger ce fichier [Réservé aux membres club]15 872 octets
  • Principal.resxTélécharger ce fichier [Réservé aux membres club]Voir ce fichier10 316 octets
  • Principal.vbTélécharger ce fichier [Réservé aux membres club]Voir ce fichier19 359 octets

Télécharger le zip


 Historique

19 octobre 2004 14:48:08 :
modif description

 Sources du même auteur

Source avec Zip Source avec une capture PROGRAMME DE TRAITEMENT D'IMAGES (FILTRES, DÉTOURAGE AUTOMAT...
Source avec Zip Source avec une capture SCANNER MULTI PORTS ET DE PLAGES IP (CONFIGURABLE)
Source avec Zip Source avec une capture AUTOPROCESS EXÉCUTION ET FERMETURE D'UN PROGRAMME AUTOMATIQU...

 Sources de la même categorie

Source avec Zip Source avec une capture UPLOAD FTP VB 6 par Onin42
Source avec Zip Source avec une capture Source .NET (Dotnet) FAVORIS URL par Le Pivert
Source avec Zip Source avec une capture Source .NET (Dotnet) DEVSSH CLIENT SFTP/SSH par iblsysteme
Source avec Zip Source avec une capture CONNEXION RÉSEAU par ABUMAI
Source avec Zip CSOCKET - REMPLACEZ WINSOCK PAR LA VERSION 2 DES API par Renfield

Commentaires et avis

Commentaire de spy166 le 22/12/2003 13:40:12

Oua !!
En .Net, on peux faire beaucoup mieu que ça !!
T'a vu la tailel de ton code ?!?

Commentaire de lcprog le 22/12/2003 19:35:31

Et toi, t'as vu ton orthographe ? lol

Nul doute de ma part que l'on puisse faire mieux!
Et si tu étais moindrement plus observateur, tu aurais vu qu'une grande partie du code a été généré par l'environnement .net !!
Alors ne juges pas si vite stp, et prends le temps... d'analyser!

Je trouve que mon code est pas mal optimisé (compte tenu que je passe par winsock.dll).
Et si tu sais faire mieux n'hésites pas à me soutenir ta création ;)
Lolo

Commentaire de spy166 le 22/12/2003 20:00:49

Oui je peux faire mieu, et oui j'ai vu que t'a mit du code généré (ce que je trouve bête d'ailleurs), comme l'intérêt de ta source.
Je trouve pas d'intérêt dans l'envoi de mail en raffale.
Mais bon, chacun ses trucs.

Commentaire de spy166 le 22/12/2003 20:15:31

Ah oh fait, c'est vrai javais pas regardé ton code.
Je viens de télécharger ta source et là je m'aperçois que tu crée les controles dynamiquement, je trouve ça encore plus nul.
Serieux, le mode design c fé pr quelque chose.

Commentaire de lcprog le 22/12/2003 21:49:07

Apparement on a pas les mêmes méthodes de programmation (après avoir mis quelques minutes à comprendre ce que tu appelais à tort des "contrôles"). Tu devrais peut être prendre des cours :)

Pour ce qui sont des intérêts de ce source, il y en a plusieurs. Pour mon cas, je l'ai utilisé pour tester l'efficacité et la sécurité en certains points de mon serveur SMTP. (Je ne sais pas si tu sais ce que c'est, auquel cas je veux bien prendre 5 minutes pour te l'expliquer sur simple demande).

Autre point: je te trouve bien arrogant de te permettre de juger de cette façon le code des autres. Surtout avec l'expérience de la programmation que tu laisses transparaître (cf tes sources).
Mais bon, tu n'as que 16 ans, tu as le temps de corriger ton comportement ;) Mais tu as du travail...

Aller bon courage!
Loïc

Commentaire de spy166 le 22/12/2003 23:07:19

Oulà, c petit tes vannes, pour savoir qu'on dialogue pas en temps réel, réfléchit bien à tes vannes la prochaine fois.

euh pour ce qui est des cours de prog, j'ai autres chose à faire que d'en prendre. et ce que j'appelle des controles, ben c tout simplement ce quon met sur la feuille : bouton, textbox... enfin je me trompe peut etre, mais apres tout je men tape bien.

Et pour ceux qui est de mes sources sur le site, je trouve que mes 4 petites sources sont déjà plus instructive et ont plus d'intéret que ton mail bomber de mer**.
Mais ne t'inquiete pas, c'est vrai quelle ne reflete en rien mon niveau de programmation, si c'est là dessus que tu te bases pour le juger

Commentaire de LORDARRAKIS le 03/03/2004 17:33:26

On va pas se battre pour des conneries .... Le mode design c'est mieux () évidement nettement plus simpliste comme approche et pas besoin de comprendre a fond ce qui se passe ...). Toute source a son interet et optimisation ne veut absolument pas dire un code COURT mais un code RAPIDE ... y'en a qui me semble bien prétentieux dans le coin ... enfin, y se casseront bien la geule ( ou on leur cassera, cela dépend ) tout seul et après,  y viendront aussi sur pleure sur sur les forums ????????? Avant de dire que tu sais programmer, Etudie !!!! c'est pas avec des connards comme cela qu'on aura écrit le noyau UNiX en pur c (évidement s'il connait le C) ... 38 ans et 28 de programmation alors je connais un peu la branche ....

Commentaire de spy166 le 03/03/2004 20:03:41

Sérieusement ta vie mon gars je m'en tappe un peu.
Si t'a passé 28 ans à programmer, je suis content pour toi, t'a qu'a faire un bouqin au lieu de venir me traiter de connard, ça sera plus utile.
Si ta envie d'aller écrire ton noyau unix va y aussi, personne t'en empeche, perso le c ça me fait pas bander. Moi je suis resté sur la branche des femmes.

Bref tout ça pour dire que cette source est pourrie, rien que par son principe.

Commentaire de LeNazgul le 07/04/2004 17:29:24

je trouve qd meme quil i as des gens qu'on devrai empecher de poste, ton code es pas mal, je le trouve aussi tres util, see u on the wave

Commentaire de lunatic92irho le 24/08/2004 09:54:34

exxuse moi je voudrai savoir ke fallait til mettre dans le choix serveur smtp car je mi connai pa du tout en tou k ce code est bien surtou pour les email anonymes ossi allez ciao

Commentaire de sly535 le 02/11/2004 09:30:38

Moi je rouve ton code super pratique : j'ai une base de donnée mail à gerer et de temps en temps j'ai besoin de faire du mass mailing pour envoyer de nouvelles infos.

Commentaire de OneHacker le 06/05/2006 12:44:08

C'est pas juste qu'on laisse cette source de Mailbomber si on bloque la mienne soit disant qu'on a pas le droit de poster de ce genre de source!

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Février 2010
LMMJVSD
1234567
891011121314
15161718192021
22232425262728

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,998 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales