web 2.0

How to use PHP & Send Email Class (MIMEMAIL V 1.5)

How to use PHP & Send Email Class (MIMEMAIL V 1.5) This the tutorial/example a scripts how to use PHP and send mail/email Using MIMEMAIL Class from php Scirpt.

ShotDev Focus:
- PHP & Send Mail (Using MIMEMAIL Class)

Example

php_sendmail_mimemail.php


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<?
require_once("mimemail.inc.php");

$mail = new MIMEMAIL("HTML"); // HTML Format

$mail->senderName = "Mr.Weerachai Nukitram";
$mail->senderMail = "webmaster@shotdev.com";
$mail->cc = "Mr.Surachai Sirisart<srachai@shotdev.com>";
$mail->bcc = "webmaster@shotdev.com";

$mail->subject = "Test Send Mail";

$mail->body = "My Body & <b>My Description</b>"; // OR: $mail->body = "path_to_file/filename";

$mail->attachment[] = "shotdev/myfile.zip";
$mail->attachment[] = "shotdev/myfile2.zip";

$mail->create();

//*** To ***//
$mail->send("member@thaicreate.com");
$mail->send("member2@thaicreate.com,member3@thaicreate.com,member4@thaicreate.com");

?>
</body>
</html>

Create a php file and save to path root-path/myphp/

Run
http://localhost/myphp/php_sendmail_mimemail.php

Screenshot

PHP Send Mail (MIMEMAIL Class)

.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.