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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:53:51+00:00 2026-06-14T08:53:51+00:00

I am writing a small web app that uses PHP code to email a

  • 0

I am writing a small web app that uses PHP code to email a phone number (the person with the phone number sees it as a text message, and not as an email of course). Every phone service has email to text. For example, Verizon in the US uses @vtext.com.

My problem is this, the FROM on the SMS always says “6245” which is apparently standard for SMS’s from the Verizon email domain (vtext.com). Can I change this in code with a more human readable From rather than this seemingly random number?

Here is my code using PHP mailer:

            $from = $_POST['email'];
            $from = filter_var($from, FILTER_SANITIZE_EMAIL);
            $message .= $guest . ' waiting at Office. Checked in at ';
            $message .= strftime("%l:%M %p (%A %b %e, %Y)", time());

            // PHP SMTP mail version

            $mail = new PHPMailer();

            $result = mysql_query("SELECT * FROM users WHERE onduty = 1");

            $recipients = array();

            while ($row = mysql_fetch_array($result)) {
                $recipients[] = $row['phone'] . $row['carrier'];

            }

            foreach ($recipients as $email) {
                $mail -> AddAddress($email);

            }

            $from_name = "Riverstone Notification";
            $subject = "Person in Office";

            $mail -> IsSMTP();
            $mail -> Host = "relay-hosting.secureserver.net";
            $mail -> Port = 25;
            $mail -> SMTPAuth = false;
            $mail -> Username = "EMAIL_USER";
            $mail -> Password = "EMAIL_PASS";
            $mail -> FromName = $from_name;
            $mail -> From = $from;
            $mail -> Subject = $subject;
            $mail -> Body = $message;

            $result = $mail -> Send();
  • 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-14T08:53:52+00:00Added an answer on June 14, 2026 at 8:53 am

    No, when you’re using the Verizon’s service, that no. is going to be standard, because it comes from Verizon’s SMS gateway.
    You would have to get a paid service, if you need flexibility on that.

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

Sidebar

Related Questions

I'm writing a small web app that will receive and parse tab-delimited text files
I'm in the process of writing a small web app that would allow me
I am writing a small app that retrieves some html from a web server
I'm writing a small JavaScript program that makes web calls to pull up weather
I am writing small app, using Play Framework 2.0 which uses Ebean as ORM.
Coming from a PHP background, I'm used to writing small functions that return a
I am developing a small web app that internally authenticates users. Once the user
I'm writing a small web app for myself in Rails and I want it
I'm writing a small non-commercial web app, and I'm wondering how to pass data
We are writing a corporate app which will run on a small number of

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.