Completed
Push — master ( a49d14...9cdc95 )
by Jacob
02:01
created

examples.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?
0 ignored issues
show
Security Best Practice introduced by
It is not recommend to use PHP's short opening tag <?, better use <?php, or <?= in case of outputting.

Short opening tags are disabled in PHP’s default configuration. In such a case, all content of this file is output verbatim to the browser without being parsed, or executed.

As a precaution to avoid these problems better use the long opening tag <?php.

Loading history...
2
3
include_once 'Archangel.class.php';
4
5
// simple example
6
$mail_sent = Archangel::instance()
7
	->addTo('[email protected]', 'Awesome Pants')
8
	->setSubject('Subject')
9
	->setPlainMessage('This is a plain message, yo.')
10
	->send();
11
12
// more detailed example
13
$mail_sent = Archangel::instance()
14
	->addTo('[email protected]', 'Awesome Pants')
15
	->addTo('[email protected]', 'Carly Rae')
16
	->addCC('[email protected]')
17
	->setFrom('[email protected]')
18
	->setReplyTo('[email protected]')
19
	->setSubject('Hey I just met you')
20
	->setPlainMessage('And this is crazy')
21
	->setHTMLMessage("<p>But here's my <b>number</b><br />So call me <b>maybe</b></p>")
22
	->addAttachment('screenshot.jpg', 'image/jpeg', 'some-phone-number.jpg')
23
	->addAttachment('logo.png', 'image/png')
24
	->send();