דאנערשטאג פבואר 09, 2012 7:47 pm
Sub Authenticate()
'create the mail message
' chkemail()
Dim mail As New MailMessage()
'set the addresses
mail.From = New MailAddress(UserId.Text)
CurrentSendLbl.Text = ""
'set the content
mail.Subject = SubjectTxt.Text
' mail.Body = BodyTxt.Text
'send the message
Dim smtp As New SmtpClient("smtp.gmail.com")
'to authenticate we set the username and password properites on the SmtpClient
smtp.Port = 587
smtp.Credentials = New System.Net.NetworkCredential(UserId.Text, MaskedTextBox1.Text)
smtp.EnableSsl = True
Try
chkemail()
Dim ProgresBar As Integer
ProgressBar1.Visible = True
ProgressBar1.Style = ProgressBarStyle.Blocks
For ProgresBar = 1 To 100
Me.ProgressBar1.Value = ProgresBar
ProgressBar1.ForeColor = Color.GreenYellow
Threading.Thread.Sleep(25)
Next
Dim final As New List(Of String)
Dim str As String
Dim strArr() As String
Dim count As Integer
str = ToAddressTxt.Text
strArr = str.Split(";")
For count = 0 To strArr.Length - 1
final.Add(strArr(count))
For Each item As String In final
CurrentSendLbl.Text = "Now Sending to:" & item
mail.Bcc.Add(item)
smtp.Send(mail)
Next
Next
' CurrentSendLbl.Text = ""
smtp.Timeout = 600000
MessageBox.Show("Send Succesfull")
CurrentSendLbl.Text = ""
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
ProgressBar1.Visible = False
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
דאנערשטאג פבואר 09, 2012 10:00 pm
דאנערשטאג פבואר 09, 2012 10:05 pm
For count = 0 To strArr.Length - 1
final.Add(strArr(count))
Next
For Each item As String In final
CurrentSendLbl.Text = "Now Sending to:" & item
mail.Bcc.Add(item)
smtp.Send(mail)
Next
דאנערשטאג פבואר 09, 2012 10:41 pm
דאנערשטאג פבואר 09, 2012 11:46 pm
פרייטאג פבואר 10, 2012 12:03 am
Sub Authenticate()
'create the mail message
Dim mail As New MailMessage(UserId.Text, "To@gmail.com", SubjectTxt.Text, BodyTxt.Text)
CurrentSendLbl.Text = ""
'send the message
Dim smtp As New SmtpClient("smtp.gmail.com", 587)
'to authenticate we set the username and password properites on the SmtpClient
smtp.Credentials = New System.Net.NetworkCredential(UserId.Text, MaskedTextBox1.Text)
smtp.EnableSsl = True
Try
chkemail()
ProgressBar1.Visible = True
ProgressBar1.Style = ProgressBarStyle.Blocks
ProgressBar1.ForeColor = Color.GreenYellow
smtp.Timeout = 600000
Dim str As String = ToAddressTxt.Text
Dim final = str.Split(";").ToList
Dim I = 0
For Each item As String In final
I += 1
Me.ProgressBar1.Value = (100 / final.Count) * I
CurrentSendLbl.Text = "Now Sending to:" & item
Application.DoEvents()
mail.Bcc.Add(item)
smtp.Send(mail)
Next
MessageBox.Show("Send Succesfull")
CurrentSendLbl.Text = ""
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
ProgressBar1.Visible = Falseפרייטאג פבואר 10, 2012 9:14 am
פרייטאג פבואר 10, 2012 1:43 pm
פרייטאג פבואר 10, 2012 2:10 pm
פרייטאג פבואר 10, 2012 2:14 pm
לאז געמאכט האט געשריבן:
- קאוד:
Sub Authenticate()
'create the mail message
Dim mail As New MailMessage(UserId.Text, "To@gmail.com", SubjectTxt.Text, BodyTxt.Text)
CurrentSendLbl.Text = ""
'send the message
Dim smtp As New SmtpClient("smtp.gmail.com", 587)
'to authenticate we set the username and password properites on the SmtpClient
smtp.Credentials = New System.Net.NetworkCredential(UserId.Text, MaskedTextBox1.Text)
smtp.EnableSsl = True
Try
chkemail()
ProgressBar1.Visible = True
ProgressBar1.Style = ProgressBarStyle.Blocks
ProgressBar1.ForeColor = Color.GreenYellow
smtp.Timeout = 600000
Dim str As String = ToAddressTxt.Text
Dim final = str.Split(";").ToList
Dim I = 0
For Each item As String In final
I += 1
Me.ProgressBar1.Value = (100 / final.Count) * I
CurrentSendLbl.Text = "Now Sending to:" & item
Application.DoEvents()
Mail.Bcc.Clear()
mail.Bcc.Add(item)
smtp.Send(mail)
MessageBox.Show("Send Succesfull")
CurrentSendLbl.Text = ""
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
ProgressBar1.Visible = False
.
פרייטאג פבואר 10, 2012 2:36 pm
פרייטאג פבואר 10, 2012 2:49 pm
לאז געמאכט האט געשריבן:לאז געמאכט האט געשריבן:
- קאוד:
Sub Authenticate()
'create the mail message
Dim mail As New MailMessage(UserId.Text, "To@gmail.com", SubjectTxt.Text, BodyTxt.Text)
CurrentSendLbl.Text = ""
'send the message
Dim smtp As New SmtpClient("smtp.gmail.com", 587)
'to authenticate we set the username and password properites on the SmtpClient
smtp.Credentials = New System.Net.NetworkCredential(UserId.Text, MaskedTextBox1.Text)
smtp.EnableSsl = True
Try
chkemail()
ProgressBar1.Visible = True
ProgressBar1.Style = ProgressBarStyle.Blocks
ProgressBar1.ForeColor = Color.GreenYellow
smtp.Timeout = 600000
Dim str As String = ToAddressTxt.Text
Dim final = str.Split(";").ToList
Dim I = 0
For Each item As String In final
I += 1
Me.ProgressBar1.Value = (100 / final.Count) * I
CurrentSendLbl.Text = "Now Sending to:" & item
Application.DoEvents()
Mail.Bcc.Clear()
mail.Bcc.Add(item)
smtp.Send(mail)
MessageBox.Show("Send Succesfull")
CurrentSendLbl.Text = ""
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
ProgressBar1.Visible = False
.
דא האביך צוגעלייגט צו קליערן די אימעיל ליסטע פארן שיקן. עס איז אבער מער אויסגעהאלטן צו לייגן די סענט נאכן נעקסט אזוי ארום וועט זיך אלע שיקן מיט איין מאל. כ'האב עס ניישט אזוי געמאכט ווייל די פראגראס באר וועט נישט האבן קיין באדייט לפ"ז.