[pLog-svn] r5044 - plog/branches/lifetype-1.2/class/mail/phpmailer
Reto Hugi
plog at hugi.to
Sun Mar 11 13:40:47 EDT 2007
short story:
using the built in smtp functionality wouldn't work
long story:
The phpmailer classes aren't modified much and don't make use of
lifetype constants. ($this->PluginDir is actually pointing to the wrong
place). As class.phpmailer.php and class.smtp.php are in the same
directory it doesn't matter as long as php can include the files and not
the lt_include function (which is not in this directory, obviously).
On 03/11/2007 02:58 PM, Jon Daley wrote:
> Why is this? Does it get called from some place that doesn't have
> the bootstrap included?
> When I switched all these I couldn't think of a reason why
> lt_include shouldn't be used everywhere, so I am curious as to what
> reason(s) include_once is still needed.
>
> On Sat, 10 Mar 2007, reto at devel.lifetype.net wrote:
>> Author: reto
>> Date: 2007-03-10 19:22:45 -0500 (Sat, 10 Mar 2007)
>> New Revision: 5044
>>
>> Modified:
>> plog/branches/lifetype-1.2/class/mail/phpmailer/class.phpmailer.php
>> Log:
>> we need include_once here.
>>
>>
>>
>> Modified: plog/branches/lifetype-1.2/class/mail/phpmailer/class.phpmailer.php
>> ===================================================================
>> --- plog/branches/lifetype-1.2/class/mail/phpmailer/class.phpmailer.php 2007-03-11 00:21:11 UTC (rev 5043)
>> +++ plog/branches/lifetype-1.2/class/mail/phpmailer/class.phpmailer.php 2007-03-11 00:22:45 UTC (rev 5044)
>> @@ -457,7 +457,7 @@
>> * @return bool
>> */
>> function SmtpSend($header, $body) {
>> - lt_include($this->PluginDir . "class.smtp.php");
>> + include_once($this->PluginDir . "class.smtp.php");
>> $error = "";
>> $bad_rcpt = array();
>>
>> @@ -1496,4 +1496,4 @@
>> }
>> }
>>
>> -?>
>> \ No newline at end of file
>> +?>
>>
>> _______________________________________________
>> pLog-svn mailing list
>> pLog-svn at devel.lifetype.net
>> http://limedaley.com/mailman/listinfo/plog-svn
>>
>
More information about the pLog-svn
mailing list