VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Simple Email Send

Matmonk  (2 Submissions)   Miscellaneous   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

While browsing through the files on this site, I noticed that most listings that dealt with sending e-mail using VB used the Winsock Control. I recently wrote a small demo for a customer that reads a database file, and then sends it to an email address. This code requires that you use the MAPISession Control as well the MAPIMessage control. You must also have a mail service installed on your system (Exchange,Outlook, ect.). Other than those requirements, the code is very easy to understand.

Inputs
Mail Users Name, email address, and any file attachments you wish to include.

Assumes
Make sure that you have the MAPISession control and the MAPIMessages control on the tool box and on the form. ' ************ Edited 11/08/1999 by Matmonk ************* I have received a few questions asking how to send the email to multiple addresses at one time. The simplest way that I know of is when you assign a value to the "TO:" string, simply separate the multiple address with a semicolon ";". This is the microsoft standard way that works in Outlook and seems to work in other email system. An example: strToString = "smtp:[email protected];smtp:[email protected];smtp:[email protected]". I hope this helps those of you who have raised this question. I do not yet have an answer on how to send multiple file attachments, but if I come across one, I will post it here. Cheers. ***************** Edited 11/08/1999 by Matmonk ***********************

Returns
nothing

Side Effects
None that I have found yet.

Rate Simple Email Send (4(4 Vote))
Simple Email Send.bas

Simple Email Send Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters