Jasmine Wiki |
|
|
Navigation Wiki HomeInstalling Framework Configuring jasmine.php Database Module MySQL Mysqlix ODBC MSSQL Database Objects Datagrid Datasource Repeater SQLQuery Files Module File FileSystem FTP Attachment ExcelFile Graphics Module Color Image Graph Miscellaneous Classes: NumbWordter Poll Shield XMLParser Functions: General Functions HTML Functions Validation Functions TrackThisPage
|
Email class can be used for composing and sending emails. Instantiation Class instantiation is normal. $m=new email; By default, the content type is HTML. You can change it using $type property after instantiation. $m->type='text'; Setting headers Headers constitute, From, To, CC and BCC fields. These can be set using relevant properties. $m->from='ijk@xyz.com'; $m->to='abc@xyz.com'; $m->cc='pqr@xyz.com'; $m->bcc='asdf@xyz.com'; The emails in any of these fields can be comma seperated. $m->to='asdf@xyz.com, qwer@xyz.com' ; Composing the message Subject can be set using the $subject property. $m->subject='Sample subject for the mail'; $message property handles the message that has to be sent. If the default mail type is set html, you can include HTML tags within the message. $m->message=' Dear Krishna, As per our discussion on the phone, we will meet at 10.00 AM. Thank you. Srikanth M '; Auto-attaching Footer A footer can be attached to the email using the $footer property. This will be attached on the bottom of the mail. $m->footer='Note: This is system generated mail. Please do not reply'; Sending email The composed email can be sent using send() method. $m->send(); PHP functions used: - While sending email, mail() function is used |
(c) 2008 Jasmine Framework. A Creation by Krishna Srikanth. |
|