473,372 Members | 717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

send automatic email - MAPI?

Hi,

I have a VB.NET windows app that needs to automatically send a simple text
email when my users run a new version of the app for the first time. I
thought this would be simple, but after days of reading posts and testing, I
see it is not - unless I'm missing something? I'm not an email guru.

All of my users will be running at least Windows 2000, most on XP sp2. Some
of my users will have Outlook, many will be using Outlook Express, some will
have who knows what. Most of my users will not be connected to the internet,
they are in tribal locations in the jungle. Most will connect a couple of
times per day via radio to send and receive email.

I thought with MAPI, I could easily send a message from my code, and it
would not matter what mail client the user had, or whether the user was
connected to the internet: my message would be placed in the outbox of
whatever mail client was the default, and whenever the user sent/received
mail, my message would be sent.

I have run into several problems:
1. the vb6 MAPI code I ported to VB.NET gives me the irritating 5-second
wait box, and when I click Yes, I get the error "Unspecified Failure has
occurred at MSMAPI.IMapMessages.Send(Object vDialog)".

2. I tried SMTP, but my SMTP send gives me "Could not access 'CDO.Message'
object", saying the transport failed to connect to the server. And if I
understand correctly, with SMTP, the user would actually have to have a live
internet connection at the moment my code attempts to send an email, is that
true?

3. Using Outlook objects, it actually works, whether the user is connected
to the internet or not, and whether Outlook is currently running or not - if
the user has Outlook installed. However, there is still the irritating
5-second message box "a program is trying to send mail" the user has to know
to click Yes on.

4. I tried Outlook Redemption, and it works great if Outlook is running and
is connected to the internet - the irritating messagebox is suppressed, and
the email is sent. However, I get errors if Outlook is not actually running,
or else the message I send ends up stuck in the user's Inbox instead of
Outbox.

I'm not sure what is the best solution here. Ideally, I'd like to send an
email (with no warning messagebox popping up) that will go out on the user's
default email client the next time the user sends/receives mail from that
client.

Failing that, if I can code several different ways of trying to send the
email, and try each one in sequence until one of them succeeds, that would be
great too. But I'm at a loss to know what methods are best to try, or the
best way to research those methods.

Does anyone have any recommendations?

Thanks!
David
Jul 21 '05 #1
0 3650

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

40
by: ian | last post by:
Hi, I'm a newbie (oh no I can here you say.... another one...) How can I get Python to send emails using the default windows email client (eg outlook express)? I thought I could just do the...
1
by: Jay McGrath | last post by:
Help - trying to send a simple text email with with as little user intervention. I am trying to create a button in my Access application that will automatically send a simple text email. It...
0
by: David Burson | last post by:
Hi, I have a VB.NET windows app that needs to automatically send a simple text email when my users run a new version of the app for the first time. I thought this would be simple, but after...
2
by: madfisher | last post by:
Hi, I am trying to send an email with MAP via C# and ASP.NET. This is what I'm doing. MapiSession1 = new MSMAPI.MAPISessionClass(); MapiSession1.UserName = "OutlookProfileName";...
15
by: cj | last post by:
How can I get a button in VB to send the contents of a text box via email in a manner similar to the "Send To\Mail Recipient" functionality that you can select via right clicking a file in Windows...
3
by: Siv | last post by:
Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and...
3
by: sentiboy | last post by:
I am using the following code for sending email through mapi in VS 2005 environment: Public objSession As New MSMAPI.MAPISession Public objMessage As New MSMAPI.MAPIMessages ...
1
by: Danny | last post by:
Hi Am trying to send emails via simple mapi. The application will be running on a machine which has outlook 2003 installed. My test app works but the file email is placed in the outbox within...
1
by: prasadmore | last post by:
I am developing a web service using CDO 1.21 to create an appointement in Exchange Server 2003. The Logon method is executing successfully and able to access Inbox folder. When I try to create an...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.