MCG, Inc is a small consulting company located in the New York area that specializes in Visual Basic programming. We have been in the programming field for over 10 years. We are currently looking for an experienced Visual Basic programmer to work in the New York/New Jersey/Long Island area. You should have at least 3 years of Visual Basic experience and have some experience working in a team environment. Requirements include Visual Basic 4.0/5.0, Microsoft Access and Oracle is a plus. The salary is very competitive and includes full health coverage and retirement plan.
If this type of position sounds interesting to you, please email us at mcg@codeoftheweek.com
If you are interested in advertising in COTW (our rates are VERY reasonable), please email us at sponsor@codeoftheweek.com
The source code in this issue is designed for Visual Basic 4.0 and higher.
This issue introduces a class to send a simple email message directly from Visual Basic using the MAPISession and MAPIMessages controls that ship with Visual Basic.
You will need to add the MAPI custom control to your project to use this class. In Visual Basic 5.0 you would perform the following steps:
This class requires that you drop a MAPISession and MAPIMessages control onto your form after you add the control to your project.
There are certain assumptions taken in this class. For example, it automatically signs you onto the email system (We tested with Eudora Pro) when you assign the MAPISessionControl property. It also does not support the addition of attachments in an email message. MAPI does support these functions. If you are interested, let us know and we will develop this class further and publish it on our web site or a later issue.
This is a simple example that will send an email message to our info address at info@codeoftheweek.com with a CC to coolstuff@codeoftheweek.com. It assumes the MAPISession control on your form is called MAPISess and the MAPIMessages control is called MAPIMsg.
Dim MAPI As New cMAPI Set MAPI.MAPISessionControl = MAPISess Set MAPI.MAPIMessageControl = MAPIMsg MAPI.ComposeMessage "Order for Code of the Week", _ "Please send me Code of the Week as soon as you can." MAPI.AddRecipient "info@codeoftheweek.com", RecipTypeTo MAPI.AddRecipient "coolstuff@codeoftheweek.com",RecipTypeCC MAPI.SendMessage Set MAPI = Nothing
To see the source code for this issue you must be a subscriber to Code of the Week. If you are a subscriber the source code is available at the following address: http://www.codeoftheweek.com/membersonly/bi/0021.html
That concludes this issue of COTW. We hope you find the source code useful in your development.
The below describes the ways you can supply us some feedback about COTW. We would like to see our members help mold COTW into the best Visual Basic source code resource available. But to do that we need your feedback about what you like and what you do not like about COTW.
We are currently planning for the next several issues of Code of the Week. If you have any suggestions of source code that you would like to see covered, please jump
If you have any suggestions for topics you would like to see covered or questions about this issue, please email them to info@codeoftheweek.com or use online feedback form at http://www.codeoftheweek.com/feedback.html.
If you have any source code you would like to submit for possible inclusion in COTW, please fill out our online submission form at http://www.codeoftheweek.com/submission.html.
Thank you for trying Code of the Week for Visual Basic.
Your free trial expires after you receive your fourth issue. If you want to continue to receive Code of the Week you can get 52 issues of COTW for only $19.95. This is a full year of Visual Basic source code and information to help with all your development. So don't wait, subscribe now! The quickest way to subscribe is to jump to our online order form at http://www.codeoftheweek.com/order.html