Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#1485779 closed Bugs (fixed)

PHP error/cannot send mail via RoundCube

Reported by: jeffshead Owned by:
Priority: 5 Milestone: 0.2.2
Component: SMTP connection Version: 0.2.1
Severity: normal Keywords:
Cc:

Description

Windows 2003, Apache 2.2.x, PHP 5.2.x

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

My 'main.inc.php' files (old & new) have the same settings.

Attachments (1)

func.diff (543 bytes) - added by alec 4 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 4 years ago by alec

  • Component changed from Core functionality to SMTP connection
  • Milestone changed from later to 0.2.2

Maybe it's a Windows mail() implementation problem? From PHP manual "As such, the to parameter should not be an address in the form of "Something <someone@…>". The mail command may not parse this properly while talking with the MTA."

comment:2 follow-up: Changed 4 years ago by jeffshead

Something changed with 0.2.1. I switched back to 0.2a and it works fine. I never changed anything else in PHP or Apache.

comment:3 in reply to: ↑ 2 Changed 4 years ago by jeffshead

In version 0.2.1, I noticed the name of the sender is also displayed with the sender's e-mail address in the drop down box when sending a new message. Could this be the cause? Maybe the name is being added to the sender's e-mail when sending.

comment:4 follow-up: Changed 4 years ago by jeffshead

Here is a snippet from my e-mail server log:

2009-03-28 03:14:44 <TRACE-2>: SmtpReceiver?: 0002: RCPT TO: <¨-´>
2009-03-28 03:14:44 <TRACE-2>: SmtpReceiver?: 0002: Problem extracting an address from the string '<<jeffshead@…>>':

comment:5 in reply to: ↑ 4 Changed 4 years ago by jeffshead

I see there is an extra set of <> around the 'to' address.

Replying to jeffshead:

Here is a snippet from my e-mail server log:

2009-03-28 03:14:44 <TRACE-2>: SmtpReceiver?: 0002: RCPT TO: <¨-´>
2009-03-28 03:14:44 <TRACE-2>: SmtpReceiver?: 0002: Problem extracting an address from the string '<<jeffshead@…>>':

Changed 4 years ago by alec

comment:6 follow-up: Changed 4 years ago by alec

If this is what I'm talking about, try this patch.

comment:7 in reply to: ↑ 6 Changed 4 years ago by jeffshead

Thank you Alec. Did a quick test after adding your code... Seems to have solved the problem.

Is your patch a neccessary addition to RoundCube so it is compatable with Windows installations or is there a configuration problem with my paticular mail system?

Replying to alec:

If this is what I'm talking about, try this patch.

comment:8 Changed 4 years ago by alec

  • Resolution set to fixed
  • Status changed from new to closed

As stated in PHP manual it's problem with Windows mail() implementation. Patch applied in [5d110184].

Note: See TracTickets for help on using tickets.