Home > Software design >  PHP and XAMPP : sendmail folder does not exist
PHP and XAMPP : sendmail folder does not exist

Time:04-01

I'm currently reading the book "Head First : PHP and MySQL". In one of the chapters, they demonstrated how to send an email with the PHP function

mail()

I couldn't send an email with it. I searched it up on Google, and found out that I need a folder called "sendmail" in my xampp directory and I do not have it.

Is there another way to send an email using PHP that does not require the sendmail folder? Or even a way to fix this dissapearance of sendmail folder? Thank you in advance.

Note : I'm a beginner in PHP

I tried editing the php.ini file in my php folder inside my xampp directory. However, most blog and articles that I've read instructed me to find a folder called sendmail, which I do not have. Having the sendmail folder would allow me to edit the contents of the sendmail.ini file. But since I do not have it, I can not change anything, therefore I can't send an email with the traditional mail() function from PHP.

CodePudding user response:

xamp email not working on offline, you need to be online server. before someday it's working offline, but you should go online with any apache server it's working mail function

CodePudding user response:

If you want to send mail on your local server with xampp, you have to install a tool to receive the mails. I use https://toolheap.com/test-mail-server-tool/users-manual.html.

  • Related