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

send e-mail

I would like to call Microsoft Outlook and put my e-mail address into To: .

All that through code.

Hrcko
Nov 16 '05 #1
6 2176
Hi Hrvoje,

Can you give us a little more information so we can direct a response
better? Are you doing this with ASP, Win forms, Console app, etc...?

If you are using asp try setting a mailto link to something like

<a
href="mailto:pe****@email.com&Cc=copythispe****@em ail.com&Subject=MySubjectGoesHere?"> Mail! </a>

You may be able to automate this by calling Response.Redirect on that link.
You can take a look at the web page below for more formatting options. If
you are wanting to send it via a different method please reply to this post
answering the questions above.

I hope this helps.
-------------------------------
http://www.ianr.unl.edu/internet/mailto.html

Nov 16 '05 #2
I'm using Win Forms.
"Brian Brown" <Br********@discussions.microsoft.com> wrote in message
news:F4**********************************@microsof t.com...
Hi Hrvoje,

Can you give us a little more information so we can direct a response
better? Are you doing this with ASP, Win forms, Console app, etc...?

If you are using asp try setting a mailto link to something like

<a
href="mailto:pe****@email.com&Cc=copythispe****@em ail.com&Subject=MySubjectGoesHere?">
Mail! </a>

You may be able to automate this by calling Response.Redirect on that
link.
You can take a look at the web page below for more formatting options. If
you are wanting to send it via a different method please reply to this
post
answering the questions above.

I hope this helps.
-------------------------------
http://www.ianr.unl.edu/internet/mailto.html

Nov 16 '05 #3
Hi Hrvoje

Drop this code into your app

using System.Diagnostics;

string toEmail = "de**@publicjoe.co.uk";
string subject = "Love the Program";
string body = "Thanks a lot";
string message = string.Format( "mailto:{0}?subject={1}&body={2}", toEmail,
subject, body );

Process.Start( message );

Add this to a linklabel and bobs your uncle. Take a look at the folliwng
link for a full example
http://www.publicjoe.f9.co.uk/csharp/snip/snip07.html

Hope this helps

Publicjoe

C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Ebook at http://www.publicjoe.f9.co.uk/csharp/samples/ebook.html
VB Tutorial at http://www.publicjoe.f9.co.uk/vbnet/vbnet.html
VB Ebook at http://www.publicjoe.f9.co.uk/vbnet/samples/ebook.html
Mirrors at http://www.dowhileloop.com/publicjoe/ and
http://www.publicjoe.justbe.com/

Useful Articles at http://www.madsally.co.uk

"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:cv**********@ls219.htnet.hr...
I would like to call Microsoft Outlook and put my e-mail address into To: ..
All that through code.

Hrcko

Nov 16 '05 #4
Hrvoje,

Can you try this one?

///a reference to System.Web
///using System.Web;
///using System.Diagnostic
Process.Start ("mailto:" + HttpUtility.UrlEncode(no*@non.net)
+ "?subject=Does this helps" + "&body=How do you do?");

I hope this helps?

Cor
Nov 16 '05 #5
Hi Hrvoje,

Take a look at Cor and PublicJoe's examples they should work for you. If
this is not what you are looking for please reply to this post with more
details so we can help you out better.

Good Luck.
Nov 16 '05 #6
Hrcko

This will use the default email client to send email from within your
application. Note that you can extend to include the input parameters to
include BCC and Body of the email.

System.Diagnostics.Process.Start("mailto:yo******@ company.com?cc=yourfriend@
company.com&subject=Testing email " )

Hope this helps
Yonas
"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:cv**********@ls219.htnet.hr...
I would like to call Microsoft Outlook and put my e-mail address into To: ..
All that through code.

Hrcko

Nov 16 '05 #7

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

Similar topics

2
by: Tom Brown | last post by:
Hi, I have what seems to be a simple problem. But I can not for the life of me find a way to send an integer over a socket. The send method will only accept strings. Here is what I am trying to...
9
by: Etienne Charland | last post by:
Hi, there is an application running on a remote desktop (under Citrix ICA, but the same problem applies for RDC or PC Anywhere). Now, I want to send keys to the remote application from a local app....
5
by: Pete Loveall | last post by:
I have a server application that monitors a private local queue for messages. The message sent to it has a label and a response queue defined. It works correctly when the queue is accessed via...
2
by: Fatih BOY | last post by:
Hi, I want to send a report from a windows application to a web page like 'report.asp' Currently i can send it via post method with a context like local=En&Username=fatih&UserId=45&Firm=none...
1
by: Kitchen Bin | last post by:
Hi. I am trying to use Sockets to do multiple Send and Receives via HTTP (not simultaneously). A first pair of Send/Receives works fine and sure enough I receive HTML back, but the next...
0
by: zhimin | last post by:
Hi, I'm writing a program to send large file(100m) through dotnet using TCPListener & TCPClient, I'm sending the file with a ask and response loop: 1. Client send a flag 1 to server indicate it...
1
by: Amadej | last post by:
Hello everyone, I'm having some odd problems with a little program I wrote for sending/receiving bytes across the network. I am using synchronous sockets, and it seems that when I send byte...
1
by: GrantS | last post by:
I need to use a sendkeys key combination to automate the "accept files" that a remote user wants to send to me via Windows messenger. I am using automation to work with Windows Messenger client in...
3
by: ultr | last post by:
Hello, I have read that send() may not send whole message and returns the nuber of bytes sent, so that we can handle the rest of the message. Is it true, because i have tested sending even 1MB...
0
by: Xionbox | last post by:
Hello everybody, The error I have seems very easy to solve, but for some odd reason I can't seem to solve it. Anyways, here's my "setup". I created a server running on localhost:1200 (telnet...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.