Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
It send emails using mapi controls directly form t...
Author:
Alintan
Submitted:
4/17/2002
Version:
VB6
Compatibility:
VB6
Category:
Internet Programming
Views:
17694
It send emails using mapi controls directly form the form.
Declarations:
'none
Code:
'Add 3 text boxes and name them txtSendto, txtSubject '& txtMessage and a command button with name cmdSend Private Sub Form_Load() MAPISession1.SignOn End Sub Private Sub Form_Unload(Cancel As Integer) MAPISession1.SignOff End Sub Private Sub cmdSend_Click() With MAPIMessages1 .MsgIndex = -1 .RecipDisplayName = txtSendTo.Text .MsgSubject = txtSubject.Text .MsgNoteText = txtMessage.Text .SessionID = MAPISession1.SessionID .Send End With MsgBox "Message sent!", , "Send Message" End Sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement