473,657 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Email and .NET

Hello,

I am trying to format an email and have a .net application open up Outlook
or Outlook Express so that the user can simply click Send and have the
formatted email send from their email account. I am currently doing this
the following way:

Dim sParams As String
Dim TheTo, TheSubject, TheBody As String
TheTo = txtEmail.Text
TheSubject = ""
TheBody = ""
sParams = "mailto:" & TheTo
sParams = sParams & "?subject=" & TheSubject
sParams = sParams & "&body=" & TheBody
System.Diagnost ics.Process.Sta rt(sParams)

The problem this is that it creates a new instance of Outlook every time the
event is fired to create the email. All I want is for a new email to appear
and add the data that I want. After about 6 or 7 emails are created this
way, Outlook freezes up and stops working.

Any suggestions will be greatly appreciated,
This is vb .net.

Chuck
Apr 6 '06 #1
4 1571
Chuck,
I am trying to format an email and have a .net application open up
Outlook or Outlook Express so that the user can simply click Send and
have the formatted email send from their email account. I am
currently doing this the following way:


If you have the possibility, try to send the email directly out of your
application (instead of using any other Email Client)... Just thing
about, if someone uses Outlook Express or Mozilla Thundbird or any other
Mail Client, then your solutions won't work or is at least partly
dependent on the third party client.

Check out System.Web.Mail (on .NET 1.1) or System.Net.Mail (on .NET 2.0).

hth
Markus
Apr 6 '06 #2
Hello,

The application is being made to work with only Outlook or Outlook Express.

Thanks,

Chuck

"Markus" <di************ ***@THISyahoo.d e> wrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
Chuck,
I am trying to format an email and have a .net application open up
Outlook or Outlook Express so that the user can simply click Send and
have the formatted email send from their email account. I am
currently doing this the following way:


If you have the possibility, try to send the email directly out of your
application (instead of using any other Email Client)... Just thing
about, if someone uses Outlook Express or Mozilla Thundbird or any other
Mail Client, then your solutions won't work or is at least partly
dependent on the third party client.

Check out System.Web.Mail (on .NET 1.1) or System.Net.Mail (on .NET 2.0).

hth
Markus
Apr 6 '06 #3
Outlook is an SMTP client, when it comes to sending emails. As Markus told
you, it is not necessary to use Outlook to send an email. Your application
can send it all by itself, using the System.Net.Mail namespace and the
SmtpClient class. See:

http://msdn2.microsoft.com/en-us/lib....net.mail.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
"Charles A. Lackman" <Ch*****@Create ItSoftware.net> wrote in message
news:eO******** ******@TK2MSFTN GP03.phx.gbl...
Hello,

The application is being made to work with only Outlook or Outlook
Express.

Thanks,

Chuck

"Markus" <di************ ***@THISyahoo.d e> wrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
Chuck,
I am trying to format an email and have a .net application open up
Outlook or Outlook Express so that the user can simply click Send and
have the formatted email send from their email account. I am
currently doing this the following way:


If you have the possibility, try to send the email directly out of your
application (instead of using any other Email Client)... Just thing
about, if someone uses Outlook Express or Mozilla Thundbird or any other
Mail Client, then your solutions won't work or is at least partly
dependent on the third party client.

Check out System.Web.Mail (on .NET 1.1) or System.Net.Mail (on .NET 2.0).

hth
Markus

Apr 6 '06 #4
Hello,

Everything is working great.

Thanks for the Help,

Chuck
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:uN******** ******@TK2MSFTN GP05.phx.gbl...
Outlook is an SMTP client, when it comes to sending emails. As Markus told
you, it is not necessary to use Outlook to send an email. Your application
can send it all by itself, using the System.Net.Mail namespace and the
SmtpClient class. See:

http://msdn2.microsoft.com/en-us/lib....net.mail.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.
"Charles A. Lackman" <Ch*****@Create ItSoftware.net> wrote in message
news:eO******** ******@TK2MSFTN GP03.phx.gbl...
Hello,

The application is being made to work with only Outlook or Outlook
Express.

Thanks,

Chuck

"Markus" <di************ ***@THISyahoo.d e> wrote in message
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
Chuck,
I am trying to format an email and have a .net application open up
Outlook or Outlook Express so that the user can simply click Send and
have the formatted email send from their email account. I am
currently doing this the following way:


If you have the possibility, try to send the email directly out of your
application (instead of using any other Email Client)... Just thing
about, if someone uses Outlook Express or Mozilla Thundbird or any other
Mail Client, then your solutions won't work or is at least partly
dependent on the third party client.

Check out System.Web.Mail (on .NET 1.1) or System.Net.Mail (on .NET 2.0).

hth
Markus


Apr 7 '06 #5

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

Similar topics

12
8779
by: Chuck Anderson | last post by:
Can anyone point me in the right direction? I want to use Php to automate confirmation of someone joining an email list by them replying to an email (so they don't have to have a browser?). I will probably use a hyperlink with a unique ID, but I also want to know how to go about reading from a mailbox with Php so I can use an email reply method, too. I'm having trouble finding any kind of tutorial. From the bit of searching I've done,...
4
3011
by: dmiller23462 | last post by:
So here's my problem.....I need to set up different email distributions based on which option in the following Select form has been chosen....For instance if "Putaway" is chosen it needs to email User1@here.whatever and User4@here.whatever but if "Loaded" is chosen it needs to email User2@here.whatever and User3@here.whatever, etc, etc... I'm aware that the only thing that really needs to change is the "Mail.AddAddress" line (at least...
88
12465
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
2
2217
by: BSG-SMTP-Gateway | last post by:
The following message sent by this account has violated system policy: Connection From: 64.253.55.90 From: python-list@python.org To: terriss@birdsall.com, q4dzsAEAAAAA@birdsall.com, zSbxT7FSCIAEAAAAA@birdsall.com, rQEAAAAA@birdsall.com, 20a.9ea7bfe.306372db@birdsall.com, Gslotnick@birdsall.com, chrisbaker@birdsall.com, mshawver@birdsall.com, SJCSmile@birdsall.com, Pugsleydmd@birdsall.com, FredBMaier@birdsall.com, dbosco6896@birdsall.com,...
26
2733
by: libsfan01 | last post by:
Hi all! Can anyone show me how to check and email field on a form for the existence of these two characters. Kind regards Marc
3
2863
by: g0c | last post by:
hi, how to hide or replace email addresses in php mail function with something like "group" so the email addresses to which email is sent are not visible ? i have : $subs = "email1@dot.com, emai2@dot.com, email3@dot.com" $header .= "To : email@notset.com\r\n";
3
2515
by: Erik Johnson | last post by:
THE GOAL: I need to send an email with a simple ASCII text body and an attached HTML file. I have scripts that send basic emails via the smtplib module that don't have any attachements and that seems to work fine. I first looked at the mimetools modules but it says it is depreceated since 2.3, so I started trying to use the email module. Here is a script that basically follows the second example given in section 7.1.13 of the Python...
15
15198
by: Craig Hurley | last post by:
Hello, user@x.com receives an email from user@a.com. I want to forward that email to user@y.com. I want the contents/header to remain intact, with the exception of adding "X-Forwarded-For". In other words, when user@y.com received the email, it will be from user@a.com, but will contain a reference that it was forwarded by user@x.com. I'm piping all email destined for user@x.com to a php script. I've seen some very complicated...
3
8950
by: IGD | last post by:
I don't know if this is the right place to post this or not. If not, could someone direct me elsewhere where I would find more information on how to solve my problem? Thanks! My problem is this: I am writing an application for work. This application sends a basic html email via SMTP to a group. In this group are individual people's emails, but also about 5 other groups. The problem is that the email is only getting received by (or sent...
27
4815
matheussousuke
by: matheussousuke | last post by:
I'm having trouble with e-mail sending, I mean, the website is suposed to send a confirmation email after sign up, but it gets like text plain instead of HTML May someone help me, please? Here's the code <?php require_once 'path_cnfg.php';
0
8403
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8833
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8737
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8509
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7345
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1730
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.