PHPackages                             jaimevalasek/jv-mail - 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. jaimevalasek/jv-mail

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

jaimevalasek/jv-mail
====================

A generic module send e-mail for ZF2.

1461PHP

Since Sep 26Pushed 12y ago1 watchersCompare

[ Source](https://github.com/jaimevalasek/JVMail)[ Packagist](https://packagist.org/packages/jaimevalasek/jv-mail)[ RSS](/packages/jaimevalasek-jv-mail/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

JVMail - JV Mail
================

[](#jvmail---jv-mail)

Create By: Jaime Marcelo Valasek

Use this module to send emails from your website.

Futures video lessons can be developed and published on the website or Youtube channel

Installation
------------

[](#installation)

Download this module into your vendor folder.

After done the above steps, open the file config / application.config.php. And add the module with the name JVMail.

Using the JVMail
----------------

[](#using-the-jvmail)

- Add and configure the code below into the file that is module.config.php
- Authentication Options 'transportSsl' and type of connection between ssl and tls

```
'JVMail' => array(
    'transport' => array(
        'smtpOptions' => array(
            'host' => 'smtp.domain.com',
            'port' => 587,
            'connection_class' => 'plain',
            'connection_config' => array(
                'username' => 'user@domain.com',
                'password' => 'password',
                'from' => 'anyemail@domain.com'
            ),
        ),
        'transportSsl' => array(
            'use_ssl' => false,
            'connection_type' => 'tls' // ssl, tls
        ),
    ),
    'options' => array(
        'type' => 'text/html',
        'html_encoding' => \Zend\Mime\Mime::ENCODING_8BIT,
        'message_encoding' => 'UTF8'
    )
),
```

how to use
----------

[](#how-to-use)

- You need to create the html template within the module that sends the email, exemplo:

application/view/mailtemplates/teste.phhtml

- You can insert variables into the view template using the setData code sending email below, for example:

$mail = new Mail($this-&gt;getServiceLocator()-&gt;get('servicemanager')); $mail-&gt;setData(array('nome' =&gt; 'Jaime Marcelo Valasek', 'email' =&gt; ''))

- html the template

```
Teste de envio de email pelo Modulo JVMail.

Nome: nome?>
Email: email?>
```

- Full PHP code to instantiate the class mail and send the mail.

```
use JVMail\Service\Mail;

$mail = new Mail($this->getServiceLocator()->get('servicemanager'));
$mail->setSubject('Teste de envio de email pelo modulo JVMail')
    ->setTo('recipientemail@domain.com')
    ->setData(array('nome' => 'Jaime Marcelo Valasek', 'email' => 'jaime.valasek@gmail.com'))
    ->setViewTemplate('teste')
    ->send();
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

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/c9b089b4d5ecfd26e5e4ef9013233a15d7598296ca76da1c92848dd41bec9d87?d=identicon)[jaimevalasek](/maintainers/jaimevalasek)

---

Top Contributors

[![jaimevalasek](https://avatars.githubusercontent.com/u/4160763?v=4)](https://github.com/jaimevalasek "jaimevalasek (8 commits)")

### Embed Badge

![Health badge](/badges/jaimevalasek-jv-mail/health.svg)

```
[![Health](https://phpackages.com/badges/jaimevalasek-jv-mail/health.svg)](https://phpackages.com/packages/jaimevalasek-jv-mail)
```

###  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.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M52](/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)
