Loading...
 
Skip to main content

Features / Usability


Mail issues

posts: 3

I don't know what is wrong with my setup but the mail features don't work write.

Any outgoing mail generates from the news letter of the forums (the email is sent) so this is less critical.

Notice: Only variable references should be returned by reference in /public_html/lib/webmail/htmlMimeMail.php on line 402

Line 402: Image
Copy to clipboard
/** * Adds a text subpart to a mime_part object */ function &_addTextPart(&$obj, $text) { $params['content_type'] = 'text/plain'; $params['encoding'] = $this->build_params['text_encoding']; $params['charset'] = $this->build_params['text_charset']; if (is_object($obj)) { return $obj->addSubpart($text, $params); } else { 402--> return new Mail_mimePart($text, $params); } }



If there is a reply for the mail-in forum

Notice: fwrite(): send of 6 bytes failed with errno=32 Broken pipe in /public_html/lib/pear/Net/Socket.php on line 327

Image
Copy to clipboard
/** * Write a line of data to the socket, followed by a trailing "\r\n". * * @access public * @return mixed fputs result, or an error */ function writeLine($data) { if (!is_resource($this->fp)) { return $this->raiseError('not connected'); } 327--> return fwrite($this->fp, $data . "\r\n"); }


Under a suggestion on the IRC I checked and fsoketopen is 'enabled'

The incoming server uses port 25 which seems to differ from what the code wants....
from Socket starting at line 62

Image
Copy to clipboard
/** * The port number to connect to. * @var integer $port */ var $port = 0;

..... line 98

Image
Copy to clipboard
function connect($addr, $port = 0, $persistent = null, $timeout = null, $options = null)
posts: 1092

> Notice: Only variable references should be returned by reference in /public_html/lib/webmail/htmlMimeMail.php on line 402
>

> Line 402: Image
Copy to clipboard
/** > function &_addTextPart(&$obj, $text) { This one is a classic problem with new php release. Take away the & before _addTextPart


sylvie

posts: 50

I had the same error and removed the &. This fixed that error but I'm still getting this one:


Notice: Only variables should be assigned by reference in /home/arbutusm/public_html/tikiwiki/lib/webmail/htmlMimeMail.php on line 524


Any ideas?

Thanks again.

posts: 1092


> Notice: Only variables should be assigned by reference in /home/arbutusm/public_html/tikiwiki/lib/webmail/htmlMimeMail.php on line 524
I don't have the same line positin I think and can't give you the precise line... Edit the file lib/
webmail/htmlMimeMail.php , go to the line 524, find the function it is in and take away the & at the function declaration (it will be kind of change all "function &" to "function "
sylvie