Results 1 to 4 of 4

Thread: Open a website

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Open a website

    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.

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: Open a website

    Quote Originally Posted by usamaalam
    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
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Re: Open a website

    Is there something in .NET to send an email ??

  4. #4
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Re: Open a website

    Quote Originally Posted by usamaalam
    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?

    Code:
    using System.Web.Mail;
    
    SmtpMail.SmtpServer=myServer;
    SmtpMail.Send(from,to,subject,message);
    Stephan
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width