View Issue Details

IDProjectCategoryView StatusLast Update
0003021mantisbtemailpublic2003-12-13 04:44
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version0.18.0a3 
Summary0003021: Error when using phpMailer
Description

I got the following error when closing a bug:

SYSTEM WARNING: email_send(class.phpmailer.php) [<a href='http://www.php.net/function.email-send'>function.email-send</a>]: failed to create stream: No such file or directory
(email_api.php: line 596)

SYSTEM WARNING: email_send() [<a href='http://www.php.net/function.email-send'>function.email-send</a>]: Failed opening 'class.phpmailer.php' for inclusion (include_path='')
(email_api.php: line 596)

Fatal error: Cannot instantiate non-existent class: phpmailer in /home/xxxx/public_html/xxx/core/email_api.php on line 597

TagsNo tags attached.

Activities

vboctor

vboctor

2003-02-28 16:52

manager   ~0003892

In core/email_api.php, function email_send():

Replace: include_once( 'class.phpmailer.php');
With: include_once( dirname( FILE ) . DIRECTORY_SEPARATOR . 'class.phpmailer.php');

This seems to fix the problem.

vboctor

vboctor

2003-02-28 16:56

manager   ~0003893

Fixed in CVS. Will be available in 0.18.0a4.

Related Changesets

MantisBT: master aaf7dea7

2003-02-28 10:55

vboctor


Details Diff
Fix 3021: Error when using phpMailer

M core/email_api.php
- (email_send): Include class.phpmailer.php using full path.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2061 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0003021
mod - core/email_api.php Diff File
mod - doc/ChangeLog Diff File