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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:27:06+00:00 2026-05-28T04:27:06+00:00

I have a rackspace cloud where I want to set up LAMP. the server

  • 0

I have a rackspace cloud where I want to set up LAMP. the server has CentOS.

I have sendmail installed and the php mail function use this, but it takes too long to send an email using the php mail function

<?php

ini_set('display_errors', true);
error_reporting(E_ALL);

  $to = "email@somedomain.com"
  $subject = "activation code";
  $message = "Activation code: 10";
  $from = "activate@mywebsite.com ";
  $headers = "From: $from";
  if(mail($to, $subject, $message, $headers)) { 
      echo 'success'; 
  }
  else { echo 'deny'; }

but this takes a lot of time, and when I ask rackspace about this they said the mail function might be using a public mailserver to send emails and as the queue is too long it takes time. but I have another email server too.

is there anyway I can get this to work fast? and can I make the send mail installation to use that email server I have ?

  • 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-28T04:27:06+00:00Added an answer on May 28, 2026 at 4:27 am

    Try using the PHP Pear Mail package it allows you to send via sendmail, pop, smtp, or imap http://pear.php.net/packages.php?catpid=14&catname=Mail theres also the ability to easily add attachments and queue messages.

    I had the same issue on my rackspace cloud and this resolved it.

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

Sidebar

Related Questions

I'm using Rackspace Cloud Servers. I have installed NGINX with PHP and Memcache. When
I have a Apache server running at Rackspace Cloud Hosting, so I've installed Wordpress
I have got rackspace cloud server and i have installed lamstack and more. Its
I have a Rackspace Cloud Server, where I host my site, the problem is
I'm considering migrating from Heroku to Rackspace Cloud Server, but I have few questions.
So I have been running the numbers for Azure and RackSpace Cloud Servers and
If I am running more than two instances of a server (using rackspace-cloud's ip
I have used to the Rackspace API to upload files to the RackSpace cloud.
I currently have a .net web application on a cluster based system (Rackspace cloud).
We have cloud-hosted (RackSpace cloud) Ruby and Java apps that will interact as follows:

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.