Sending Email Out

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

Hi... I am having the same problem as you Silvo....

"
- 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
"

has anyone been able to fix this? the program is sorta a bust without it letting my clients know something has happened...

Thanks!
Fonda

Fonda,

I've been using my system just fine with SMTP configured. Can you tell us a little about your system setup, what kind of SMTP server, etc. Otherwise, only people who are having this problem will be able to troubleshoot it. What if you write a short php script to send mail via smtp outside ProjectPier, does it work on the same server? Obviously there are thousands of people using these features in ProjectPier without any problems so you would need to figure out what is unique to your system that is causing the problem. Then perhaps if necessary the projectpier code could be altered to work with your configuration.

-Jon

John,

Hi, I am not the most technical person.. I can design.... but I have trouble with deeper technical stuff.. so i am not sure how to even go about making my own php script

I am with one.com - since one does not have InnoDB support.. i have had to apply the work around --> http://www.projectpier.org/node/300 which leads to --> http://www.activecollab.com/forums/topic/1302/

my outgoing mail server is - customer-smtp.one.com

When my mail would not send i read this and applied it --> http://www.projectpier.org/node/1172 but still no luck.. this is why i have posted my problem.

I have not been able to get the php or smtp work.. i have turned the php safe mode off and it did not work either.

Since I am not that technical... That is all I know to tell you.. I am not sure where to find other information... I know i have read that many people have issues with one.com... i am unable at the time to switch services... so i might need to wait for 0.8.5 to come out and hope for the best! I am really excited about using this software at my Studio... So i hope it all works out!

Thanks!

0.8.5 won't fix your problem because there will not be any changes to the mailer. I suggest calling your web hosting company to see if they have disabled mailing from their servers. It's possible they have disabled PHP mailing and blocked the ports needed for SMTP mailing to prevent spammers from using their system to send junk email.

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.