-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Throw fatal error #41
Comments
What do you use for autoloading? |
At what do you refeer with autoloading? |
Because this looks like autoloading problem (class not found...) |
I download |
I downloaded and uncompressed on my directory project. And i was testing with that code and show me error . |
It should be installed via |
ok ok ok , i get it. 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No work. i am attempting to send a mail but it give me this:
Fatal error: Uncaught Error: Class 'Nette\Mail\Message' not found in C:\xampp\htdocs\Pasantias pdf\Registro\componentes\correo.php:4 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Pasantias pdf\Registro\componentes\correo.php on line 4
my code is the following:
use Nette\Mail\Message;
$mail = new Message;
$mail->setFrom('Jorge ********@gmail.com')
->addTo('@gmail.com')
->setSubject('Order Confirmation')
->setBody("Hello, Your order has been accepted.");
$mailer = new Nette\Mail\SmtpMailer([
'host' => 'smtp.gmail.com',
'username' => '@gmail.com',
'password' => '*****',
'secure' => 'ssl',
'context' => [
'ssl' => [
'capath' => '/path/to/my/trusted/ca/folder',
],
],
]);
$mailer->send($mail);
The text was updated successfully, but these errors were encountered: