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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:54:30+00:00 2026-05-24T22:54:30+00:00

So, I downloaded and installed smtp4dev. When i try sending a mail in my

  • 0

So, I downloaded and installed smtp4dev.

When i try sending a mail in my php file:

mail('localhost', "Hey there", "no");

i get an error from php.ini, complaining that sendmail_from isnt declared.

I tried declaring it:

sendmail_from = postmaster@localhost

That made php silent, but still doesnt work – tries to load the page for 30 seconds and then another error. Fatal error: Maximum execution time of 30 seconds exceeded.

How must i configure php.ini for it to work?

php.ini

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log = "C:\xampp\apache\logs\php_mail.log"
  • 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-24T22:54:31+00:00Added an answer on May 24, 2026 at 10:54 pm

    Author of smtp4dev here:
    Sorry, that was probably the following bug:
    http://smtp4dev.codeplex.com/workitem/6080

    Your php.ini looks correct. Try again with the latest release from CodePlex and you should be fine.

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

Sidebar

Related Questions

I have downloaded and installed Eclipse for PHP Developers from here: http://www.eclipse.org/downloads/ I also
I recently downloaded and installed PHP for Android. I created a .php file that
I downloaded and installed AdventureWorks db for sql server 2008. Are there any exercises
I had downloaded and installed the 1.6.9 version of SVN from http://subversion.tigris.org/ . After
Does the Silverlight runtime have to be downloaded/installed deliberately, or these days is there
I downloaded and installed FB4 beta 2. I want to try out some of
I have downloaded and installed linq-to-sqlite from http://sqlite.phxsoftware.com/ But the following test code: [
I've downloaded and installed from here... http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=13480 As suggested here.. Getting started with Exchange
I installed (downloaded) Eclipse Helios (SR2-win32-x86_64). When I start eclipse.exe , I get the
I'm trying to learn Ada from Wikibooks. I've downloaded and installed GNAT GPL 2011,

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.