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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:36:08+00:00 2026-05-23T08:36:08+00:00

I am trying to send text messages to my phone from my server using

  • 0

I am trying to send text messages to my phone from my server using php. I recently configured the server to send email, which it does (verified). It, however, goes into my spam box. When I try to send a message via sms I do not receive anything.

This is the script I am using:

$to = "myemailaddress@gmail.com";
$subject = "testing";
$body = "";
$headers = 'From: testemailaddress@gmail.com';

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

The address that I am using for sms is myphonenumber@txt.att.net in the ‘To’ field.

I am going to go out on a limb here and say this is a authentication issue, maybe.

Is there anything I need to configure further? (i.e. php.ini)

  • 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-23T08:36:09+00:00Added an answer on May 23, 2026 at 8:36 am

    Most email providers/servers today rely heavily on spam filtering / dnsbl. Your webserver is not a know mail server, and you probably did not set up SPF or anything.

    An approach to avoid all those issues would be to utilize a Google Mail address (or any other providers). And instead of the PHP mail function use something more complex like Swiftmailer, which generates Mail headers that are less commonly autoclassified as spam.

    See also: Using php's swiftmailer with gmail

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

Sidebar

Related Questions

I am trying to send some text in an email from my cocoa app
I'm trying to send plain text error messages from a tomcat servlet, so that
I am trying to send an email via GMail from ASP.Net using the code
I'm trying to use the RegisteredWindowMessage API function to send text from one application
I am trying to send an email message with data collected from an html
I'm trying to figure out how some apps send images attached to text messages.
i am trying to use phpMailer to send confirmation messages to users via email.
I am trying to send SMS using php's mail() function. Below you will find
is there any way to send whats in a text view (im trying to
I'm trying to share some text using an intent: Intent i = new Intent(android.content.Intent.ACTION_SEND);

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.