locked
How to receive incoming mail mail with asp RRS feed

  • Question

  • User643189141 posted

    Hi,

    How to receive incoming mail mail with asp on my website?

    Regards,

    Dejan

    Thursday, January 27, 2011 6:27 AM

Answers

All replies

  • User2019981500 posted

    Hi

    First of all ,Important  point to understand about Email is that 

    SMTP:is responsible for sending mails

    POP3(Post ofice Protocol is for recieving mail)

    So you need a pop3 client which could help you receive email like Outlook does,.

    after configuring pop3 you can use function like recieve Mail,DeleteMail..


    You can download some opensource POP3 Client(.NET 2.0) to help you implement your own pop3 client project. Here is an example

    POP3 Config with code


    Regards

    shabir

    Thursday, January 27, 2011 6:37 AM
  • User-1283088242 posted

    You cannot receive actual "email" on your site with ASP, but what you can do is create a form for users to write you.

    Then you save the contents of the form in a database. And of course you can then show the contents of the typed form mail when you log on.

    Does this help?

    Thursday, January 27, 2011 7:18 AM
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 27, 2011 7:24 AM
  • User-1831219222 posted
    MailMessage mail = new MailMessage();
    mail.From = "test@..";
    mail.To = "test@..";
    mail.Cc = "test@..";
    mail.Subject = "Test mail";
    
    mail.Body = "Test";
    //to support html tag
    mail.BodyFormat = MailFormat.Html;
    SmtpMail.SmtpServer = "SMTP Mail Server";
    SmtpMail.Send(mail);


     

    Thursday, January 27, 2011 10:19 AM