PDA

View Full Version : Zend_mail patch


eggy
03-05-2008, 06:35 AM
Hello,

i've created a little patch tu use the zend_mail class instead of the default function.

This patch add support for SSL, TLS, SMTP AUTH.

use:

Download the attached patch: zend_mail.txt

apply to your source with: patch -p1 < zend_mail.txt

download the zend framework here -> http://framework.zend.com/download and extract the directory Zend in the include/ dir of osticket

add theses line at the end of the ostconfig.php file


define('MAILTYPE', 'smtp'); //can be sendmail or stmp
define('MAILHOST','smtp.free.fr');
define('MAILAUTH', ''); //PLAIN, LOGIN and CRAM-MD5
define('MAILUSER', '');
define('MAILPASSWORD','');
define('MAILSSL',''); // SSL or TLS
define('MAILPORT','');

michaelk
05-02-2008, 04:56 PM
The patch doesn't seem to be working for me.

I get the error:
patch -p1 < /Users/admin/Desktop/zend_mail.txtcan't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- upload/include/class.misc.php 2008-01-29 10:01:35.000000000 +0100
|+++ osticket-dev/include/class.misc.php 2008-03-05 12:24:11.000000000 +0100
--------------------------