Send Email using ASP.Net (using C#)

ASP.Net has built in class to send email. You can send email with or without authentication. In our previous post we provided sample script to send email from ASP.Net using VB.Net code. In this post, we will provide you sample code to send email from ASP.Net using C# code. Following is the sample code to […]

Send Email using ASP.Net (VB.Net)

ASP.Net has built in class to send email via script. You can send email with or without authentication using ASP.Net namespace System.Net.Mail. Following is the sample code to send mail using ASP.Net (VB.Net):

Make sure to make necessary changes in your script (i.e. SMTP server, email address, password etc.)

Check available PHP modules and PHP limits

If you want to check available PHP modules and their limit (PHP memory, PHP execution time, max_upload size etc.), you can write simple PHP script to check it. Using the following sample code and upload it in your website:

When you access your page, it will show the output as follow: If phpinfo function […]

Send Mail Using CDO for Windows – Script example for CDO

On Windows server, you can send mail using CDO. CDO allows to send email using SMTP authentication as well as without SMTP authentication. Here is the sample code to send email using SMTP authentication using CDO:

You will have to update SMTP server, SMTP username and password in the above sample script.