php1 Posted October 29, 2008 Share Posted October 29, 2008 I am using php mail() function to sent email. It was working fine till yesterday. suddenly it stop working today. But I am getting the mail succesfully sent message but no mail in my inbox. Where I have to check to find what is going wrong? pls help urgent. thanks in advance Quote Link to comment Share on other sites More sharing options...
solon Posted October 29, 2008 Share Posted October 29, 2008 is it possible to post your code so we can check the problem? But first check your spam mail box. Quote Link to comment Share on other sites More sharing options...
php1 Posted October 29, 2008 Author Share Posted October 29, 2008 <?php mail("php@gmail.com","testsub","testmessage"); ?> Quote Link to comment Share on other sites More sharing options...
solon Posted October 29, 2008 Share Posted October 29, 2008 Ok if you want to use the "testsub" and "testmessage" as variables you should use the $ sign! If its just text then it looks ok to me! Check if you can get emails in general on that account because the problem might be with the gmail servers! Quote Link to comment Share on other sites More sharing options...
php1 Posted October 29, 2008 Author Share Posted October 29, 2008 i am not using gmail. i am using another account. it was working fine for me till yesterday from the last 4 months. but today it is not working. is it because of any network configuration changes.? where i have to check whethre mail function is correctly configured? Quote Link to comment Share on other sites More sharing options...
solon Posted October 29, 2008 Share Posted October 29, 2008 if you can use the internet i dont think that there are any additional configuration to do! The only thing i would think that might be wrong is the email provider! Check the email account you are using if it gets any other emails from another account! If you have inbox mails from others, then the last thing is your hosting server! Quote Link to comment Share on other sites More sharing options...
php1 Posted October 29, 2008 Author Share Posted October 29, 2008 yes it receives mail from other accounts. hosting server means? what i have to do for that? thank u for ur help .can u plz provide me with any other email address, so that i can make sure that it is the problem with hosting server Quote Link to comment Share on other sites More sharing options...
solon Posted October 29, 2008 Share Posted October 29, 2008 you can create a free email account like (hotmail, gmail, yahoo, etc) and use that one instead of the one you are using now to check if its a problem with the email account or the server that you host your website on! Example: <?php mail("your_email@hotmail.com","testsub","testmessage"); ?> Quote Link to comment Share on other sites More sharing options...
everisk Posted October 29, 2008 Share Posted October 29, 2008 Your email might be blocked by the email provider (such as Hotmail, Gmail, or etc). This can happen if you send bulk mailing. Quote Link to comment Share on other sites More sharing options...
php1 Posted October 29, 2008 Author Share Posted October 29, 2008 i am testing from local server. It is not blocked because it is working fine till yesterday. I also tried with other address like test@rediffmail.com. but it is also not working? any other changes in php.ini. or http.conf has to be made. whether it is not working because of any configuration changes Quote Link to comment Share on other sites More sharing options...
solon Posted October 29, 2008 Share Posted October 29, 2008 You cannot send an email from a local server! The reason is that there is no SMTP server on your computer! In order to check it you have to upload it online! Quote Link to comment Share on other sites More sharing options...
php1 Posted October 29, 2008 Author Share Posted October 29, 2008 no i am using it till yesterday. everything works fine for me till yestreday. in php.ini SMTP = localhost; smtp_port = 25; sendmail_from= no value; sendmail_path = /usr/sbin/sendmail -t -i; any other things i have to check Quote Link to comment Share on other sites More sharing options...
solon Posted October 29, 2008 Share Posted October 29, 2008 Unfortunately i dont know what else might be the problem! Did you try to use a different email account? Quote Link to comment Share on other sites More sharing options...
php1 Posted October 29, 2008 Author Share Posted October 29, 2008 yes i tried. but mails are not receiving there also Quote Link to comment Share on other sites More sharing options...
php1 Posted October 29, 2008 Author Share Posted October 29, 2008 thank u so much for ur help. it is not working with my com. account and rediffmail.com. but working with gmail now. so how can i rectify the problem now? to send mails to my company account Quote Link to comment Share on other sites More sharing options...
solon Posted October 29, 2008 Share Posted October 29, 2008 The problem in this case is that the email provider might have blocked the emails sent from your computer to your company email account! You should try and contact them to let them know about the problem! Quote Link to comment Share on other sites More sharing options...
php1 Posted October 29, 2008 Author Share Posted October 29, 2008 Thank u so much solon for ur great help Quote Link to comment Share on other sites More sharing options...
php1 Posted October 29, 2008 Author Share Posted October 29, 2008 in this case although i am not getting the mails in my inbox i am getting success messages. how to generate the error messages in this case? Quote Link to comment Share on other sites More sharing options...
solon Posted October 29, 2008 Share Posted October 29, 2008 You may be able tp request a "recieved notification" and if you dont received it back then generate the error! Although i have no idea how and if this is possible! You can search in google or create a new thread in this forum and if someone knows something you ll get there! Quote Link to comment Share on other sites More sharing options...
php1 Posted October 29, 2008 Author Share Posted October 29, 2008 ok I will do that .thank u solon Quote Link to comment Share on other sites More sharing options...
solon Posted October 29, 2008 Share Posted October 29, 2008 My pleasure 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.