1. Obtain the PHPMailer from http://secure.mercumaya.net/downloads/phpMailer.zip
2. There are two files in the zip file (class.phpmailer.php and class.smtp.php).
3. Both files must be placed together.
4. Extract the files in a folder call phpmailer.
5. Open notepad and paste the following code to a php file after performing the necessary changes. SMTPServer - The smtp server address (e.g: mail.yourdomainname) EmailID - One of your Email Login ID EmailPassword - Password for the selected Email SenderEmail - Sender Email Address, only from your domain email SenderName - Sender Email Name RecipientEmail - Recipient Sender Email Name RecipientName - Name ReplyEmail - Sender Email Address, only from your domain email ReplyName - Sender Email Name Subject - Subject of the Email MessageBody - Email Message Contents PlainTextBody - Plain Text Message Contents, will display when recipient can't read HTML IsSMTP(); $mail->Host = "SMTPServer"; $mail->SMTPAuth = true; $mail->Username = "EmailID"; $mail->Password = "EmailPassword"; $mail->From = "SenderEmail"; $mail->FromName = "SenderName"; $mail->AddAddress("RecipientEmail", "RecipientName"); $mail->AddReplyTo("ReplyEmail", "ReplyName"); $mail->IsHTML(true); $mail->Subject = "Subject"; $mail->Body = "MessageBody"; $mail->AltBody = "PlainTextBody"; if(!$mail->Send()) { echo "Message could not be sent.
"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } echo "Message has been sent"; ?>
6. You may obtain the sample code that utilise the phpmailer at http://secure.mercumaya.net/downloads/phpMailer.zip
- 14 Users Found This Useful
Related Articles
Is technical support free?
Technical support is available free to all clients. If you are having a problem with your...
Do you offer 24hr 7day a week support?
Our support e-mail address is checked every few hours, every day of week, throughout the...
What happens in an emergency?
In the event of an emergency you can rest assure that we already working on a resolution to...
How do I contact support?
The best way to contact support is to raise a ticket by visiting our helpdesk.
Shared Web Hosting
A shared web hosting service or virtual hosting service or derive host refers to a web hosting...
Powered by WHMCompleteSolution