PHP Classes

File: system/modules/email/info.xml

Recommend this page to a friend!
  Classes of Mihajlo Siljanoski   Xmodule   system/modules/email/info.xml   Download  
File: system/modules/email/info.xml
Role: Example script
Content type: text/plain
Description: Example script
Class: Xmodule
Modular Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 760 bytes
 

Contents

Class file image Download
<module>
    <name>Email <small>(ver. 2.0+)</small></name>
    <description>Sending email message class.</description>
    <example>
        <init>$email = module('email');</init>
        <return>$email will return object of this simple email class..</return>
        <code>
            <pre>
<?php
               
    $email
= module('email');

   
$email->from_name='John Smith';
   
$email->from_email='j.smith@example.com';
   
$email->message='<p>Hey...,</p><p>This is an test message!</p>Best Regards,<br>John Smith</p>';

   
$email->send('example@example.com');
               
?>
</pre>
        </code>
    </example>
</module>
<author>
    <name>Mihajlo Siljanoski</name>
    <web>https://mk.linkedin.com/in/msiljanoski</web>
</author>