givanz / Vvveb

Powerful and easy to use cms to build websites, blogs or ecommerce stores.
https://www.vvveb.com
GNU Affero General Public License v3.0
241 stars 49 forks source link

How config send email with smtp? #29

Open MazirGaming opened 1 year ago

MazirGaming commented 1 year ago

I have smtp configured, however when I make payment I don't know how to send about email. Can you help me? why function in checkout() only pass 3 parameters? while the function defined in the function.php file passes 4 parameters? Thanks!

MazirGaming commented 1 year ago

to send smtp mail, what should be edited? which files? and where to fix? Thank you very much

givanz commented 1 year ago

Hi

Sorry for the inconvenience, the email sending code was not complete, it is now working with the last update, please redownload the zip and update the files.

To setup smtp you can change the email config from admin > settings > email settings or you can simply edit config/mail.php directly and set the driver to smtp and configure the server parameters.

return [
    'driver' => 'smtp', //smtp
    'smtp'   => [
        //'host'     => 'tls://smtp.gmail.com', //ssl://smtp.gmail.com
        'host'     => 'tls://smtp-relay.sendinblue.com',
        'user'     => 'youremail@gmail.com',
        'password' => 'thisisfakepassword',
        'port'     => '587', //tls = 587, ssl = 465
        'timeout'  => '5',
    ],
];

There are still some work to do on the email part, currently only reset and new order templates are finished, the remaining templates such as new user etc will be finished in the next update.