|
-
Aug 3rd, 2000, 10:49 AM
#1
Thread Starter
Hyperactive Member
All the code I saw on the forums about sending email from a vb app are using Outlook to do it. I would like to send email even if the user has no email program installed (even not outlook express).
To do this, I tried using MAPISession and MAPIMessages components. But then when I do the .send command on the MAPIMessages component, sometimes a small outlook express popup will appear for less than a second. I don't know why outlook is inteferring here. Also, my emails will appear in Outlook's sent items. I don't want this - I want it to be totally transparent.
Is there any way to do this?
Thanks.
-
Aug 3rd, 2000, 12:24 PM
#2
Member
The way MAPI works is it locates a MAPI complient email program. This is where outlook and outlook express come into the picture. MAPI will then use this program to send the mail. Also the thing that causes the message to stay in the sent items folder is the actual send command. The first parameter signifies whether to store the message. Pass False instead of True to the .Send method.
-
Aug 3rd, 2000, 12:38 PM
#3
Hyperactive Member
Yep! Use the Winsock API. Go to http://www.planetsourcecode.com and search the Visual Basic files for the Winsock API. There are several examples on how to do this. Most of the have really sloppy code and you will have to clean it up and modify it, but it gives you a good start.
I recently took the download from
http://www.planetsourcecode.com/vb/s...txtCodeId=4796
(at least I THINK that was the original file), chopped cut and rearranged all of it so that it would not require user input, and put it into function calls that make the program send me an email whenever an error occurs.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|