473,396 Members | 2,018 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,396 software developers and data experts.

SendMail with showDialog using CDO

Hello,

I am developing a C# application that needs to interface with email.
Specifically, I want to be able to send an email where the UI dialog
for the default email client (Outlook, OE, etc.) pops up and allows
the user to type in email addresses, etc. When the user hits send, I
want the email to automatically be sent (and not stay in the Outbox).

While perusing the documentation for CDO I have become aware of the
DeliverNow method for the Session object as well as the Send method
for the Message object (with the "showDialog" parameter). These would
seem to be my answers.

However, where I'm running into problem is understanding how to access
these objects/methods from C#. I have added a reference to
"cdoex.dll" to my project which gives me the "CDO" namespace as well
as the "Message" and "MessageClass" interface/class. However, the
Send method takes no arguments (specifically, there is no way to
specify "showDialog") nor do I see a Session class or DeliverNow
method.

I would appreciate any assistance in better understanding how I access
this functionality from C#.

Thanks,

Steve
Nov 15 '05 #1
2 5775
Have you considered just using mailto protocol?

"Steve" <st********@yahoo.com> wrote in message
news:5b**************************@posting.google.c om...
Hello,

I am developing a C# application that needs to interface with email.
Specifically, I want to be able to send an email where the UI dialog
for the default email client (Outlook, OE, etc.) pops up and allows
the user to type in email addresses, etc. When the user hits send, I
want the email to automatically be sent (and not stay in the Outbox).

While perusing the documentation for CDO I have become aware of the
DeliverNow method for the Session object as well as the Send method
for the Message object (with the "showDialog" parameter). These would
seem to be my answers.

However, where I'm running into problem is understanding how to access
these objects/methods from C#. I have added a reference to
"cdoex.dll" to my project which gives me the "CDO" namespace as well
as the "Message" and "MessageClass" interface/class. However, the
Send method takes no arguments (specifically, there is no way to
specify "showDialog") nor do I see a Session class or DeliverNow
method.

I would appreciate any assistance in better understanding how I access
this functionality from C#.

Thanks,

Steve

Nov 15 '05 #2
Steve,
have you looked at this?

Microsoft Visual Studio
..NET\FrameworkSDK\Samples\Technologies\Interop\Ap plications\CDO

There is also an SmtpMail class but I don't think it's going to get you
outlook interface.

HTH
Steve

"Steve" <st********@yahoo.com> wrote in message
news:5b**************************@posting.google.c om...
Hello,

I am developing a C# application that needs to interface with email.
Specifically, I want to be able to send an email where the UI dialog
for the default email client (Outlook, OE, etc.) pops up and allows
the user to type in email addresses, etc. When the user hits send, I
want the email to automatically be sent (and not stay in the Outbox).

While perusing the documentation for CDO I have become aware of the
DeliverNow method for the Session object as well as the Send method
for the Message object (with the "showDialog" parameter). These would
seem to be my answers.

However, where I'm running into problem is understanding how to access
these objects/methods from C#. I have added a reference to
"cdoex.dll" to my project which gives me the "CDO" namespace as well
as the "Message" and "MessageClass" interface/class. However, the
Send method takes no arguments (specifically, there is no way to
specify "showDialog") nor do I see a Session class or DeliverNow
method.

I would appreciate any assistance in better understanding how I access
this functionality from C#.

Thanks,

Steve

Nov 15 '05 #3

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

Similar topics

2
by: Babaloo | last post by:
Hello, I am having a problem with PHP 4.2.2 and RH 8. PHP is working fine except email. I have a test script to send mail, I have sendmail_path = '/usr/lib/sendmail -t -i' set in php.ini,...
2
by: mike | last post by:
I've spent a couple of days on this and I'm to the "bang-my-head 'gainst the monitor and babble in tongues" mode. First - SuSE Pro 9.3, Linux 2.6.11.4-21.7, Apache 2.0.53, PHP 4.3.10 I have...
1
by: Shelly | last post by:
I want to be able to create a sendmail account by commands sent from a web page. I am using php. After everything is done, I want to enter his info into the database (easy) and create this...
3
by: swangdb | last post by:
I have a Sun Server running Solaris 10 and Sendmail 8.13.7. I have Majordomo and Listproc installed on this server and they work. I have several production majordomo and listproc mailing lists...
4
by: Nilesh | last post by:
I have a server in which sendmail gives problem. How do i change php.ini so that i can use exim for mail() System is FC-6.
3
by: zaxxon25 | last post by:
I am having an issue with attaching 2 attachments one xip and other excel file with email and sending using perl sendmail. I tried to look on various forums and everywhere i get advice using MIME ::...
13
by: RJ_32 | last post by:
looking here: http://www.devarticles.com/c/a/PHP/Getting-Intimate-With-PHPs-Mail-Function/2/ it says that I have to be careful about what I send to the sendmail process via popen(). Does that...
3
by: digitaldiva | last post by:
Hi I am new here and once upon a time I worked with Perl, now I am trying again and need some help: I wrote a Perl script a few years ago that opened an order entry TXT file and sent each...
2
jhoborg
by: jhoborg | last post by:
Hello all, So I'm having trouble using sendmail in a CGI script as the topic title says. Here's what I'm trying to accomplish: User fills out a form, submits it, my CGI script receives this...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.