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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:37:46+00:00 2026-05-11T17:37:46+00:00

I wish to send an email from my localhost machine (using PHPs mail function)

  • 0

I wish to send an email from my localhost machine (using PHPs mail function) but I can not do this since I don’t have a mail server. In addition, I need to be able to send emails through a network that is heavily firewalled (to what extent I do not know yet).

My idea is to make use of “QK SMTP Server 3” and get that to use an external server I have as a “Relay server”. Will this work? Is there an easier option?

If my approach is Ok. I would like to know how I can open port 25 on my server so it can receive this request. By executing this command I get:

[root@balder296 ~]# service iptables status
Firewall is stopped.
[root@balder296 ~]#

Thank you for any help and advice.

Solved

Hotmail (surprisingly) provides a free relay service. I hope this works for me when I test this! But an external mail server is the way to go.

  • 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-11T17:37:46+00:00Added an answer on May 11, 2026 at 5:37 pm

    Figure out if you can connect to the Internet on port 25 (SMTP)

    • telnet gmail-smtp-in.l.google.com 25 (this is one of the Gmail servers)

    If you’re able to open up a connection, you can simply install a mail-server and use the mail() function to send messages.

    • yum install postfix (for example, from your ‘service’ remark I assume you’re running Redhat or Centos)

    If you’re unable to connect to Internet mail servers on port 25, you can try finding an internal mail relay (this is something you will have to find yourself, depending on your network).

    At that point you have two options. You can use the internal mail() function with your local mail server if you define the ‘relay’ parameter in your mails-server (/etc/postfix if you’re using Postfix).

    The other option is to follow this guide and get get PHP to send the messages to an internal relay.

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

Sidebar

Ask A Question

Stats

  • Questions 221k
  • Answers 221k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It's just multiple calls: document.getElementById(today).style.visibility = "visible"; document.getElementById(today).style.color = "red";… May 13, 2026 at 12:15 am
  • Editorial Team
    Editorial Team added an answer I ended up supplying a DOM structure to pass the… May 13, 2026 at 12:15 am
  • Editorial Team
    Editorial Team added an answer At a very high level, I'd call it a Factory… May 13, 2026 at 12:15 am

Related Questions

I wish to pass some data to the delegate method, of a Process object,
I have a target in my build script that will send an email with
Does anyone have any insights regarding compiling Ruby code for Windows? I've tried both
Does all SMTP communication send emails between domains on port25? Is all communication unsecured?

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.