Roundcube Community Forum

Release Support => Pending Issues => Topic started by: jeffshead on March 13, 2009, 10:56:37 AM

Title: PHP Error - cannot send e-mail
Post by: jeffshead on March 13, 2009, 10:56:37 AM
Just did full install of 0.2.1.

I previously had 0.2a working. After creating a new database and full install of 0.2.1, I get the following error when attempting to send a new message via RoundCube:

[13-Mar-2009 10:36:41] PHP Warning:  mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 501 Syntax error in parameters in C:\folder\program\steps\mail\func.inc on line 1315

Here is the code in 'func.inc':

if (ini_get('safe_mode'))
      $sent = mail($headers_enc['To'], $headers_enc['Subject'], $msg_body, $header_str);
    else
      $sent = mail($headers_enc['To'], $headers_enc['Subject'], $msg_body, $header_str, "-f$from");
    }

Anyone have any ideas? The code in the previous version's 'func.inc' is the same. My 'main.inc.php' files (old & new) seem to have the same settings.
Title: PHP Error - cannot send e-mail
Post by: along on April 16, 2009, 09:09:01 PM
i have same problem..ca anybody guide us?.
Title: PHP Error - cannot send e-mail
Post by: rosali on April 17, 2009, 12:57:17 AM
Try SVN trunk. There was a fix regarding php mail on windows.

/trunk/roundcubemail/CHANGELOG ? RoundCube Webmail (http://trac.roundcube.net/browser/trunk/roundcubemail/CHANGELOG)

http://trac.roundcube.net/ticket/1485779

Sounds like your problem ...
Title: PHP Error - cannot send e-mail
Post by: jeffshead on April 17, 2009, 06:40:39 AM
My apologies 0:)
 
I forgot to post the URL to the ticket I opened.
 
The URL rosali included in the previous post should solve the issue if you are on a Windows Server.

Here's all you do:

Title: PHP Error - cannot send e-mail
Post by: along on April 27, 2009, 04:16:53 AM
i've try the script...bt still got error....

-----------------------------------------
[27-Apr-2009 16:01:06] PHP Warning:  mail() [function.mail]: SMTP server response: 550 The address is not valid. in C:\wamp\www\mail\program\steps\mail\func.inc on line 1322
-----------------------------------------------------

anybody can gudie me
Title: PHP Error - cannot send e-mail
Post by: along on April 27, 2009, 11:07:41 AM
rosali ,,,, any idea on this matter>?:o
Title: PHP Error - cannot send e-mail
Post by: rosali on April 27, 2009, 02:21:41 PM
Why do you use php mail()? Don't you have access to a smtp server?