Sending Email Out
Submitted by shirtandsimple on Fri, 02/08/2008 - 04:35.
Hello Everyone,
I am fairly new to web programming but have managed to get projectpier up and running on my new server. As I was setting up clients and projects, I realized that I was not able to successful send out email. Is there something I need to change or setup from my server? I've got my site hosted through a company called ixwebhosting. If anyone could help...that would be awesome as I want to make sure those email notifications are being sent out when tasks are added. Thanks much!
George

I should add that when i use the defaul and also when I input SMTP server I get messages saying the emails have been sent in both the Tester and the Mass mailer...yet no email is coming into my inbox! Thoughts?
I replied to your other post as well, but I would check with your host to make sure they allow sending email through php and that you have the right settings.
Hey Ryan,
Thanks so much for the reply. I have talked with them twice now...and they are not sure what settings would be restricting 3rd party application emails....do you have any suggestions on what I should ask them (where to look, what settings to check, etc) when I call them back tomorrow?
Thanks again,
George
One thing you can do would be to put together a simple php email test page, there are tons of small php email form examples. If you're able to get one of those working with the default php settings (in php.ini) then projectpier should work. (your host should also be able to provide a working example script) At that point, if your example script works and projectpier is still not working, then I would be looking for a bug - but almost every person posting a problem like this usually just finds it is either a configuration issue or a problem with their host, so I'm doubtful of any serious bug. We are all human though =)
I'm sure you've probably already checked, but make sure the emails are not getting caught in your spam filters - email can also be caught in outgoing spam filters sometimes instead of incoming filters.
I'm having the same issue. No email is going out, no matter what I do. I can confirm email just goes out fine if I do a simple script, and I get no entry on the email logs.
No debug message. Although if I try SMTP auth, it says "Notifier has failed to construct mailer object" when I try to test the email.
Thanks!
This problem exists only if your SMTP server needs authorization, still trying to solve this.
Thanks for your response, but what about the normal PHP method? That one doesn't seem to work either.
What kind of email-transport you are trying to use?
1) Native - what is the error message you see?
2) smtp - is it localhost or different server?
3) ask your hoster about email settings and try to type this correctly
I was able to make it work using the SMTP method now. Although the native PHP one still doesn't work. No message on ProjectPier, no PHP error log, no log on the Mail server, nothing, just doesn't go through.
It's my own server, so I know the email settings. Anyways, that part is working now, I just wonder why the native one doesn't.
Hi,
I've tried the email functions as follows:
- smtp server used -
function "test mail settings:" "Notifier has failed to construct mailer object", obviously the mail never arrived.
mail notification about a new message: no error, mail never arrived
- default php settings -
function "test mail settings": ok, mail arrived.
mail notification about a new message: no error, mail never arrived
So,the defult php settings seem to properly function, but only in the mail test function: notifications about tasks, documents, comments and messages do not arrive to the recipients.
What can I check?
Thanks,
Silvio
I have tried all of the options - except roll-back to earlier version of PP and yet nothing.
my hosting service (one.com) assures me that on their side both PHP default and SMTP should work.
I applied the patch (manually going through the code) and still nothing.
I found the following however in the .../CACHE/log.php:
-------------------------------------------------------------------------------
Session "default" started at 2008-03-13T14:24:50+0000
#1 ERROR: Error: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE in '/customers/inter-face.eu/inter-face.eu/httpd.www/projects/library/swift/lib/Swift/Stream/MailProxy.php' on line 375 (error code: 2)
Time since start: 0.543437004089 seconds
-------------------------------------------------------------------------------
Session "default" started at 2008-03-13T14:26:37+0000
#1 ERROR: Error: fsockopen() [function.fsockopen]: unable to connect to tls://smtp.gmail.com:465 (Connection timed out) in '/customers/inter-face.eu/inter-face.eu/httpd.www/projects/library/swift/lib/Swift/Connection/SMTP.php' on line 149 (error code: 2)
Time since start: 30.2807078362 seconds
Johan Verheyden
I have the same problem. When I sent emails through, "Test Mail Settings" everything worked fine. So, I thought I was all set, but before I rolled this out to my group I tried to post comments and notify myself and nothing is delivered.
This won't be much use if no one knows something is happening.
What to do?
UPDATE: I did just get one of my original notifications more than 1/2 hour after the time the email actually has in its header. The test emails came almost instantly. So, I thought notifications would be the same. Any way to speed this up, I wonder? What causes this delay?
If the emails are sent from PP, then it is mostly likely some type of delay from your mail server or network issues. Also check how often your email client polls the server for updates. There is no built in delay from ProjectPier's side of things that I am aware of.
the only other thing I could think of might be the loading on your server, but you would probably notice other performance issues too.
I saw that Tim had posted a patch that corrected some spelling errors that seemed to be interfering with emails being sent out. Because it was built off of the new revision I thought that it was a good time to take the time to back-up the whole site, update to new revision, patch the bad spelling files, re-do the marine theme patch, upload the whole thing again (lot of time.)
Good news is that the emails seem to be going out fine now. Bad news, each one of my sites had a Google calendar embedded on the overview page and that is broken now. This is unacceptable for me
I guess I'll have to revert to the old PP revision unless there is some way I can get this functionality back.
Any ideas?
My guess is that the embedded calendar is being restricted by the security patches, to prevent things like XSS. There is another issue floating the tracker that is working to relax some of the formatting issue to allow for these type of applications.