Hi,
From my ASP.NET application when the user clicksa button I want to be able
to programmatically open Outlook, create a new mail, add attachments and set
the body text.
Is this possible?
C. 14 5157
Why would you want to open Outlook? You can do all of those things without
Outlook.
--
HTH,
Kevin Spencer
Microsoft MVP
Short Order Coder http://unclechutney.blogspot.com
The devil is in the yada yada yada
"C" <C@discussions.microsoft.comwrote in message
news:52**********************************@microsof t.com...
Hi,
From my ASP.NET application when the user clicksa button I want to be able
to programmatically open Outlook, create a new mail, add attachments and
set
the body text.
Is this possible?
C.
So my user can then just select who they want to send it to.
I will add the attachments and text from my application.
The users to receive the email may not be part of the Organisation so I
cannot provide a lookup in the application.
"Kevin Spencer" wrote:
Why would you want to open Outlook? You can do all of those things without
Outlook.
--
HTH,
Kevin Spencer
Microsoft MVP
Short Order Coder http://unclechutney.blogspot.com
The devil is in the yada yada yada
"C" <C@discussions.microsoft.comwrote in message
news:52**********************************@microsof t.com...
Hi,
From my ASP.NET application when the user clicksa button I want to be able
to programmatically open Outlook, create a new mail, add attachments and
set
the body text.
Is this possible?
C.
>Is this possible? <<
No.
C wrote:
Hi,
From my ASP.NET application when the user clicksa button I want to be able
to programmatically open Outlook, create a new mail, add attachments and set
the body text.
Is this possible?
C.
>The users to receive the email may not be part of the Organisation so I
cannot provide a lookup in the application. <<
Why can't you provide the user with a text box and have them comma
delimit the email addresses.
C wrote:
So my user can then just select who they want to send it to.
I will add the attachments and text from my application.
The users to receive the email may not be part of the Organisation so I
cannot provide a lookup in the application.
"Kevin Spencer" wrote:
Why would you want to open Outlook? You can do all of those things without
Outlook.
--
HTH,
Kevin Spencer
Microsoft MVP
Short Order Coder http://unclechutney.blogspot.com
The devil is in the yada yada yada
"C" <C@discussions.microsoft.comwrote in message
news:52**********************************@microsof t.com...
Hi,
>
From my ASP.NET application when the user clicksa button I want to be able
to programmatically open Outlook, create a new mail, add attachments and
set
the body text.
>
Is this possible?
>
C.
>
It is possible, but may not be necessary. If it is necessary, the newsgroup
to ask would be:
microsoft.public.vsnet.vstools.office
--
HTH,
Kevin Spencer
Microsoft MVP
Short Order Coder http://unclechutney.blogspot.com
The devil is in the yada yada yada
"xAvailx" <bj******@hotmail.comwrote in message
news:11*********************@k70g2000cwa.googlegro ups.com...
>>Is this possible? <<
No.
C wrote:
>Hi,
From my ASP.NET application when the user clicksa button I want to be able to programmatically open Outlook, create a new mail, add attachments and set the body text.
Is this possible?
C.
"Kevin Spencer" <sp**@uce.govwrote in message
news:uz****************@TK2MSFTNGP04.phx.gbl...
It is possible, but may not be necessary. If it is necessary, the
newsgroup to ask would be:
As is fairly well known, Office Automation through ASP.NET is a really bad
thing to do in terms of performance.
Even Microsoft themselves strong advise against it... http://support.microsoft.com/default...US;q257757#kb2
Oh yes, I advised against it also!
--
HTH,
Kevin Spencer
Microsoft MVP
Short Order Coder http://unclechutney.blogspot.com
The devil is in the yada yada yada
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:%2********************@TK2MSFTNGP05.phx.gbl.. .
"Kevin Spencer" <sp**@uce.govwrote in message
news:uz****************@TK2MSFTNGP04.phx.gbl...
>It is possible, but may not be necessary. If it is necessary, the newsgroup to ask would be:
As is fairly well known, Office Automation through ASP.NET is a really bad
thing to do in terms of performance.
Even Microsoft themselves strong advise against it... http://support.microsoft.com/default...US;q257757#kb2
So, you are saying that I can go to an asp.net website, and asp.net can
open outlook on my client machine and "create a new mail, add
attachments and set the body text"?
Please enlighten me! (no cockiness intended)
Thx.
Kevin Spencer wrote:
It is possible, but may not be necessary. If it is necessary, the newsgroup
to ask would be:
microsoft.public.vsnet.vstools.office
--
HTH,
Kevin Spencer
Microsoft MVP
Short Order Coder http://unclechutney.blogspot.com
The devil is in the yada yada yada
"xAvailx" <bj******@hotmail.comwrote in message
news:11*********************@k70g2000cwa.googlegro ups.com...
>Is this possible? <<
No.
C wrote:
Hi,
From my ASP.NET application when the user clicksa button I want to be
able
to programmatically open Outlook, create a new mail, add attachments and
set
the body text.
Is this possible?
C.
"xAvailx" <bj******@hotmail.comwrote in message
news:11**********************@f16g2000cwb.googlegr oups.com...
So, you are saying that I can go to an asp.net website, and asp.net can
open outlook on my client machine and "create a new mail, add
attachments and set the body text"?
No - what Kevin and I are saying is that there is no need whatever to open
Outlook on the client machine in order to send an email, as everything you
require (including attachments) is available through the .NET Framework,
specifically the System.Net.Mail namespace: http://www.systemnetmail.com
You must have seen webpages like this before: http://www.markrae.com/contact/mail.aspx
>is that there is no need whatever to open Outlook on the client machine in order to send an email, <<
I am aware of that.
What the original poster was asking for was to "when the user clicksa
button I want to be able to programmatically open Outlook, create a
new mail, add attachments and set the body text. Is this possible?"
This was so the user can "then just select who they want to send it
to""
Which I replied to no, it is not possible.
Kevin's reply was "It is possible, but may not be necessary".
That is why I am asking how is it possible, because I don't know how...
(btw, I know about office automation, but that would only be possible
on the server end AFAIK).
Mark Rae wrote:
"xAvailx" <bj******@hotmail.comwrote in message
news:11**********************@f16g2000cwb.googlegr oups.com...
So, you are saying that I can go to an asp.net website, and asp.net can
open outlook on my client machine and "create a new mail, add
attachments and set the body text"?
No - what Kevin and I are saying is that there is no need whatever to open
Outlook on the client machine in order to send an email, as everything you
require (including attachments) is available through the .NET Framework,
specifically the System.Net.Mail namespace: http://www.systemnetmail.com
You must have seen webpages like this before: http://www.markrae.com/contact/mail.aspx
"xAvailx" <bj******@hotmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
That is why I am asking how is it possible, because I don't know how...
(btw, I know about office automation, but that would only be possible
on the server end AFAIK).
1) Assuming Outlook is the default mail client, the mailto HTML tag would
launch Outlook on the client. The mailto tag accepts various arguments
including subject, body etc...
2) Otherwise, client-side automation is possible though messy with an
ActiveX control (if all the clients use IE) or a Java applet...
I certainly can't recommend either approach...
>The mailto tag accepts various arguments including subject, body etc... <<
Right, but you can't do attachments.
>2) Otherwise, client-side automation is possible though messy with an ActiveX control (if all the clients use IE) or a Java applet... <<
Right, but this is no longer asp.net realm. You can do pretty much
anything with an ActiveX control.
>I certainly can't recommend either approach... <<
So we are on the same page. I just wanted to make sure I wasn't missing
something very obvious...
Thx.
Mark Rae wrote:
"xAvailx" <bj******@hotmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
That is why I am asking how is it possible, because I don't know how...
(btw, I know about office automation, but that would only be possible
on the server end AFAIK).
1) Assuming Outlook is the default mail client, the mailto HTML tag would
launch Outlook on the client. The mailto tag accepts various arguments
including subject, body etc...
2) Otherwise, client-side automation is possible though messy with an
ActiveX control (if all the clients use IE) or a Java applet...
I certainly can't recommend either approach...
"xAvailx" <bj******@hotmail.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
>>The mailto tag accepts various arguments including subject, body etc... <<
Right, but you can't do attachments.
Actually, you can apparently, under certain conditions... http://www.google.co.uk/search?sourc...lto+attachment
I haven't tried it myself, but it looks like it would work...
>The mailto tag accepts various arguments including subject, body etc... <<
Right, but you can't do attachments.
>2) Otherwise, client-side automation is possible though messy with an ActiveX control (if all the clients use IE) or a Java applet... <<
Right, but this is no longer asp.net realm. You can do pretty much
anything with an ActiveX control.
>I certainly can't recommend either approach... <<
So we are on the same page. I just wanted to make sure I wasn't missing
something very obvious...
Thx.
Mark Rae wrote:
"xAvailx" <bj******@hotmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
That is why I am asking how is it possible, because I don't know how...
(btw, I know about office automation, but that would only be possible
on the server end AFAIK).
1) Assuming Outlook is the default mail client, the mailto HTML tag would
launch Outlook on the client. The mailto tag accepts various arguments
including subject, body etc...
2) Otherwise, client-side automation is possible though messy with an
ActiveX control (if all the clients use IE) or a Java applet...
I certainly can't recommend either approach...
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: MaxH |
last post by:
I need to perform programmatically from a C# .net application
the following tasks:
_ open an outlook (or default e-mail client) compose
message window;
_ attach a document to the new message;
_...
|
by: Jordan |
last post by:
I created and access application that sends e-mails automaticaly to our
clients, over 1.500 e-mails daily.
I am using the MS Outlook components to create the e-mail with HTML code.
All works...
|
by: lauren quantrell |
last post by:
Is there a way to open the MS Outlook address book using VBA and then
be able to do something with the return value?
I want users to click an icon to open the Outlook address book then
when an...
|
by: Barkster |
last post by:
I'm trying to send using outlook but I get an error on the directcast line
if I don't have outlook open. Works fine if it is open. What do I need to
do to be able to send without having outlook...
|
by: Brad |
last post by:
I have a win2003 server workstation with multiple webs, each web has it's
own ip address. In VS2005, if I select to open an existing web site, select
Local IIS, the dialog correctly displays a...
|
by: bobdydd |
last post by:
Hi Everybody
Access 2000, Outlook 2000 Windows XP
I am running the code below to open Microsoft Outlook from a Command
Button. It works fine until I tried it on a machine that has Office...
|
by: keri |
last post by:
Hi,
I use the below for the user to view their outlook calendar
Sub DisplayInbox()
Dim myolApp As Outlook.Application
Dim myNameSpace As Outlook.NameSpace
Dim myFolder As Outlook.MAPIFolder...
|
by: sreemathy2000 |
last post by:
My requirement is to preload the To,cc, Subject, body ,add an attachement and automatically open the New mail screen of outlook from my web page.
Send option is left to the user. I was able to...
|
by: andyoye |
last post by:
How can I launch Outlook on users machines when they click a button on a web
form (InfoPath)?
Thanks
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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...
|
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,...
| |