Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

VB.NET 2010 Advanced Mail Application + attachments 1080p Tut #1

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,429
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 18, 2011

Code for mail part ; Dim MyMailMessage As New MailMessage() MyMailMessage.From = New MailAddress(TextBox1.Text) MyMailMessage.To.Add(TextBox2.Text) MyMailMessage.Subject = TextBox3.Text MyMailMessage.Body = RichTextBox1.Text If Not TextBox4.Text = Nothing Then Dim Attach As Net.Mail.Attachment = New Net.Mail.Attachment(TextBox4.Text) MyMailMessage.Attachments.Add(Attach) End If Dim SMTPServer As New SmtpClient(TextBox6.Text) SMTPServer.Port = 587 SMTPServer.Credentials = New System.Net.NetworkCredential(TextBox1.Text, TextBox5.Text) SMTPServer.EnableSsl = True Try SMTPServer.Send(MyMailMessage) MessageBox.Show("Email sent") Catch ex As SmtpException MessageBox.Show("There was an error, please try again :" + ex.Message) End Try

http://wwd.dyndns.info/

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (woutwoot)

  • Awesome tutorial I really like that smtp website never heard of it before ^^

  • @TeachComputing

    Thanks !

    And yes, the site is handy to use !

  • Nice bro! Ik heb de testversie van WebSoudn af, wil je testen?

  • @rickschravendeel

    Natuurlijk !!! stuur maar door :D

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • thanx so much for such brilliant tutorial, your a very helpful man

  • gmail smtp = smtp.gmail.com

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more