| Quick Search |
< ? php
//define the receiver of the email
$to = ‘youremail@testmail.com’;
//define the subject of the email
$subject = ‘Test HTML email’;
//create a boundary string. It must be unique
//so we use the MD5 algorithm to generate a random hash
$random_hash = md5(date(‘r’, time()));
//define the headers we want passed. Note that they are separated with … Read More
This article demonstrate that how to send a mail in aspl.net using your gmail account. You can also use other mail account as follow these instructions.
However, one thing the function can’t do is SSL authentication. Lets add that:
public static void SendMail(string sHost, int nPort,
string sUserName, string sPassword, string sFromName,
string sFromEmail, … Read More
Asp.net provide a simple way to sending mail. You can implement mail code in you application following type.
using System.Web.Mail;
public partial class contact_us : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
sendmailfunc();
}
public void sendmailfunc()
{
string text = “”;
text = text + “Hello ! this is a … Read More
search engine marketing company India that offers affordable seo services