Login or Register

RSS IconRecent posts in this topic

avatar
subtense on Jul 17. 2006. 5:11 pm
I have successfully installed activeCollab on my work PC :), however I have run into a small problem with the mail aspect of the application:-

In my php.ini file I've set the SMTP server to my company's Exchange server; and a quick test of the php mail function proves successful.

However, activeCollab doesn't seem to like this setup and gives me the following error on mail send attempt -

[color=blue]Warning: mail() [function.mail]: SMTP server response: 553 malformed address: < Joe Bloggs <joe.bloggs@company.com>> in c:\websites\activecollab\environment\library\simplemail\transport\MtaMailTransport.class.php on line 22

Warning: Cannot modify header information - headers already sent by (output started at c:\websites\activecollab\environment\library\simplemail\transport\MtaMailTransport.class.php:21) in c:\websites\activecollab\environment\functions\general.php on line 273[/color]


Any help much appreciated, I'd very much like to fully evaluate this great looking application but I'm somewhat stalled at the mo...
avatar Staff
Ilija Studen on Jul 17. 2006. 5:15 pm
Known issue. Problem is when you use "My name <name@gmail.com>" format of email in To (Bcc).
activeCollab Team Member
avatar
subtense on Jul 18. 2006. 8:55 am
I guess the only way to fix this is either:

1. Modify the email headers within activeCollab
2. Don't use Exchange server

Any (other) suggestions Ilija?
avatar Staff
Ilija Studen on Jul 18. 2006. 12:46 pm
subtense:
I guess the only way to fix this is either:

1. Modify the email headers within activeCollab
2. Don't use Exchange server

Any (other) suggestions Ilija?

Currenty thats it. Here is the quick fix:

1. open environment/library/simplemail/MailAddress.class.php
2. find function toString()
3. convert:

/**
* Return properly formated email address with name and address
*
* @access public
* @param void
* @return string
*/
function toString() {
  if(trim($this->getName()) == '') {
    return trim($this->getEmail());
  } else {
    return trim($this->getName()) . ' <' . trim($this->getEmail()) . '>';
  } // if
} // toString

to:

/**
* Return properly formated email address with name and address
*
* @access public
* @param void
* @return string
*/
function toString() {
  return trim($this->getEmail();
} // toString

Report back if this one works. I don't have exchange to test it but this should fix the problem for you.
activeCollab Team Member
avatar
subtense on Jul 18. 2006. 2:18 pm
Thanks for your quick responses.

Yes, that makes perfect sense. What doesn't though, is what's happening now:

I add a new user & choose to send a confirmation email. I submit the form data and get a blank page back. No SMTP error, just no response from the server from this address - http://xyz/activeCollab/index.php?c=user&a=add&company_id=1. The user is successfully created (if I refresh the page I'm told so) but still no email.

:(
avatar Staff
Ilija Studen on Jul 18. 2006. 2:24 pm
Sorry, try this:

/**
* Return properly formated email address with name and address
*
* @access public
* @param void
* @return string
*/
function toString() {
  return trim($this->getEmail());
} // toString

I made a typo :(
activeCollab Team Member
avatar
subtense on Jul 18. 2006. 3:12 pm
Excellent, thank you Ilija. Fully operational :)
avatar Staff
Ilija Studen on Jul 18. 2006. 3:53 pm
Glad to hear that. Report if you find any problems...

I'll make a config option that lets users set up aC to work in "Exchange compatible" mode.
activeCollab Team Member
Topic is locked. If you have something important to say about issues discussed on this page please write at hi@a51dev.com.

RSS IconRecent posts in this topic