-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathREADME
45 lines (30 loc) · 1.62 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
SMTP Email Library
------------------------------------
Version: 1.1
Author: Alistair Kearney (alistair@symphony-cms.com)
Build Date: 12th Feb 2010
Requirements: Symphony 2.0.6 or above
Establishes a direct SMTP connection with target email server rather than rely on PHP's flaky mail() function.
A replacement for the built in "Send Email" functionality of Symphony's core. Includes an event filter as well as a class for developers to use. This extension makes use of the PEAR Mail library.
[INSTALLATION]
1. Upload the 'smtp_email_library' folder in this archive to your Symphony 'extensions' folder.
2. Enable it by selecting the "SMTP Email Library", choose Enable from the with-selected menu, then click Apply.
Note: If your server already has PEAR installed, you may need to remove the folder "extension/smtp_email_library/lib/pear" otherwise class name classes could occur.
[CHANGE LOG]
1.1 - Fixed some small bugs that appear when using Symphony 2.0.7RC1
1.0 - Initial Release
[USAGE]
- Add the "Send Email via Direct SMTP Connection" to your events and follow the documentation that gets added to your Event.
- Developers can include extensions/smtp_email_library/lib/class.email.php. Use the following example code:
$email = new LibraryEmail;
$email->to = sprintf('%s <%s>', 'Fred Smith', 'fred@smith.com');
$email->from = sprintf('%s <%s>', 'You', 'you@yoursite.com');
$email->subject = 'Test Email;
$email->message = 'Blah Blah Blah, this is the email body'
$email->setHeader('Reply-To', 'noreply@mysite.com');
try{
$email->send();
}
catch(Exception $e){
die("Oh Oh! Something failed: " . $e->getMessage());
}