Ok what you need to do is right click on your applications name in the solution explorer and choose "Add" then "Class". It will then prompt you for a name for your class, call it "Email.vb", you will then have a new class with the following pre-added
Delete all of that and then on my website hover your mouse over the code, in the top right hand corner of the code box, you will see a box with "<>" in it, click on this. You will then have a new window opened from which you can copy the code without any of the formatting.Code:Public Class Email End Class
Once you have copied the code then go back to Visual Studio and paste all the code into the blank Email class.
You can keep the namespace but you can also delete it. If you keep it then when you try to make an object of it, you will have to do something like
If you remove the namespace lines (one at the beginning and one at the end) you will have to do something likeCode:Dim em as new Email.Email()
.Code:Dim em as new Email()
If you put all the emails in the to address then everyone will be able to see it. You have two options if you want people not to see everyone else who the email is going to;
1) Send out the emails one at a time
2) Send the email to yourself, but have everyone who should be receiving the email added as a BCC (Blind Carbon Copy).




Reply With Quote