Jump to content

PHP Mail() Error


gsurface

Recommended Posts

I am getting an error using my board when sending mail using the sendmail in PHP. I submitted a trouble ticket to my hosting company. I have root access to the server. This is the responce they gave me:
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]
It seems in php.ini the file specified is
/usr/sbin/sendmail -t -i but this is calling /usr/sbin/sendmail.real which cannot be found in the sbin.

root@www [/var/log]# /usr/sbin/sendmail -t -i
cannot open /usr/sbin/sendmail.real: No such file or directoryn at /usr/sbin/sendmail line 23.

to resolve this issue you will need a valid path in

my $mailprog =

located in /usr/sbin/sendmail
[/quote]
I searched in that directory and I don't have that sendmail.real file. My question is how do I fix this problem? Do I just make my own sendmail.real file, if so, how? Thanks for your help guys.

UPDATE: This is the responce I got from the tech support:
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]It appears that you have corrected the issues with sendmail's symbolic link but it does not have the correct permissions and ownership right now. You will need to set this files mode to 2755 and the ownership to root:mailtrap.[/quote]

My responce:
How would I go about setting the file modes to 2755 and which files do I set to this value?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.