Click to See Complete Forum and Search --> : Open a website
usamaalam
Feb 14th, 2005, 03:44 AM
Hello everybody,
I need to send an email from my C# application. For this purpose, I write the code for sending mail through CDONTS in ASP and upload the page to the web server. Now I want to call this page from my C# application to send email. How do I browse this site in such a way that user does not view it.
Thanks.
MrPolite
Feb 16th, 2005, 12:32 AM
Hello everybody,
I need to send an email from my C# application. For this purpose, I write the code for sending mail through CDONTS in ASP and upload the page to the web server. Now I want to call this page from my C# application to send email. How do I browse this site in such a way that user does not view it.
Thanks.uuh if you want a browser page to be opened then you just create a Process object and do Process.Start ("mailto... whatnot")
somethingl like that
if you wanna download a webpage look into Net.WebClient
usamaalam
Feb 16th, 2005, 12:40 AM
Is there something in .NET to send an email ??
Sgt-Peppa
Feb 16th, 2005, 02:34 AM
Is there something in .NET to send an email ??
In the Namespace System.Web.Mail there is a SMTP Mail Class! Not sure so if it fits your needs?
using System.Web.Mail;
SmtpMail.SmtpServer=myServer;
SmtpMail.Send(from,to,subject,message);
Stephan
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.