I'm able to send email on a linux server using PHPmailer https://github.com/Synchro/PHPMailer without putting my email address, password or host address like from the PhpMailer website. I was wondering if I can do it on my windows local machine since I would prefer to do testing on my local machine. Right now, I always upload to the linux server to test my code. Is there anyway to maintain my code and send email through my local windows machine? Do I have to install like a mail server or something? Please recommend. Thanks.
Below is part of my php code for sending email. Unlike the example given from the PhpMailer website, I don't have to include my email add or password.
$mailbody = "<p>Testing email send</p>";
//Create a new PHPMailer instance
$mail = new PHPMailer();
$mail->setFrom('nodeffect@gmail.com', 'nodeffect');
$mail->addReplyTo('nodeffect@gmail.com', 'nodeffect');
$mail->addAddress(example@yahoo.com, Somename);
$mail->Subject = 'Email Testing';
$mail->msgHTML($mailbody);
$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!';