Home All Groups Group Topic Archive Search About

Sending E-Mail from User's Machine

Author
10 Jan 2006 12:55 AM
Dennis
Is there any way that I can send an e-mail from a user's machine when he
clicks on a button ("Contact Us") in my applicaiton that he is running? 
Bottom line is that I need to get his Mail Server name from VB.New code.
--
Dennis in Houston

Author
10 Jan 2006 3:00 AM
Hector Minaya [VB.Net MVP]
Try this,

http://www.c-sharpcorner.com/Internet/SendingEmailsThroughOutlookCB.asp

Show quoteHide quote
"Dennis" <Den***@discussions.microsoft.com> wrote in message
news:1BFCF712-6ACF-42B0-97B7-9D2698407A48@microsoft.com...
> Is there any way that I can send an e-mail from a user's machine when he
> clicks on a button ("Contact Us") in my applicaiton that he is running?
> Bottom line is that I need to get his Mail Server name from VB.New code.
> --
> Dennis in Houston
Author
10 Jan 2006 10:44 AM
Carlos J. Quintero [VB MVP]
Hi Dennis,

You can use

System.Diagnostics.Process.Start("mailto:***@yyy.com")

to open the new message window of his e-mail client.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET,
VB6, VB5 and VBA
You can code, design and document much faster in VB.NET, C#, C++ or VJ#
Free resources for add-in developers:
http://www.mztools.com


Show quoteHide quote
"Dennis" <Den***@discussions.microsoft.com> escribió en el mensaje
news:1BFCF712-6ACF-42B0-97B7-9D2698407A48@microsoft.com...
> Is there any way that I can send an e-mail from a user's machine when he
> clicks on a button ("Contact Us") in my applicaiton that he is running?
> Bottom line is that I need to get his Mail Server name from VB.New code.
> --
> Dennis in Houston
Author
10 Jan 2006 11:25 AM
Herfried K. Wagner [MVP]
"Dennis" <Den***@discussions.microsoft.com> schrieb:
> Is there any way that I can send an e-mail from a user's machine when he
> clicks on a button ("Contact Us") in my applicaiton that he is running? 
> Bottom line is that I need to get his Mail Server name from VB.New code.

Opening files, applications, Web documents, and the mail client
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage&lang=en>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
11 Jan 2006 2:00 AM
Dennis
Thanks for replies.  Using Outlook won't work because the end user may not
have outlook.
--
Dennis in Houston


Show quoteHide quote
"Herfried K. Wagner [MVP]" wrote:

> "Dennis" <Den***@discussions.microsoft.com> schrieb:
> > Is there any way that I can send an e-mail from a user's machine when he
> > clicks on a button ("Contact Us") in my applicaiton that he is running? 
> > Bottom line is that I need to get his Mail Server name from VB.New code.
>
> Opening files, applications, Web documents, and the mail client
> <URL:http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage&lang=en>
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>
>
Author
11 Jan 2006 6:34 PM
Crouchie
One thing that you need to remember is if the e-mail is outbound & using you
default SMTP then make sure that the ISP don't pick it up as SPAM. Some
ISP's (like AOL etc.) do.

Crouchie1998
BA (HONS) MCP MCSE