How to configure XAMPP to send mail from localhost?

后端 未结 11 2469
梦如初夏
梦如初夏 2020-11-21 05:17

I am trying to send mail from localhost. but i am unable to send the mail from localhost so can anybody tell me that how to reconfigure my xampp to send mail from localhost

11条回答
  •  后悔当初
    2020-11-21 05:45

    Its very simple to send emails on localhost or local server

    Note: I am using the test mail server software on Windows 7 64bit with Xampp installed

    Just download test mail server tool and install according to the instruction given on its website Test Mail Server Tool

    Now you need to change only two lines under php.ini file

    1. Find [mail function] and remove semi colon which is before ;smtp = localhost
    2. Put the semi colon before sendmail_path = "C:\xampp\mailtodisk\mailtodisk.exe"

    You don't need to change anything else, but if you still not getting emails than check for the SMTP port, the port number must be same.

    The above method is for default settings provided by the Xampp software.

提交回复
热议问题