- Member | 8
I have just been studying the docs regarding sending an email for account verification but I am getting the error Nette\Mail\SendException Unable to send email.
My code is as follows and I am running it on my laptop via xampp until I am ready to upload it to a server
$mail = new Nette\Mail\Message; $mail->setFrom('John <email@example.com>') ->addTo('firstname.lastname@example.org') ->setSubject('Test') ->setBody("Test") $mailer = new Nette\Mail\SendmailMailer; $mailer->send($mail);
Is there another step I am missing?