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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:35:58+00:00 2026-05-22T21:35:58+00:00

I have a local development box that I code on before I transfer my

  • 0

I have a local development box that I code on before I transfer my programs to a test server. It’s a basic xampp set up. However, this limits my ability to test on the local box when I have to send mail in my program. Is there a way to mock this? I don’t have any desire to set up a mail server on my local machine. Most questions on this subject on stack deal with setting up a mail server. That’s why I’m asking this particular question.

As always, Thank you for your help and advice.

  • 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-22T21:35:58+00:00Added an answer on May 22, 2026 at 9:35 pm

    I tend to just use GMAIL via SMTP (easy enough to setup a free test GMAIL account). ProjectPier has a tutorial on it, just read between the lines and set it up for your needs: http://www.projectpier.org/node/817

    There is also a generic tutorial, which I would prefer to use, here: http://expertester.wordpress.com/2010/07/07/how-to-send-email-from-xampp-php/

    EDIT

    The gist, just because you cannot trust external sources to stay alive here is re-write of what they talk about:

    First up you will need to edit the php.ini (c:\xampp\php\php.ini). locate the [mail function] and change the following settings:

    SMTP = smtp.gmail.com
    smtp_port = 465
    sendmail_from = gmailusername@gmail.com
    sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
    

    Make sure that you put in your proper xampp install path and drive letter. Next we need to edit the sendmail.ini, c:\xampp\sendmail\sendmail.ini add the following, (note you may have to comment out the mercury section):

    account GmailTest
    tls on
    tls_certcheck off
    host smtp.gmail.com
    from gmailusername@gmail.com
    auth on
    user gmailusername@gmail.com
    password gmailpassword
    port 465
    

    And finally modify the account default and set it to GmailTest and you should be good to go. Credits for the above goto http://expertester.wordpress.com/2010/07/07/how-to-send-email-from-xampp-php/

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

Sidebar

Related Questions

The situation is following. I have a local (development) PHP server (Win + IIS)
I have setup a VM (VMWEB-3) to test local development of Orchard CMS using
I have local IIS server, local SQL server and WCF test service with 3
So i have this local SVN repo that i am using for my dev
I have a development vm which is running sql server as well as some
I have two machines I work on: Windows Client (Development Machine) Linux Web Server
Currently my website (production server) already have a lot of code in it. And
I have an ASP.Net MVC application which runs fine on my local development machine.
Say I have two web servers, one local development and one live. Under SVN
I have a repository set up on a server running Git, the repository has

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.