Sending Emails in ASP.NET 2.0

Posted on 2006-05-16
Last Modified: 2010-04-11
What is the best way to send emails in ASP.NET 2.0?  I am sending through a remote SMTP server, so I need to be able to pass a login and password... My ISP wants my email as the login.

Also, do you recommend storing the bodies of email messages in a RESX file?

Thank you,

Question by:stankstank
    LVL 32

    Accepted Solution

    LVL 32

    Assisted Solution

    Here's another example which uses the .NET 2.0 SmtpClient class:
    LVL 1

    Assisted Solution


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    This story has been written with permission from the scammed victim, a valued client of mine – identity protected by request.
    Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now