Login or Register

RSS IconRecent posts in this topic

avatar
bsamson on Jul 11. 2006. 12:02 pm
No, the exchange server is running on a separate box in the domain. No mail server is running on the box on which XAMPP is installed. The PHP.INI file shows the following:

[mail function]
; For Win32 only.
SMTP = sumatraii
smtp_port = 25
; For Win32 only.
sendmail_from = bsamson@<DOMAIN>.com
avatar
gog on Jul 11. 2006. 12:33 pm
Try replacing sumatraii with a FQDN...
avatar
bsamson on Jul 11. 2006. 2:12 pm
Ok, that definitely made some progress; thanks gog! A fully qualified domain name should be used in PHP.INI. The From and BCC addresses look to be correctly identified.

However, the To: field still has nothing in it, so the same "501 5.5.4 Invalid Address" error is showing up. This is where I'll play the stupid-user card again, as I'm not sure how to debug what $message->getTo()->toString() is doing. Yet.
avatar
mixrecords on Jul 11. 2006. 4:15 pm
I am having the same SMTP 501 issue as well. Running WAMP on Windows 2000 Server and all that jazz. Works great otherwise... Tried changing php.ini with different SMTP servers, no luck. IIS not running from what I can see.

Previous install with MAMP on my G5 worked awesome, no mail issues at all.

Thanks in advance!
avatar Staff
Ilija Studen on Jul 11. 2006. 7:08 pm
activeCollab is using Bcc to send out many mails at once. Instead of sending many mails with To it sets Bcc and sends only one email. Mail server does the dirty work and distrubutes the email to all users in Bcc.

Maybe Windows mail server require To to be set?
activeCollab Team Member
avatar
gog on Jul 12. 2006. 1:06 am
I believe that one of the RFC's require To field to be set...
avatar Staff
Ilija Studen on Jul 12. 2006. 6:15 am
Hm, OK. My bad :(

Preformance of mail() function when sending multiple emails are pretty low. It opens a new SMTP connection for every email so Bcc sounded like good, but dirty solution. And it wokrs in most of the cases....

I'll add better email support to the system, thats for sure.
activeCollab Team Member
avatar
bsamson on Jul 12. 2006. 7:30 am
That very well could be. To test the theory, how would you suggest I modify the code to include the "To" address?
avatar Staff
Ilija Studen on Jul 12. 2006. 2:40 pm
Hi,

1. open /application/models/Notifier.class.php
2. go to line 51, it should be NULL for $to param
3. replace "null" with "new MailAddress('some@email.com')". Needs to be valid email address or you'll get an exception
4. save Notifier.class.php :)

Add message and select some users to receive notifications. And save message.
activeCollab Team Member
avatar
bsamson on Jul 12. 2006. 3:13 pm
I've got a fix, but it's not from the To: field afterall.

Line 87 of /environment/library/simplemail/MailAddress.class.php uses the display name followed by the email address in the format <some@email.com>. I modified it to use the email address without a display name or the left/right delimiters (as well as the "To:" line) and the system's processing emails without issue now.

Since I'm using this tool internally, Exchange always resolves the email address to a display name in the address book, so losing that info won't be a problem for me. However, there must be SOME way to pass display name into Exchange in a syntactically correct format.

Thanks to everyone for your help.
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