Thread: [openupload-devel] No email notification
Status: Beta
Brought to you by:
tsdogs
|
From: Edgar <ee...@la...> - 2010-03-01 23:59:23
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Hi,<br> <br> I've installed OpenUpload v.0.4.1 on a shared hosting (infomaniak.ch).<br> Despite my poor computer skills, everything seems to work, except email notifications. I've no idea how to identify why and fix it. <br> Thanks for your help :)<br> <br> Cheers,<br> Edgar<br> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="color: rgb(255, 255, 255); font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 15px; text-align: left;"><b></b></span></span> </body> </html> |
|
From: Alessandro B. <ts...@br...> - 2010-03-03 20:55:07
|
Edgar ha scritto: > Hi, > > I've installed OpenUpload v.0.4.1 on a shared hosting (infomaniak.ch). > Despite my poor computer skills, everything seems to work, except email > notifications. I've no idea how to identify why and fix it. Well, it's a bit dificult to know what is wrong with it. Maybe you are not allowed to send e-mails via php. Or the php e-mail is not configured correctly. I think to start is to look at the web server logs, which might give you some tip on what's wrong, otherwise if you can check the e-mail server logs (at your site) that could also lead you to the problem. On many systems the sendmail command is used, which does send e-mail identification as ap...@ho... Many mail servers do check if there exists a DNS MX record to the domain of the sender, and if not it discards it. That could lead to a bouncing e-mail which simply gets discarded. I do plan to use swift mailer library in next version, but that's not ready yet. Hope this helps, Alessandro |
|
From: <ee...@la...> - 2010-03-02 19:45:49
|
Alessandro Briosi a écrit : > > Edgar ha scritto: >> Hi, >> >> I've installed OpenUpload v.0.4.1 on a shared hosting (infomaniak.ch). >> Despite my poor computer skills, everything seems to work, except >> email notifications. I've no idea how to identify why and fix it. > > Well, it's a bit dificult to know what is wrong with it. > Maybe you are not allowed to send e-mails via php. > Or the php e-mail is not configured correctly. Hi Alessandro, Here's the php configuration of my shared hosting : http://imu215.infomaniak.ch/extensions.php?lang=english Is there something wrong ? > I think to start is to look at the web server logs, which might give > you some tip on what's wrong, otherwise if you can check the e-mail > server logs (at your site) that could also lead you to the problem. Problem is i have no access to these logs (probably because it's a shared and not dedicated hosting). Maybe if you can tell me what is the OpenUpload code which is supposed to send the emails, i can ask for my hosting support ? Cheers, Edgar > > On many systems the sendmail command is used, which does send e-mail > identification as ap...@ho... > Many mail servers do check if there exists a DNS MX record to the > domain of the sender, and if not it discards it. That could lead to a > bouncing e-mail which simply gets discarded. > > I do plan to use swift mailer library in next version, but that's not > ready yet. > > Hope this helps, > Alessandro > |
|
From: Alessandro B. <ts...@br...> - 2010-03-03 13:45:37
|
ee...@la... ha scritto: > > Problem is i have no access to these logs (probably because it's a > shared and not dedicated hosting). > Maybe if you can tell me what is the OpenUpload code which is supposed > to send the emails, i can ask for my hosting support ? > Hi Edgar, The e-mail function is in lib/general.inc.php the function is sendmail() which then calls the php native mail() function Beside that you should be able to access the logs for your domain in a shared environment too, as usually they are separated (to do log analisys and so on), but that depends on the offering. Alessandro |
|
From: <ee...@la...> - 2010-03-03 15:27:48
|
Alessandro Briosi a écrit : > Hi Edgar, > The e-mail function is in lib/general.inc.php > the function is sendmail() which then calls the php native mail() > function Hi Alessandro, Thank you, i'm going to ask my hosting support if they have an idea. In their FAQ they write about sendmail : ------------------------ 1- My php or perl forms providing access to sendmail or used for uploading files (the server sends "ok" to the browser, but nothing happens) don't work any more. What's the reason? Following recent waves of spam and an injection of urls on our servers, we have added a new rule on our servers blocking access for POST type requests with "http" in the QUERY_STRING. As a result you shouldn't make POST type requests with "http://" in the QUERY_STRING; you only need to enter www.domain.xyz for example instead of http://www.domain.xyz 2- How can I send email from my site via the server, without authentication? As far as possible you need to use the PHP mail() function on the server, and not send emails via the SMTP servers. You shouldn't specify a sender email address (leave the relevant box blank) With mail(), it isn't possible to send email with your PHP or Perl scripts. You need to use sendmail (in this case the path being /usr/sbin/sendmail), or specify SMTP "localhost" as server, namely the server where your site is hosted and which has its own mail server. You therefore need to add to your config $smtp_server = "localhost"; 3- Where can I find sendmail? /usr/sbin/sendmail ------------------------ Does it help you ? > > Beside that you should be able to access the logs for your domain in a > shared environment too, as usually they are separated (to do log > analisys and so on), but that depends on the offering. Unfortunately their logs aren't enough precise. Cheers, Edgar |
|
From: Alessandro B. <ts...@br...> - 2010-03-03 15:55:31
|
ee...@la... ha scritto: > Alessandro Briosi a écrit : >> Hi Edgar, >> The e-mail function is in lib/general.inc.php >> the function is sendmail() which then calls the php native mail() >> function > Hi Alessandro, > > Thank you, i'm going to ask my hosting support if they have an idea. > > In their FAQ they write about sendmail : > > ------------------------ > > 1- My php or perl forms providing access to sendmail or used for > uploading files (the server sends "ok" to the browser, but nothing > happens) don't work any more. What's the reason? > Following recent waves of spam and an injection of urls on our servers, > we have added a new rule on our servers blocking access for POST type > requests with "http" in the QUERY_STRING. > > As a result you shouldn't make POST type requests with "http://" in the > QUERY_STRING; you only need to enter www.domain.xyz for example instead > of http://www.domain.xyz I don't think I do this, but should check to be sure. afair I always use ./index.php in forms with post, but I might be mistaken. > > 2- How can I send email from my site via the server, without authentication? > As far as possible you need to use the PHP mail() function on the > server, and not send emails via the SMTP servers. You shouldn't specify > a sender email address (leave the relevant box blank) > > With mail(), it isn't possible to send email with your PHP or Perl > scripts. You need to use sendmail (in this case the path being > /usr/sbin/sendmail), or specify SMTP "localhost" as server, namely the > server where your site is hosted and which has its own mail server. > > You therefore need to add to your config > > $smtp_server = "localhost"; > > 3- Where can I find sendmail? > /usr/sbin/sendmail > > ------------------------ > Does it help you ? > This does clarify some things. 1. as stated they suggest to use the php mail() function which is what I do, but to leave the sender empty, so try changing line 270 in lib/general.inc.php to this: return mail($to,$subject,$msg,$header); /* remove the from part */ 2. If this does not work we should use sendmail directly which is a bit more complex. If 1 does not solve the problem then I'll send you a change to use sendmail directly. We do not use an smtp server so that part is not relevant. Hope this helps, Alessandro |
|
From: <ee...@la...> - 2010-03-03 17:02:45
|
Alessandro Briosi a écrit : > > ee...@la... ha scritto: >> Alessandro Briosi a écrit : >>> Hi Edgar, >>> The e-mail function is in lib/general.inc.php >>> the function is sendmail() which then calls the php native mail() >>> function >> Hi Alessandro, >> >> Thank you, i'm going to ask my hosting support if they have an idea. >> >> In their FAQ they write about sendmail : >> >> ------------------------ >> >> 1- My php or perl forms providing access to sendmail or used for >> uploading files (the server sends "ok" to the browser, but nothing >> happens) don't work any more. What's the reason? >> Following recent waves of spam and an injection of urls on our servers, >> we have added a new rule on our servers blocking access for POST type >> requests with "http" in the QUERY_STRING. >> >> As a result you shouldn't make POST type requests with "http://" in the >> QUERY_STRING; you only need to enter www.domain.xyz for example instead >> of http://www.domain.xyz > > I don't think I do this, but should check to be sure. afair I always > use ./index.php in forms with post, but I might be mistaken. > >> >> 2- How can I send email from my site via the server, without >> authentication? >> As far as possible you need to use the PHP mail() function on the >> server, and not send emails via the SMTP servers. You shouldn't specify >> a sender email address (leave the relevant box blank) >> >> With mail(), it isn't possible to send email with your PHP or Perl >> scripts. You need to use sendmail (in this case the path being >> /usr/sbin/sendmail), or specify SMTP "localhost" as server, namely the >> server where your site is hosted and which has its own mail server. >> >> You therefore need to add to your config >> >> $smtp_server = "localhost"; >> >> 3- Where can I find sendmail? >> /usr/sbin/sendmail >> >> ------------------------ >> Does it help you ? >> > > This does clarify some things. > 1. as stated they suggest to use the php mail() function which is what > I do, but to leave the sender empty, so try changing line 270 in > lib/general.inc.php to this: > > return mail($to,$subject,$msg,$header); /* remove the from part */ Brilliant ! It was line 269 for me (return mail($to,$subject,$msg,$header); /* remove the from part */ instead of return mail($to,$subject,$msg,$header,'-f "'.$from.'"');), and now i can receive email notifications ! I'm going to ask my compagny to make a donation to your project, continue this great job ! Edgar |