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

Validation of viewstate MAC failed

To solve this you need to add a machinekey in web.config fileTo generate a machine key please...

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...

User not local; please try a different path. when trying to send through your form on plesk

User not local; please try a different path. The server response was: Sender address is not valid...

Can I use ASP.NET State Service?

ASP.NET state service is not enabled due to the fact on shared hosting it keeps the session alive...

Do your windows shared hosting accounts support MVC4 and MCV5?

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