Email

Quick Search

Enable smtp auth in PHPMailer

September 28th, 2010 by admin
No comments »

First download the PHPMailer class file form the site http://phpmailer.sourceforge.net
Save it as a php-file in the same directory your own script should.
Include the script in your code.

require(“class.phpmailer.php”);
$mail = new PHPMailer();

Example:

$mail = new PHPMailer(); //Create PHPmailer class
$mail->From = “youremail@yourdomain.com”; //Sender address
$mail->FromName = “Name to Display “; //The name that you’ll … Read More

Posted in Email
No comments »

Send HTML formatted mail in php

April 9th, 2010 by admin
12 comments »

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

Posted in Email
12 comments »

Send mail from ASP.NET using your gmail account

February 27th, 2010 by admin
14 comments »

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

Posted in Email
14 comments »

Sending Email with ASP.NET

February 27th, 2010 by admin
No comments »

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

Posted in Email
No comments »