473,394 Members | 1,812 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,394 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 3655

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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.