acidglitter Posted August 7, 2007 Share Posted August 7, 2007 I tried the regular mail() function, and a script that sends messages to an email address (that worked the last time i checked.. like half a year ago) and neither of them work. I don't think its a problem with the coding, I think its more like the settings on my site has changed somehow and maybe I have to fix it so I can send emails from my site? I'm not sure if that makes sense, but if it does, is that possible and how can I fix this? Quote Link to comment Share on other sites More sharing options...
trq Posted August 7, 2007 Share Posted August 7, 2007 It could be any number of issues. Firstly... do you have a SMTP server installed and configured or are you using a remote SMTP server? What OS are you using? Post the relevent parts of your php.ini. Quote Link to comment Share on other sites More sharing options...
ss32 Posted August 7, 2007 Share Posted August 7, 2007 first check for stupid errors... wrong email addresses etc. then check if the function is completing... add an "or die('mail error');" after the mail function if that fails, check that your IMAP/SMTP/POP server is running (if you cant, contact the administrator to see whats enabled) if it turns out that they wont allow mail... then sorry there isnt much that you can do. Quote Link to comment Share on other sites More sharing options...
acidglitter Posted August 7, 2007 Author Share Posted August 7, 2007 I really don't know much about this kind of stuff. How can I find my php.ini file? And my server has cpanel, and I copied this from it if its any help... General server information: Operating system Linux Service Status Click to View Kernel version 2.6.21.5-grsec-IS Machine Type i686 Apache version 1.3.37 (Unix) PERL version 5.8.7 Path to PERL /usr/bin/perl Path to sendmail /usr/sbin/sendmail Installed Perl Modules Click to View PHP version 4.4.7 MySQL version 4.1.22-standard cPanel Version 11.6.0-CURRENT 15076 Theme Netrillium CP v2.1 Documentation Click to View Quote Link to comment Share on other sites More sharing options...
acidglitter Posted August 7, 2007 Author Share Posted August 7, 2007 I checked for coding errors so I don't think thats it. How do I see if my IMAP/SMTP/POP server is running? Quote Link to comment Share on other sites More sharing options...
acidglitter Posted August 7, 2007 Author Share Posted August 7, 2007 I did <?php phpinfo() ?> this and looked up the SMTP and it said local host.. I think that answers your question, but right now I'm so lost.. Quote Link to comment Share on other sites More sharing options...
blackice666 Posted August 7, 2007 Share Posted August 7, 2007 Try to telnet your server on port 25, if u get a wellcome message it means that the mail server is ok. Or try to check if u have SSH on the server service sendmail status if the status is running it means that it's ok, than try to restart it service sendmail restart if it is stopped since the beginning then start it service sendmail start Quote Link to comment Share on other sites More sharing options...
acidglitter Posted August 7, 2007 Author Share Posted August 7, 2007 Try to telnet your server on port 25, if u get a wellcome message it means that the mail server is ok. Or try to check if u have SSH on the server service sendmail status if the status is running it means that it's ok, than try to restart it service sendmail restart if it is stopped since the beginning then start it service sendmail start I don't even know how to start that... I don't know how to telnet or how it could be on port 25... Could someone tell me where to start like I'm an old person that has no idea about computers? Because I have no clue how to do any of this stuff. Quote Link to comment Share on other sites More sharing options...
blackice666 Posted August 7, 2007 Share Posted August 7, 2007 ok than Start > Run then write: telnet www.yoursite.com 25 Quote Link to comment Share on other sites More sharing options...
trq Posted August 7, 2007 Share Posted August 7, 2007 I would suggest contacting your hosting provider. Quote Link to comment Share on other sites More sharing options...
acidglitter Posted August 7, 2007 Author Share Posted August 7, 2007 ok than Start > Run then write: telnet www.yoursite.com 25 What program would I open for that? Quote Link to comment Share on other sites More sharing options...
acidglitter Posted August 7, 2007 Author Share Posted August 7, 2007 I would suggest contacting your hosting provider. I'll try that too.. Ugh I wish I understood this stuff Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.