Once you have downloaded the XAMPP portable file, you need to double click on the file to run the installation. During the installation you will be asked to select the location where you want to install XAMPP.
So I've tried a couple of things but it I'm just unable to send a mail from php on my XAMPP server. I'm using OSX Yosemite and in terminal I can mail to the local mail client which I've setup and also to my external mail. I even switched to Netbeans IDE and tried the code in it's built in php server which worked but on my xampp server it just doesn't send. I've been trying to use PHPMailer send an email but it doesn't seem to work everything seems fine.
Whenever I send a mail I get this error:
Any help? Have been trying to figure this out for hours now
2 Answers
Configure SMTP Server first to send the email. SMTP configuration is necessary to work the mail function.
See my sample in Can't get PHPMailer working
Your $mail->Host = 'HOST_ADDRESS';
needs to be specified, or just use 'smtp'