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