[TuToRiAl] Add Attachments to your Email Sender in VB - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19) +---- Thread: [TuToRiAl] Add Attachments to your Email Sender in VB (/showthread.php?tid=12828) |
[TuToRiAl] Add Attachments to your Email Sender in VB - Resistance - 10-17-2010 Hello guys, Welcome to my 200th post!!! Woot Woot ! Today you will learn how to add file attachments to your VB emailing program with multiple select. Really great feature but you must be cautious of file scanner for if it is filtered through Gmails servers such as an .exe, it will be blocked without notification. If you want to know how to make an email sender to use attachments, then Click Here Now to get started on features:
Next, the code. First off, the button. Code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Next, somewhere in the middle of the code for emailing, beginning is most preferred, paste this: Code: If Not TextBox1.Text = Nothing Then This code scans for the attachments if they are there or not. Next we need to code the OpenFileDialog1. Code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Wahhhhhhhhhlllllllllllllllllllaaaaaaaaaaaaaaaaa We are done. Now select multiple files from the dialog and your good! |