473,216 Members | 1,323 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,216 software developers and data experts.

Outlook integration in vb.net Web development

I'm posting this again, as no answer to the first post....

I would like to integrate Outlook into my vb.net web page, so that when I
send an email (which I can successfully do now), it shows up in the sender's
Outlook Sent Items.

How do I do that?

Thanks.

Dec 20 '05 #1
14 4896
Gerhard,

That depends how you sent the email. If you use a kind of serverside smtp
than it will never show up. If you use the default mailclient with a little
bit of javascript starting by registerscript than it goes automaticly.

I hope this helps,

Cor

"Gerhard" <ac***@community.nospam> schreef in bericht
news:C2**********************************@microsof t.com...
I'm posting this again, as no answer to the first post....

I would like to integrate Outlook into my vb.net web page, so that when I
send an email (which I can successfully do now), it shows up in the
sender's
Outlook Sent Items.

How do I do that?

Thanks.

Dec 20 '05 #2
Thanks.

I'm using System.Net.Mail.SmtpClient. If that isn't what I should be using,
what should I use?

Do you have an example of the Javascript needed to get it to show up in
Outlook?

Bob

"Cor Ligthert [MVP]" wrote:
Gerhard,

That depends how you sent the email. If you use a kind of serverside smtp
than it will never show up. If you use the default mailclient with a little
bit of javascript starting by registerscript than it goes automaticly.

I hope this helps,

Cor

"Gerhard" <ac***@community.nospam> schreef in bericht
news:C2**********************************@microsof t.com...
I'm posting this again, as no answer to the first post....

I would like to integrate Outlook into my vb.net web page, so that when I
send an email (which I can successfully do now), it shows up in the
sender's
Outlook Sent Items.

How do I do that?

Thanks.


Dec 20 '05 #3
Gerhard,

It is in VB.net code
Button1.Attributes("onClick") =
"window.location='mailto:n...@non.com?subject= Cor demo&body=I hope this
helps?';"
It is C#

Almost the same with [] for the collection of attributes and a ; behind the
last aphostrophe.

I hope this helps a little bit?
Cor

"Gerhard" <ac***@community.nospam> schreef in bericht
news:12**********************************@microsof t.com...
Thanks.

I'm using System.Net.Mail.SmtpClient. If that isn't what I should be
using,
what should I use?

Do you have an example of the Javascript needed to get it to show up in
Outlook?

Bob

"Cor Ligthert [MVP]" wrote:
Gerhard,

That depends how you sent the email. If you use a kind of serverside smtp
than it will never show up. If you use the default mailclient with a
little
bit of javascript starting by registerscript than it goes automaticly.

I hope this helps,

Cor

"Gerhard" <ac***@community.nospam> schreef in bericht
news:C2**********************************@microsof t.com...
> I'm posting this again, as no answer to the first post....
>
> I would like to integrate Outlook into my vb.net web page, so that when
> I
> send an email (which I can successfully do now), it shows up in the
> sender's
> Outlook Sent Items.
>
> How do I do that?
>
> Thanks.
>


Dec 20 '05 #4
Thanks for the javascript.

So using System.Net.Mail.SmtpClient there is no way to get this into an
Outlook mail sent box (the user mailbox is on the same network as the web
server)?

Thanks.

Bob

"Cor Ligthert [MVP]" wrote:
Gerhard,

It is in VB.net code
Button1.Attributes("onClick") =
"window.location='mailto:n...@non.com?subject= Cor demo&body=I hope this
helps?';"
It is C#

Almost the same with [] for the collection of attributes and a ; behind the
last aphostrophe.

I hope this helps a little bit?
Cor

"Gerhard" <ac***@community.nospam> schreef in bericht
news:12**********************************@microsof t.com...
Thanks.

I'm using System.Net.Mail.SmtpClient. If that isn't what I should be
using,
what should I use?

Do you have an example of the Javascript needed to get it to show up in
Outlook?

Bob

"Cor Ligthert [MVP]" wrote:
Gerhard,

That depends how you sent the email. If you use a kind of serverside smtp
than it will never show up. If you use the default mailclient with a
little
bit of javascript starting by registerscript than it goes automaticly.

I hope this helps,

Cor

"Gerhard" <ac***@community.nospam> schreef in bericht
news:C2**********************************@microsof t.com...
> I'm posting this again, as no answer to the first post....
>
> I would like to integrate Outlook into my vb.net web page, so that when
> I
> send an email (which I can successfully do now), it shows up in the
> sender's
> Outlook Sent Items.
>
> How do I do that?
>
> Thanks.
>


Dec 20 '05 #5
Hi

The Smtp Client runs the SMTP approach, but outlook's message which running
with Exchange will run MAPI approach.
So the System.Net.Mail.SmtpClient did not go in the MAPI side.

Also for your scenario, you may also try the outlook automation.

819398 How to automate Outlook and Word by using Visual C# .NET to create a
pre-populated e-mail message that can be edited
http://support.microsoft.com/default...b;EN-US;819398

182614 OL98: Programming Examples for Referencing Items and Folders
http://support.microsoft.com/default...b;EN-US;182614
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 21 '05 #6
Thanks. Maybe I am having a blonde day, but I still don't see how set this
up in a web app (the examples deal with Windows apps). I don't find any
references that can be added to connect to Outlook.

I need to be able to interface with Outlook (on the same intranet as the web
server) from a vb.net web app.

Can you help?

Thanks.

Bob

""Peter Huang" [MSFT]" wrote:
Hi

The Smtp Client runs the SMTP approach, but outlook's message which running
with Exchange will run MAPI approach.
So the System.Net.Mail.SmtpClient did not go in the MAPI side.

Also for your scenario, you may also try the outlook automation.

819398 How to automate Outlook and Word by using Visual C# .NET to create a
pre-populated e-mail message that can be edited
http://support.microsoft.com/default...b;EN-US;819398

182614 OL98: Programming Examples for Referencing Items and Folders
http://support.microsoft.com/default...b;EN-US;182614
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 21 '05 #7
Gerhard,

On Internet I dont believe Outlook interop will work, however now you write
Intranet than is this the webpage to look for.

http://msdn.microsoft.com/msdnmag/is...h/default.aspx

I hope this helps a little bit?

Cor
Dec 21 '05 #8
Hi,

Thanks, but this is still talking about windows apps. I need to be able to
code it in a web application. It seems to me that since the code is running
on the same intranet as the exchange server, there should be some way to
integrate with it.

Sorry to keep bugging you....

Bob

"Cor Ligthert [MVP]" wrote:
Gerhard,

On Internet I dont believe Outlook interop will work, however now you write
Intranet than is this the webpage to look for.

http://msdn.microsoft.com/msdnmag/is...h/default.aspx

I hope this helps a little bit?

Cor

Dec 21 '05 #9
Hi Bob,

I am sorry if I have any misunderstanding.

Yes, you are right, we did not recommend automation Outlook in ASP.NET(web
application) directly, it is an unsupported approach.
But we commonly can do the outlook automation in the client side, e.g. in
the script of the web page.

Based on my understanding, your web application will send a mail via
certian user's account. If this is a defined user account, e.g. user A,
then the sent mail should be put into the user A's outlook sent items
folder, am I right? But if another user B access the asp.net page, and send
mail, then under whose account, the mail will be sent, and where the sent
items message will be put into, A or B?

So I think maybe we can put the send mail action at the client side. So
that if user A access web page and automation outlook at client side to
send mail, after doing so, a sent item will occurred in the sent item
folder. So did user B.

As I said before, when outlook is working with Exchange, it goes the MAPI
way which is different from the SMTP way when we use
System.Net.Mail.SmtpClient. So if you send mail via SMTP server in your
ASP.NET web application server side (outlook can work with SMTP), the
outlook has no idea about that the mail has been sent.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 22 '05 #10
Gerhard,
Thanks, but this is still talking about windows apps. I need to be able
to
code it in a web application. It seems to me that since the code is
running
on the same intranet as the exchange server, there should be some way to
integrate with it.


No the page goes about using Windows forms controls (or none) on a
webapplication and the security problems you have to overcome with that (You
are reaching the clients disk).

Cor
Dec 22 '05 #11
Thanks for getting back to me.

Basically, there is only one account that will be sending from the server
side (the one that sends out password updates, and things like that), and my
client would like copies of the emails that are sent in the administrator's
sent mail box. Right now, I am sending the email using smtp. Is there a
way, using ODBC or something, that I could also put a copy into the
administrators Sent Items?

I appreciate your help.

""Peter Huang" [MSFT]" wrote:
Hi Bob,

I am sorry if I have any misunderstanding.

Yes, you are right, we did not recommend automation Outlook in ASP.NET(web
application) directly, it is an unsupported approach.
But we commonly can do the outlook automation in the client side, e.g. in
the script of the web page.

Based on my understanding, your web application will send a mail via
certian user's account. If this is a defined user account, e.g. user A,
then the sent mail should be put into the user A's outlook sent items
folder, am I right? But if another user B access the asp.net page, and send
mail, then under whose account, the mail will be sent, and where the sent
items message will be put into, A or B?

So I think maybe we can put the send mail action at the client side. So
that if user A access web page and automation outlook at client side to
send mail, after doing so, a sent item will occurred in the sent item
folder. So did user B.

As I said before, when outlook is working with Exchange, it goes the MAPI
way which is different from the SMTP way when we use
System.Net.Mail.SmtpClient. So if you send mail via SMTP server in your
ASP.NET web application server side (outlook can work with SMTP), the
outlook has no idea about that the mail has been sent.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 22 '05 #12
Hi

Because the SMTP mail is different from the MAPI mail, I suggest you try
use WebDav to send email via Exchange server which will be integrated with
outlook.
313128 How to send an e-mail message by using WebDAV in Visual C# .NET
http://support.microsoft.com/default...b;EN-US;313128

290407 How To Use COPY in WebDAV to Copy a Mail Item to Another Folder
http://support.microsoft.com/default...b;EN-US;290407

290197 How To Use MOVE in WebDAV to Move a Mail Item to Another Folder
http://support.microsoft.com/default...b;EN-US;290197

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 26 '05 #13
Thank you. This looks like it will do what I need.

""Peter Huang" [MSFT]" wrote:
Hi

Because the SMTP mail is different from the MAPI mail, I suggest you try
use WebDav to send email via Exchange server which will be integrated with
outlook.
313128 How to send an e-mail message by using WebDAV in Visual C# .NET
http://support.microsoft.com/default...b;EN-US;313128

290407 How To Use COPY in WebDAV to Copy a Mail Item to Another Folder
http://support.microsoft.com/default...b;EN-US;290407

290197 How To Use MOVE in WebDAV to Move a Mail Item to Another Folder
http://support.microsoft.com/default...b;EN-US;290197

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 26 '05 #14
Hi,

Thanks for your quickly reply!
You are welcomed!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 27 '05 #15

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

Similar topics

3
by: Kurt | last post by:
Hi We are developing an off-the-shelf software suite for a certain business sector. Most of the program is simply a GUI on top of some .mdb files. Its a .net application written in c# One...
0
by: Stylus Studio | last post by:
DataDirect XQuery(TM) is the First Embeddable Component for XQuery That is Modeled after the XQuery API for Java(TM) (XQJ) BEDFORD, Mass.--Sept. 20, 2005--DataDirect Technologies...
1
by: Iain Miller | last post by:
Currently using & developing a new application in A97. This app has a lot of Name & Address information in it. A lot of that information will be duplicated in Outlook & I suddenly wondered if its...
2
by: Gerhard | last post by:
I would like to integrate Outlook into my vb.net web page, so that when I send an email (which I can successfully do now), it shows up in the sender's Outlook Sent Items. How do I do that? ...
2
by: Pieter | last post by:
Hi, I'm using a thight integration with Outlook 2003 (with an Exchange server) in my VB.NET (2005) application. Until now I'm using the Outlook Object Model, but it appears to be very slow, and...
1
by: YellowfinTeam | last post by:
Marketplace: Yellowfin reporting 3.1 with BIRT Integration Yellowfin is proud to announce the release of 3.1. The major theme of this release is enhanced integration capability. We have...
3
by: Mike P | last post by:
Is it possible to incorporate Outlook in your web app so that you can view your Inbox from your web app? And if so, does anybody have any good links? *** Sent via Developersdex...
0
by: Ben Grimwade | last post by:
Hi, im developing an Application that integrates with Outlook by creating an appointment in there calender. The code in question is below Dim appt As Outlook.AppointmentItem obj =...
5
by: John | last post by:
Hi I have an Outlook add-in solution which includes a setup project. If I install the Outlook add-in by right clicking on the setup project and sleeting Install then the add-in gets installed...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.