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 8089081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:17:51+00:00 2026-06-05T19:17:51+00:00

I’ve followed the directions on this page to setup mail() on AWS linux ubuntu,

  • 0

I’ve followed the directions on this page to setup mail() on AWS linux ubuntu, but the mail function is not working. I know I’ve written the send mail script correctly, so is there something else I need in order for this to work? Is there a special webmail software or something I need?

EDIT:

display_errors is on. PHP code is as follows.
Success message is displayed, but the email is never received.

$to = "myemail@gmail.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";

if (mail($to, $subject, $body))
{
    echo("Message successfully sent!");
} 
else
{
    echo("Message delivery failed...");
}

EDIT 2:

I tried sending it to an email hosted by godaddy and a gmail account. Both returned the same response below in the error log.

Error log:

“8C029: host smtp.secureserver.net[...] refused to talk to
me: ––*.... 554 Your access to this mail system has
been rejected due to the sending MTA’s poor reputation. If you believe
that this failure is in error, please contact the intended recipient
via alternate means.”

Nevermind, Gmail received the message 15 minutes later. I guess the two errors were both related to godaddy hosted email.

  • 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-06-05T19:17:52+00:00Added an answer on June 5, 2026 at 7:17 pm

    Nevermind, Gmail received the message 15 minutes later. I guess the two errors were both related to godaddy hosted email.

    The error is indeed not originating in either your mail() code or server setup — Your MTA receives the message from the mail command and tries to deliver the message.

    The error originates from either GoDaddy’s receiving mail server (the one your postfix is trying to deliver the message to). Or one of the SMTP relaying servers along the route.

    The rejection is not unexpected though: You stated that your server is running in AWS. Unfortunately you aren’t the only one mailing from AWS instances. A lot of notorious spammers have preceeded you, ruining AWS’ IP addresses’ credibility as trustworthy mail sources. This is why many ISP’s block incoming mail originating from AWS (Which is what the 554 error is: Relay access denied).

    To worsen your problem: If you keep using this approach AWS will automatically block all outgoing mail from your instances in an attempt to counter the spam issue. After manual validation of your intent they should reinstate your mailing privileges however.

    Your best option on AWS to reliably send email would probably be using their own SES service, which should probably get you past most RBL checks in MTA’s. But SES does cost money..

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Does anyone know how can I replace this 2 symbol below from the string
I need a function that will clean a strings' special characters. I do NOT
I want to construct a data frame in an Rcpp function, but when I
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
this is what i have right now Drawing an RSS feed into the php,

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.