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 = "[email protected]"; $mail->cc = "Mr.Surachai Sirisart<[email protected]>"; $mail->bcc = "[email protected]"; $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("[email protected]"); $mail->send("[email protected],[email protected],[email protected]"); ?> </body> </html>
Create a php file and save to path root-path/myphp/
Run
http://localhost/myphp/php_sendmail_mimemail.php
Screenshot
.
.
.