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? Link to comment https://forums.phpfreaks.com/topic/63723-my-website-cant-send-emails/ 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. Link to comment https://forums.phpfreaks.com/topic/63723-my-website-cant-send-emails/#findComment-317520 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. Link to comment https://forums.phpfreaks.com/topic/63723-my-website-cant-send-emails/#findComment-317522 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 Link to comment https://forums.phpfreaks.com/topic/63723-my-website-cant-send-emails/#findComment-317897 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? Link to comment https://forums.phpfreaks.com/topic/63723-my-website-cant-send-emails/#findComment-317899 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.. Link to comment https://forums.phpfreaks.com/topic/63723-my-website-cant-send-emails/#findComment-317908 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 Link to comment https://forums.phpfreaks.com/topic/63723-my-website-cant-send-emails/#findComment-317913 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. Link to comment https://forums.phpfreaks.com/topic/63723-my-website-cant-send-emails/#findComment-317923 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 Link to comment https://forums.phpfreaks.com/topic/63723-my-website-cant-send-emails/#findComment-317926 Share on other sites More sharing options...
trq Posted August 7, 2007 Share Posted August 7, 2007 I would suggest contacting your hosting provider. Link to comment https://forums.phpfreaks.com/topic/63723-my-website-cant-send-emails/#findComment-317928 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? Link to comment https://forums.phpfreaks.com/topic/63723-my-website-cant-send-emails/#findComment-317935 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 Link to comment https://forums.phpfreaks.com/topic/63723-my-website-cant-send-emails/#findComment-317936 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.