Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6926681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:57:01+00:00 2026-05-27T10:57:01+00:00

Why the mail function not sending mail to me ,Could any one please help

  • 0

Why the mail function not sending mail to me ,Could any one please help me ?
Here i have wrote script to mail sending.
Is there any other settings to send mail.
But the mail function printing always “Success” , but the mail not received to me.

$Msg = "Your Suggestion is saved successfully. Please wait for admin approval";
        $subject="New Suggestion Posted - Waiting for approval";

        //$email_id = 'bajrang.lal@sunarctechnologies.com';
        $email_id = 'bajrang.lal@sunarctechnologies.com';
        $mail_msg="Hello Admin,<br><br>New Suggestion Posted. Waiting for approval.<br><br>
         Suggestion : ".$frmdata['description']."<br><br> Click here for <a href='http://www.tatanykshipping.com/index.php'>login</a><br><br> Thanks,<br>The TATA NYK Team";  

        $headers  = 'MIME-Version: 1.0' . "\r\n";
        $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
        $headers .= "From: Tata NYK <".$_SESSION['EMAIL_ID'].">\r\n"; 
        $headers .= "Organization: Tata NYK\r\n";
        echo '<br>sending mail to = ',$email_id; 
        if(mail($email_id,$subject,$mail_msg,$headers))
          echo '<br>Successs';
        else 
          echo '<br>Fail'; 

Thanks a lot in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:57:01+00:00Added an answer on May 27, 2026 at 10:57 am

    If your PHP application is running on Linux and expecting to send mail from that system, you need a transport. I use sendmail, but there are other open source transports you can use. You may also have to install an email client, but I do not know how PHP interacts with sending mail. My applications act like an email client, and need the email client installed.

    You also need to make sure that the email recipient will accept unsolicited port 25 traffic. Because of spam-ware, our firewall won’t accept unsolicited port 25 traffic, so I have doctored up sendmail to log into our email server as a legitimate email account.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

before few days i have been comfortably sending emails using PHP mail function. but
In my site there have some mailing options.Here iam sending an html mails. So
I am sending the echo to mail function via PHP from variable that includes
I have a PHP application that sends email using the pear Mail function. Unfortunately
sending mail along with embedded image using asp.net I have already used following but
I'm quite stuck with a problem sending mail from a PHP script. Some data:
I'm using the PHP native mail() function to send HTML emails and have a
I have a mail function $to = fahad@somewhere.com; $subject = Voucher Number: .$voucher; $message
I have a function for sending email. This function works normally, but it always
I have a function thats sending messages ( a lot of them) and their

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.