Knowledgebase

Sending Email via C# and ASP.NET

Add the following to your web.config file:

  <system.net>
    <mailSettings>
      <smtp from="youremailfromaddress@example.com">
        <network host="mail.example.com" password="password" userName="username@example.com" port="25" />
      </smtp>
    </mailSettings>
  </system.net>
  • 1 Users Found This Useful

Was this answer helpful?

Related Articles

Publish a .NET Core site on Plesk

Below are the recommended steps to upload your website on our Plesk servers for .NET Core...

Setting up .NET Core on Unmanaged Windows VPS

At times after publishing .NET Core Web Application to a Windows Server web server it may not...

How to Enable ASP.NET Debugging in Plesk

here may be times you need to see more logging or debugging information for your ASP.NET...

Do your windows shared hosting accounts support MVC4 and MCV5?

Only our Plesk Windows Shared Hosting accounts support MVC4 and MCV5 applications. When you...

ASP.NET Session Timeout

This in-depth analysis helps you know the problem and workaround when you experienced ASP.NET...