PHP Sendmail Problem
Moderator: Thorsten
PHP Sendmail Problem
I tried using the Contact Me function and although after clicking Submit I get a message that the email was sent, I never receive anything. I checked with my host and they say that I should check that the proper php sendmail path is set. My php sendmail path is: /usr/sbin/sendmail -t -i .... where would I set that setting in the script configuration so that the email forms would work.
Thank you.
Thank you.
Hi,
did you changed the e-mail adress in the configuration? The e-mail adress in the configuration is the adress, where all the mails go to.
bye
Thorsten
did you changed the e-mail adress in the configuration? The e-mail adress in the configuration is the adress, where all the mails go to.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hello,
Yes, I changed my email address in the configuration but it still doesnt work. I emailed my webhost and here is what they said:
Could this be addressed in the future releases?
Also in the future versions, is it possible to incorporate support for SMTP
By the way, I really like your FAQ script. Good work.
Thank you
Yes, I changed my email address in the configuration but it still doesnt work. I emailed my webhost and here is what they said:
I then went to sendmail.php and edited the mail() line under If and Else like this:A: Its the way the mail() function is used. Any PHP page that uses the mail() function should use the mail function with a sendmail flag. For example, a mail() function that is normally used like this:
mail( $mailto, $mailsubj, $mailmsg, $mailheader );
should in fact be used like this:
mail( $mailto, $mailsubj, $mailmsg, $mailheader, "-fyou@yoursite.com");
Note the sendmail flag at the end of the function "-f" followed by the e-mail address mail is sending from.
And now php mail function works great. Is there any other place I need to edit the mail() code other than sendmail.php?mail($adminmail, "Feedback: ".$title, stripslashes($_REQUEST["question"]), "From: ".$_REQUEST["email"], "-fmyemail@mydomain.com");
Could this be addressed in the future releases?
Also in the future versions, is it possible to incorporate support for SMTP
By the way, I really like your FAQ script. Good work.
Thank you
Hi,
you'll have to edit save.php and mailsend2friend.php, too. I have noted your bug and I'll fix it with the next version.
bye
Thorsten
you'll have to edit save.php and mailsend2friend.php, too. I have noted your bug and I'll fix it with the next version.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
I made all the changes. Everything works ok now.
Thank you for your help and for noting this issue.
Steve
http://www.webzila.com
Thank you for your help and for noting this issue.
Steve
http://www.webzila.com
Hi Steve,
okay!
Thanks for using phpMyFAQ!
bye
Thorsten
okay!
Thanks for using phpMyFAQ!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi there,
well I tried all of the above, but still no e-mail. I currently running your 1.3.5. version but I'm not able to receive any mail.
What more should I try and check? The mail address is not the address of the domain phpmyfaq is on, that shouldn't be a problem should it?
Maybe an easier way of 'fixing' things is telling me how to get the contact section out of it anyway, since I don't really want them to use it
Thanks for looking into this...
well I tried all of the above, but still no e-mail. I currently running your 1.3.5. version but I'm not able to receive any mail.
What more should I try and check? The mail address is not the address of the domain phpmyfaq is on, that shouldn't be a problem should it?
Maybe an easier way of 'fixing' things is telling me how to get the contact section out of it anyway, since I don't really want them to use it
Thanks for looking into this...
Hi chester,
just remove in the template file index.html this variable: {msgContact}
Then the contact link is hidden.
bye
Thorsten
just remove in the template file index.html this variable: {msgContact}
Then the contact link is hidden.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi chester,
is it possible for me to see you PHP configuration? Could you write a file with the following content:
Then send post the URL of this file.
Thanks!
Thorsten
is it possible for me to see you PHP configuration? Could you write a file with the following content:
Code: Select all
<?php phpinfo(); ?>
Thanks!
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist