Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
First off can you post the script? It will help if we can see something. Also did you check your php.ini file to make sure it is setup correctly? And last what errors does it give in your /var/log/syslog and /var/log/messages. of course the logs can be changed if you used the ini_set() feature to output logging to another file.
normally you can check your logs at /var/log/messages or check your httpd.conf file and php.ini files and see where they point to for Error logs. also in your script your can add in your php file
course you can change the location so that if you have a folder in your web directory called logs then the output can be placed there. Also can you post the script. It will really help us out. You may also want to set display_errors to true so that it will display an error message.
I had some problems until I added the <mail from> address in the php.ini. I'm pretty sure that most mail servers do a HELO to ensure that the from email is a valid address. It helps cut down on spam.
I think we should start at the begining first; did you setup an SMTP server and a mail from name (win32) in you php.ini file?
Search for [mail function] in php.ini file.
PHP sendmail isn't magic, it actually relays through the SMTP server - usually on the local box, but it can be remote (i.e. smtp.comcast.net)
win32 has nothing to do with this unless he has it setup on a windows machine. Also the default is to use the localhost which is fine for most installations. And as mentioned it is better to see if his actual sendmail configuration is setup properly as it looks like the script is sending mail to the server.
win32 has nothing to do with this unless he has it setup on a windows machine. Also the default is to use the localhost which is fine for most installations. And as mentioned it is better to see if his actual sendmail configuration is setup properly as it looks like the script is sending mail to the server.
Sorry, thought that might be relavant since I get a 220 reponse from a Microsoft ESMTP Mail Service (Version 6.0.3790.3959) at cookbooks.com
bump - still not resolved -- need a little handholding here
did you try sending and email via the command line? This will eliminate one thing from the equation. Also as mentioned please post the script so that we can review it.
i have a simple php mail script and am seeing this from command line:
php mailtest.php
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'zlib' already loaded in Unknown on line 0
1root@pcbsd# php -r mailtest.php
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'zlib' already loaded in Unknown on line 0
PHP Parse error: syntax error, unexpected $end in Command line code on line 1
i have a simple php mail script and am seeing this from command line:
php mailtest.php
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'zlib' already loaded in Unknown on line 0
1root@pcbsd# php -r mailtest.php
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'zlib' already loaded in Unknown on line 0
PHP Parse error: syntax error, unexpected $end in Command line code on line 1
odd odd am thoroughly confused now
Again I can't give you much in the way of help if I can't see your code.
place the code from the mailtest.php script on here between the code tags. This will give me more information to help you with your script.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.