Author Topic: PHP Error - cannot send e-mail  (Read 3389 times)

Offline jeffshead

  • Full Member
  • ***
  • Posts: 71
PHP Error - cannot send e-mail
« 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:

Code: [Select]
[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.
« Last Edit: March 13, 2009, 12:01:41 PM by jeffshead »

Offline along

  • Jr. Member
  • **
  • Posts: 18
PHP Error - cannot send e-mail
« Reply #1 on: April 16, 2009, 09:09:01 PM »
i have same problem..ca anybody guide us?.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
PHP Error - cannot send e-mail
« Reply #2 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/ticket/1485779

Sounds like your problem ...
« Last Edit: April 17, 2009, 01:04:44 AM by rosali »
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline jeffshead

  • Full Member
  • ***
  • Posts: 71
PHP Error - cannot send e-mail
« Reply #3 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:

  • Open file '../program/step/mail/func.inc'
  • Add the code as specified here.

Offline along

  • Jr. Member
  • **
  • Posts: 18
PHP Error - cannot send e-mail
« Reply #4 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

Offline along

  • Jr. Member
  • **
  • Posts: 18
PHP Error - cannot send e-mail
« Reply #5 on: April 27, 2009, 11:07:41 AM »
rosali ,,,, any idea on this matter>?:o

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
PHP Error - cannot send e-mail
« Reply #6 on: April 27, 2009, 02:21:41 PM »
Why do you use php mail()? Don't you have access to a smtp server?
Regards,
Rosali
__________________
MyRoundcube Project (commercial)