Roundcube Community Forum

SVN Releases => Issues & Bugs => Topic started by: Calaad on August 19, 2015, 07:25:19 PM

Title: Impossible to send mail.
Post by: Calaad on August 19, 2015, 07:25:19 PM
Hi,

I just make a plugin update : php composer.phar update

Until this, i can no more send mails. Logs says :

Code: [Select]
PHP Fatal error:  Call to undefined method Mail_mimePart::encodeHeader() in /var/www/roundcube/vendor/pear/mail_mime/Mail/mime.php on line 1333
It(s just like this error (http://trac.roundcube.net/ticket/1490462) but "php composer.phar clearcache" doesn't change anything.

My composer.json look like :

Code: [Select]
{
    "name": "roundcube/roundcubemail",
    "description": "The Roundcube Webmail suite",
    "license": "GPL-3.0+",
    "repositories": [
        {
            "type": "composer",
            "url": "http://plugins.roundcube.net/"
        },
        {
            "type": "pear",
            "url": "http://pear.php.net/"
        },
        {
            "type": "package",
            "package": {
                "name": "Net_SMTP",
                "version": "dev-master",
                "source": {
                    "url": "http://github.com/pear/Net_SMTP",
                    "type": "git",
                    "reference": "master"
                }
            }
        },
        {
            "type": "vcs",
            "url": "https://git.kolab.org/diffusion/PNL/php-net_ldap.git"
        }
    ],
    "require": {
        "php": ">=5.3.7",
        "roundcube/plugin-installer": ">=0.1.5",
        "johndoh/sieverules": ">=0.1.2",
        "johndoh/markasjunk2": ">=0.1.2",
        "roundcube/carddav": ">=1.1.1",
        "pear/mail_mime": ">=1.8.9",
        "pear/mail_mime-decode": "~1.5.5",
        "pear/net_smtp": "dev-master",
        "pear-pear.php.net/auth_sasl": ">=1.0.6",
        "pear-pear.php.net/net_idna2": ">=0.1.1",
        "pear-pear.php.net/net_sieve": ">=1.3.2",
        "patchwork/utf8": "1.2.x"
    },
    "minimum-stability": "dev"
}




Thanks by advance.
Title: Re: Impossible to send mail.
Post by: alec on August 20, 2015, 02:26:43 AM
Remove vendor directory and do `composer.phar install` again.
Title: Re: Impossible to send mail.
Post by: Calaad on August 20, 2015, 05:24:55 AM
Damn, it works !

Thank you Alec :).
Title: Re: Impossible to send mail.
Post by: romjean on September 08, 2015, 08:07:35 AM
Hi,

Had the same problem in roundcube 1.1.2
After plugins manipulations and various composer updates, no way to send an email.

After following Alec's instructions, it worked fine again.
Thank you !

RomJean