PHP 8.1.33
Preview: testmail.php Size: 1.19 KB
/home/jambtst2015/public_html/giraffeng.com/admin/mail/testmail.php

<?php
require 'class.phpmailer.php';

$mail = new PHPMailer;

$mail->IsSMTP();                                      // Set mailer to use SMTP
$mail->Host = 'smtp.gmail.com.';  // Specify main and backup server
//$mail->Host = 'mail.taxiandcab.co.uk';
$mail->SMTPAuth = true;                               // Enable SMTP authentication
$mail->Username = 'dipanjan.brahma@gmail.com';                            // SMTP username
$mail->Password = '9038557237';                           // SMTP password
//$mail->Username = 'support@taxiandcab.co.uk';
//$mail->Password = 'teymen123'; 
//$mail->port = '25';
$mail->SMTPSecure = 'tls';                            // Enable encryption, 'ssl' also accepted
$mail->From = 'dipanjan.brahma@gmail.com';
$mail->FromName = 'Mailer';
$mail->AddAddress('sayantan@infosolz.com', 'Josh Adams');  // Add a recipient
$mail->Subject = 'Here is the subject';
$mail->Body    = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';

if(!$mail->Send()) {
   echo 'Message could not be sent.';
   echo 'Mailer Error: ' . $mail->ErrorInfo;
   exit;
}
else{
	echo 'Message sent successfully.';
	print_r($mail);
}


?>
   

Directory Contents

Dirs: 5 × Files: 10

Name Size Perms Modified Actions
docs DIR
- drwxr-xr-x 2024-11-22 17:53:01
Edit Download
examples DIR
- drwxr-xr-x 2024-11-22 17:53:01
Edit Download
extras DIR
- drwxr-xr-x 2025-10-16 05:26:58
Edit Download
language DIR
- drwxr-xr-x 2024-11-22 17:53:01
Edit Download
test DIR
- drwxr-xr-x 2025-10-13 03:11:30
Edit Download
59 B lrw-r--r-- 2024-11-22 17:53:01
Edit Download
669 B lrw-r--r-- 2024-11-22 17:53:01
Edit Download
21.46 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
93.78 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
10.34 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
32.38 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
845 B lrw-r--r-- 2024-11-22 17:53:01
Edit Download
25.80 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
6.51 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download
1.19 KB lrw-r--r-- 2024-11-22 17:53:01
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).