Hi,
I just set up a Drupal installation, but it is not sending out password reminders. So I checked the forums and found some information. After the following correspondence with my admin, I was asked to implement pear function for sending email. Does anyone know of a workaround? Thanks!
-------------------------------------------------------------------------------------
sepeck - September 16, 2005 - 16:44
This post was about about the Drupal site transfer to a new server and there being an issue with sent email coming from nobody@local or something. The email From field is controlled by the infomration in
the php.ini configuration file and whether your site is allowed to send is controlled by relay restrictions on your
-------------------------------------------------------------------------------------
So I sent this query to my site admin.
Reply:
The php mail function you are using is sending mails as user 'nobody'. User 'nobody' does not permission to send mails through our server. We have blocked it due to security concerns. You can impletment pear function which sends mails from unique user. Go through this link for more tips:
http://pear.php.net/manual/en/package.mail.mail.send.php . Please let us know if we can be of any further assistance.
---------------------------------------------------------------------------------------
I asked if php.ini could be modified (I do not have access to php.ini on my setup)
---------------------------------------------------------------------------------------
Reply:
The php settings are done in php.ini file. The entry for disabling user nobody is done with this file. You can't use php function to send mail if user nobody is disabled. Try to implement pear function.
Comments
Might be possible . . .
Not sure if this will help (my knowledge in scripting is somewhat lacking to say the least) but might be worth a shot.
http://tips-scripts.com/?tip=php_ini#tip
If you can figure out where "nobody" is set in php.ini the tip the link takes you to may allow you to set up a custom file while not losing any host settings (I use it to increase upload limits).
tried this...
I obtained the machine's php.ini, and made a copy in my public_html.
however, I am not sure if there is something I didn't do. The local settings do not seem to be overriding the initial settings. (I tested this by setting upload limit to 10M - this change is not reflected when I check phpinfo). This is even though
safe_mode = Off
the current mail settings are
;SMTP = localhost ;
;sendmail_from = me@localhost ;
sendmail_path = /usr/sbin/sendmail -t -i ;
Any advice would be greatly appreciated.
post_max_size
Sorry I can't be much help, stumbling around in the dark myself. Perhaps a host can stop a custom php.ini file from working? All I know is that script works for me for bumping up upload size (60MB)
Did you:
"And if you want to go larger than 8MB, also add the folowing:
$contents .= "post_max_size = 10M \n"; // user specified post max size"
Hopefully someone who knows what they are talking about will help you out soon.
Good luck!
I guess I will just have to ...
OK, here's the reply from my host.
"You are not authorised to do any server side settings. php.ini is configured at server end for php and there is no any custome option for it. The only available option for your mail function to get work is to implemtnt pear function. Hope you are clear on this."
oh well.
I'm reading the Pear function information at http://pear.php.net/package/Mail, but it's kind of heavy going; I'm not very sure how to get started modifying my Drupal installation to make use of this.
I did try the example php script, and it bounced mail to the correct From: address (even though it didn't send the same mail to the equally correct To: gmail address.
Any advice would be greatly appreciated.