Tools Links Login

E-mail using MAPI

Sends an e-mail using MAPI

Original Author: Dave Greenwood

Assumptions

place two mapi controls on a form
set mapi user name and password

Code

MAPIsession1.SignOn
if mapisession1.sessionID <> 0 then
with mapimessages1
.sessionid = MapiSession1.sessionID
.compose
.recipdisplayname "YOUR NAME"
recipaddress = "me@myipdomain.com"
.msgsubject = "SUBJECT"
.msgnotetext= "Message"
.send false
end with
mapisession1.signoff
end if

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 84 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.