SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running Suse Professional 9.2 with apache 2, php4, and sendmail installed. I'm trying to implement a simple email form where a user enters their email and a remark and when they click submit, the form data is emailed to me. I think I have the html and php file correct, but the form info is never emailed to me. Could this be a problem with sendmail. Here is my code:
Is there anything I'm doing wrong with the code, or is there a certain way to configure sendmail? I checked to see if sendmail was running and it was. Any help would be appreciated.
Have you tried putting a print_r($_REQUEST); command in to see whether the PHP page is actually receiving what the user types in?
Is the SMTP server set up correctly in php.ini? Also, is the mail command returning true or false? (This should indicate whether it's succeeding at sending the mail).
There shouldn't be any special configuration of sendmail required.
Yeah, put the path to sendmail in the php.ini file. You'll have to restart the httpd service to get it to reload the file. If it helps, on my system sendmail is /usr/sbin/sendmail.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.