Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 25th, 2005, 11:33 PM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default sending email from desktop application

Posted - 07/21/2003 : 12:46:59 PM


--------------------------------------------------------------------------------

Hi,

I am developing s desktop windows application using VB.NET. I need to get the application to send an email with attached text file. Users of the application do not have a SMTP server, they only have a single PC with a certain email system (such as Outlook, outlook express etc). How can we implement this in VB.Net windows application?

Any help will be appreciated.

Thanks

sandeep

sandeep
 
Old August 26th, 2005, 01:39 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

For Outlook (not express), you will have to add a reference to the Outlook object library. It is available through the "COM" tab in the "Add Reference" dialog box. It is "Microsoft Outlook [Version # - mine is 11.0] Object Library".

It should be pointed out that users will have to have Outlook installed on their machine to use that functionality. I also believe they will need the same version that you are programming in.

Our company has tested a product that was developed externally that integrates with Outlook. It works on the XP version, but not on 2003. Some of the more basic commands you may be able to get away with but I would expect a few errors if you don't account for other versions.

J
 
Old September 2nd, 2005, 02:48 AM
Authorized User
 
Join Date: Jul 2005
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To send mail from a .NET application, you can use System.Web dll and use System.Web.Mail namespace to send mails.

You may like to check out http://www.systemwebmail.com/ for lot of examples and troubleshooting tips.

Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At: http://deepak.blogdrive.com/
 
Old September 2nd, 2005, 02:49 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 540
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Quote:
quote:Originally posted by deepak.vasudevan
 To send mail from a .NET application, you can use System.Web dll and use System.Web.Mail namespace to send mails.

You may like to check out http://www.systemwebmail.com/ for lot of examples and troubleshooting tips.

Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At: http://deepak.blogdrive.com/
You will still need an SMTP server or relay to use this...





Similar Threads
Thread Thread Starter Forum Replies Last Post
Big Desktop Database Application abhijitbk WinForms/Console Application Design 0 July 24th, 2008 07:54 AM
security for Desktop application mattphung Pro VB.NET 2002/2003 5 May 30th, 2008 12:32 PM
how to use css in C#(desktop application) ahmad_diab85 C# 1 December 28th, 2006 12:56 PM
send email desktop application vipinpaliwal1980 VB.NET 2002/2003 Basics 0 April 19th, 2006 10:54 PM
Sending email from VB application Dmitriy Pro VB 6 0 November 29th, 2004 04:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.