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
293 stars 62 forks source link

Unable to send Test email through vvveb admin #182

Open siddhantprateek opened 3 weeks ago

siddhantprateek commented 3 weeks ago

I've encountered an issue when attempting to send a test email through vvveb. Despite configuring the mail.php file as below:

<?php

return [
    'driver' => 'smtp', //smtp
    'smtp'   => [
        'host'     => '$SMTP_HOST',
        'user'     => '$SMTP_LOGIN',
        'password' => '$SMTP_PASSWORD',
        'port'     => '$SMTP_PORT', 
        'timeout'  => '5',
    ],
    'from'           => 'Admin',
    'from_address'   => '$SMTP_LOGIN',
    'sendmail'       => '/usr/sbin/sendmail -bs',
];

The system throws an error:

title is undefined at /system/function.php

Expected Behavior:

The email should be sent successfully without any errors.

Actual Behavior:

The system returns an error stating "title is undefined at /system/function.php".

It seems the issue might be related to a missing test email description.

https://github.com/givanz/Vvveb/blob/576a3124f90290dcb2968585dd48245466884fc3/system/functions.php#L1343

givanz commented 3 weeks ago

Can you please check if a site title is set for the selected site language in admin > settings > site > description > site title?

https://demo.vvveb.com/admin/index.php?module=settings/site&site_id=1

siddhantprateek commented 3 weeks ago

image

im not sure why its showing blank to me

givanz commented 3 weeks ago

Do you have any active languages?

You must have at least one language enabled and set as default in settings > localization languages https://demo.vvveb.com/admin/index.php?module=localization/languages

siddhantprateek commented 3 weeks ago

Thanks @givanz, that worked 🙌