Login   Register  
PHP Classes
elePHPant
Icontem

File: arioch_class_demo.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Massimo Squillace  >  Arioch Mail  >  arioch_class_demo.php  >  Download  
File: arioch_class_demo.php
Role: Example script
Content type: text/plain
Description: A snippet to test the mail() replacement
Class: Arioch Mail
Send e-mail messages via SMTP
Author: By
Last change:
Date: 6 years ago
Size: 12,472 bytes
 

Contents

Class file image Download
<?php
/**
 * This demo doesn't include arioch_class_sample.inc, on the grounds
 * that it has been done by auto_prepend.php .
 * Insert a require_once statement if this is not the case, then
 * modify the To:, Cc:, Bcc:, From:, and -f addresses as needed.
 *
 * PHP's mail() can send complex messages, but you have to correctly
 * format them in advance; by following the relevant RFCs (e.g. RFC 1521)
 * one can readily send HTML, multiple attachments, PDFs etc.
 *
 * The input for the demo was built by a third-party, Zend Guard encoded
 * application that insisted on using mail(); after having rebuilt PHP
 * without mail() support it was child's play to var_export() the 
 * parameters to a fake mail() replacement so they could be used in
 * this example.
 */

$a = array (
  'to' => 'recipient1@fake.org',
  'subject' => 'A small JPG',
  'message' => '--=_5729c382b137eb0e20f4e5d8df3c3d02
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

Sending a JPG attachment
--=_5729c382b137eb0e20f4e5d8df3c3d02
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="wallpaper.jpg"

/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAQCAwMDAgQDAwMEBAQEBQkGBQUFBQsICAYJDQsNDQ0L
DAwOEBQRDg8TDwwMEhgSExUWFxcXDhEZGxkWGhQWFxb/2wBDAQQEBAUFBQoGBgoWDwwPFhYWFhYW
FhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhb//gAQVmVnYXRhdGl2
ZSBGb2f/wAARCAD/AP8DASIAAhEBAxEB/8QAGwAAAgMBAQEAAAA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bcDiSAfiFIVI41kg54+TAvV
x7uPiNIG28kyuoAKAgc+YJKlg3UTFQU5AEuEG4Fe8Kib0I8iE0KAXZI+n/sRZCkHTSVgKWzuA5lr
7MDYp48zmsYEj5gmGZShkL6hjziZ9i2LySQCZrPTmrdjzA2aMumfiYVxbM5Fz94VFxGlpATGBkfa
CdSG7RWjU6BnEq6AnOI1p6dw3S1mnB+AY6izJCar4EaFYCj8czkoVTktmRqbAF4mSoAq49xH3l1A
CytYLOMDJJ4EYbT3ICSoOO4B5ECWLBVgHyq5C8faKWtkn7x21La8FkIDdsiAtpzlh5gd+ma+AVzj
vIYbu4nEEHBnAFu0H9EUno0eq9Mu0+x+6MO/gHyJFVTnSekg3NkHE9IqlENNyh627j4kJ0/TE7h2
/wByvT4UcLeBzp1xbSISArqoDCN6axHBwRmJKUVcVjAAxO0xIbiURVFtScO1bqGU+DK5RatqdviX
1hBPaLt2mNRWwqe45lFyO3aSeVJkJ2ijMU6np1yL1XOPqEEEGQq9poOVNTbvpxzFkrxj7eYKEaO9
BAvbmQah8Qwksv8AmZo1APSGORKGkjJwPwYw6tjjsII9jAYWyDdkgDiSpCgngZnWKAePEpZnETTA
ywsXk55haGRiB3MUxmOaKsBcjknzNF2CwwC45AxK27dvtMs/EEe0LGQMoMkxbVL7u0bkOA3cQMLF
9BwxB7Rj0gWJIlK12tGF4TcYyeBUhPUptPbiJakHB4mrftYYMTtqyh+01WhWsiekJW9SvfxNbSsT
dgjIbvFdLSqDee/YTV6dUFp9TAJM0U0GKYt1erdpfgg4zjvMizTXJU1jKQo7E+Z6PWUtbonK4BUh
h9sQdLU9T0hoI2WqO2OIWrYHGzyunUNeA/kzf0nTKDXmzz8TH6pp202oK/2nvNHplt19SV5zj5gj
SwxYKnk//9k=
--=_5729c382b137eb0e20f4e5d8df3c3d02--
',
  'headers' => 'MIME-Version: 1.0
From: sender@fake.org
Cc: recipient2@fake.org
Bcc: hidden@foobar.net
Content-Type: multipart/mixed;
        boundary="=_5729c382b137eb0e20f4e5d8df3c3d02"
Message-ID: <k4rg37.wmq9b@pkglej.llqdjit>',
  'params' => '-fenvelope@fake.org'
);

$status = mail($a['to'], $a['subject'], $a['message'], $a['headers'], $a['params']);

echo "<br>\n$status\n<br>";
?>