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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:56:58+00:00 2026-05-29T06:56:58+00:00

I have created some forms using zendframework on my local machine that send the

  • 0

I have created some forms using zendframework on my local machine that send the form content via email.

I would like to test the functionality locally and have read some posts regarding configuring the php.ini file to do this but not sure which is the correct method ?

can anyone help me with this, many thanks

  • 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-29T06:56:59+00:00Added an answer on May 29, 2026 at 6:56 am

    On Windows you will have to use SMTP to send the message. There is a drop in fake sendmail for Windows but it still requires an SMTP server.

    You could use your ISP’s sendmail server if they offer one, or you can set one up on the local machine. 1, 2, 3, 4

    Since you are using Zend Framework, you can alternatively use Zend_Mail to send through an SMTP server (Zend_Mail can also use sendmail, but since it isn’t configured, you can’t use that transport). In that case see Sending via SMTP, SMTP Authentication, and Securing SMTP Transport.

    Here is some sample code for sending an SMTP message with AUTH and TLS security.

    <?php
    
    require_once 'Zend/Mail.php';
    require_once 'Zend/Mail/Transport/Smtp.php';
    
    $config    = array('ssl' => 'tls',
                       'port' => '465', // 25 if no ssl
                       'auth' => 'login',
                       'username' => 'user',
                       'password' => 'password');
    
    $transport = new Zend_Mail_Transport_Smtp('smtp.example.com', $config);
    
    $mail = new Zend_Mail();
    $mail->addTo('user@domain')
         ->setSubject('Mail Test')
         ->setBodyText("Hello,\nThis is a Zend Mail message...\n")
         ->setFrom('sender@domain');
    
    try {
        $mail->send($transport);
        echo "Message sent!<br />\n";
    } catch (Exception $ex) {
        echo "Failed to send mail! " . $ex->getMessage() . "<br />\n";
    }
    

    Also note, your ISP may not require you to auth at all if you are sending from one of their IP addresses, but you probably do have to authenticate with your username and password, in which case you will want to use TLS.

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

Sidebar

Related Questions

I am using ASP.NET2.0. I have created a download form with some input fields
I'm using SQL*Plus 9.2 on Oracle 10g enterprise. I have created some scripts that
I have created some InfoPath forms. I am using MS-Office 2010. I deployed these
I have created some rounded navigation tabs using CSS and am having trouble when
I have created some simple app in Java, and 'deployed' it using Java Web
I have created some functional categories that I use to show/hide markup elements. However,
I am using windows forms application using C#. I have created a dialog box
I have created one Windows Forms application with C# and MySQL (using MySQL Connector
I am using Zend Framework I have a form that allows me to create
I have created a VB.NET Class Library that exposes some COM Interop sub routines.

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.