We are having a problem with receiving our website’s contact form. We want the form to reset and show the “Message sent successfully” after clicking the submit button and send the populated form to our email address. This is how the code looks like in mail.php:
env(‘smtp’),
/*
|————————————————————————–
| Mailer Configurations
|————————————————————————–
|
| Here you may configure all of the mailers used by your application plus
| their respective settings. Several examples have been configured for
| you and you are free to add your own as your application requires.
|
| Laravel supports a variety of mail “transport” drivers to be used while
| sending an e-mail. You will specify which one you are using for your
| mailers below. You are free to add additional mailers as required.
|
| Supported: “smtp”, “sendmail”, “mailgun”, “ses”,
| “postmark”, “log”, “array”
|
*/
‘mailers’ => [
‘smtp’ => [
‘transport’ => ‘smtp’,
‘host’ => env(‘mail.kzdigitalworks.co.za’),
‘port’ => env(‘465’),
‘encryption’ => env(‘ssl’),
‘username’ => env(‘[email protected]’),
‘password’ => env(‘KZDigitalworks@2020’),
‘timeout’ => null,
‘auth_mode’ => null,
],
],
/*
|————————————————————————–
| Global “From” Address
|————————————————————————–
|
| You may wish for all e-mails sent by your application to be sent from
| the same address. Here, you may specify a name and address that is
| used globally for all e-mails that are sent by your application.
|
*/
‘from’ => [
‘address’ => env(‘[email protected]’),
‘name’ => env(‘KZ DIGITAL WORKS WEBSITE’),
],
/*
|————————————————————————–
| Markdown Mail Settings
|————————————————————————–
|
| If you are using Markdown based email rendering, you may configure your
| theme and component paths here, allowing you to customize the design
| of the emails. Or, you may simply stick with the Laravel defaults!
|
*/
‘markdown’ => [
‘theme’ => ‘default’,
‘paths’ => [
resource_path(‘views/vendor/mail’),
],
],
];
Katleho Zach Dlamini is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.