PHP Classes

File: use_form_url.php

Recommend this page to a friend!
  Classes of YoungHyeong Ryu   PHP Send Mail Class   use_form_url.php   Download  
File: use_form_url.php
Role: Example script
Content type: text/plain
Description: sample for sending mail from url
Class: PHP Send Mail Class
Send email messages with attachments via SMTP
Author: By
Last change:
Date: 9 years ago
Size: 688 bytes
 

Contents

Class file image Download
<?php
header
("Content-Type: text/html; charset=utf-8");
error_reporting(E_ALL ^ E_NOTICE);
ini_set('display_errors', On);


include_once
'class.sendmail.php';
$sendmail = new SendMail();

/*
 * Send mail using php mail function
 */
$sendmail->charset = 'utf-8';//ecu-kr :korean, iso-2022-jp : japaneses
$sendmail->Subject ("String Subject");
$sendmail->From ("Yourname<Account@Domain>");
$sendmail->To (preg_split("/[;,]+/", "Account@Domain")); //maill addresses will be split ";" or ","
$sendmail->Priority (3);

$params = array("url_template"=>"http:// where your_mail_form is");
                       
$sendmail->bodyFromUrl ($params);

$sendmail->Send();//Send mail