PHPackages                             unarealidad/canarium-libraries-goalio-mail-service - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. unarealidad/canarium-libraries-goalio-mail-service

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

unarealidad/canarium-libraries-goalio-mail-service
==================================================

Sends Email using a Google Account defined in the configuration

07PHP

Since Dec 23Pushed 9y agoCompare

[ Source](https://github.com/unarealidad-tech-studio/canarium-libraries-goalio-mail-service)[ Packagist](https://packagist.org/packages/unarealidad/canarium-libraries-goalio-mail-service)[ RSS](/packages/unarealidad-canarium-libraries-goalio-mail-service/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

GoalioMailService
=================

[](#goaliomailservice)

Sends Email using a Google Account defined in the configuration.

Configuration
-------------

[](#configuration)

Create a file `goaliomailservice.local.php` in you appinstance's `config/autoload/` directory.

Paste the following in the file:

```
$google_username = '';
$google_password = '';

/**
 * You do not need to edit below this line
 */
return array(
    'goaliomailservice' => array(
        'transport_class' => 'Zend\Mail\Transport\Smtp',

        'options_class' => 'Zend\Mail\Transport\SmtpOptions',

        'options' => array(
            'host' => 'smtp.gmail.com',
            'connection_class' => 'login',
            'connection_config' => array(
                'ssl' => 'tls',
                'username' => $google_username,
                'password' => $google_password
            ),
            'port' => 587
        )
    )
);
```

Add the value for `$google_username` and `$google_password` with the credentials from your google account. Take note that this is a local file and will not be commited to the repository.

That is all you need to send email in canarium.

Sending Email
-------------

[](#sending-email)

Once initialized, the service `goaliomailservice_message` will be available for you to retrive via Service Manager. Example:

```
$mailService = $this->getServiceLocator()->get('goaliomailservice_message');
```

Now send an email

```
  $message = $mailService->createHtmlMessage(
      $$from_email,
      $to_email,
      $subject,
      'index/email',
      $params
  );

  $mailService->send($message);
```

Available Methods
-----------------

[](#available-methods)

### createHtmlMessage

[](#createhtmlmessage)

Return a HTML message ready to be sent

```
public function createHtmlMessage($from, $to, $subject, $nameOrModel, $values = array()):MailMessage;
```

ParameterDescription$fromA string containing the sender e-mail address, or if array with keys email and name$toAn array containing the recipients of the mail$subjectSubject of the mail$nameOrModelEither the template to use, or a ViewModel$valuesValues to use when the template is rendered. The variables passed will be assessible to the template specified in $nameOrModel### createTextMessage

[](#createtextmessage)

Return a text message ready to be sent

```
public function createTextMessage($from, $to, $subject, $nameOrModel, $values = array()):MailMessage;
```

ParameterDescription$fromA string containing the sender e-mail address, or if array with keys email and name$toAn array containing the recipients of the mail$subjectSubject of the mail$nameOrModelEither the template to use, or a ViewModel$valuesValues to use when the template is rendered. The variables passed will be assessible to the template specified in $nameOrModel### send

[](#send)

Sends the MailMessage

```
public function send(MailMessage $message)
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1972947?v=4)[unarealidad](/maintainers/unarealidad)[@UnaRealidad](https://github.com/UnaRealidad)

---

Top Contributors

[![unarealidadtech](https://avatars.githubusercontent.com/u/24706184?v=4)](https://github.com/unarealidadtech "unarealidadtech (6 commits)")

### Embed Badge

![Health badge](/badges/unarealidad-canarium-libraries-goalio-mail-service/health.svg)

```
[![Health](https://phpackages.com/badges/unarealidad-canarium-libraries-goalio-mail-service/health.svg)](https://phpackages.com/packages/unarealidad-canarium-libraries-goalio-mail-service)
```

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
