File: examples/email/example.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil  >  PHP Skeleton Framework  >  examples/email/example.php  >  Download  
File: examples/email/example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 5 years ago
Size: 769 bytes


Class file image Download
#include_once 'config.php';
#include_once 'A/Email.php';
#include_once 'A/Email/Multipart.php';

include_once '../../A/autoload.php';

$email = new A_Email();
$attachment = new A_Email_Multipart();

$emailtext = 'TITLE
This is a text email.'
$emailhtml = '<html>
This is a <b>HTML</b> email.
$attachment->addPart($emailtext, "text/plain;\n\tcharset=\"ISO-8859-1\"");
$attachment->addPart($emailhtml, "text/html;\n\tcharset=\"ISO-8859-1\"");
$body = $attachment->getMessage();
$errmsg = $email->send('', '', 'Example Email', $body);


For more information send a message to info at phpclasses dot org.