Jump to content

problem with sending mail


php1

Recommended Posts

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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");
?>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.