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 2mo 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 10% 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://www.gravatar.com/avatar/413897a0aac7a60d32f8cadc18d590daaa596a0644c2d871065366839cb88ff3?d=identicon)[unarealidad](/maintainers/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

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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