Giter VIP home page Giter VIP logo

acmailer's Introduction

AcMailer

Build Status Code Coverage Latest Stable Version Total Downloads License Paypal Donate

This module provides an easy and flexible way to send emails from Mezzio and Laminas MVC applications (formerly known as Zend Expressive and Zend MVC). It allows you to pre-configure emails and transports, and then send those emails at runtime.

You will be able to compose emails from templates, and easily add attachments using different strategies.

Important!

This package is abandoned. More info

Installation

The recommended way to install this module is by using composer.

composer require acelaya/acmailer

If this gives you any problem, try using the old package name.

composer require acelaya/zf2-acmailer

Documentation

You can browse the online documentation here https://acmailer.github.io/acmailer.


Thanks to JetBrains for their support to open source projects.

PhpStorm

acmailer's People

Contributors

acelaya avatar bartoszzajac avatar brunoberck avatar dlondero avatar jeremiahsmall avatar kusmierz avatar lahmann avatar madcat34 avatar omarev avatar samsonasik avatar scyt8l3 avatar wermerb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

acmailer's Issues

Send mail from console

When I use the console to execute something, I have:

Zend\View\Renderer\PhpRenderer::render: Unable to render template "application/layout"; Could not resolve resolves to the file

Any idea what can be?

addTo() - Adding emails each Time - How do I clear the mailing process?

I'm sending several mails and in the loop where I'm sending the mailing...

1 - $message = $this->getMailService()->getMessage();
2- $message->setFrom($sender);
$mailService->setSubject($subject)
->setTemplate();

3- $message->addTo($u->getEmail());

4- $result = $this->getMailService()->send();

But each time is adding the new email adress to the new message. How do I clear this addTo to empty?

Thanks.

Allow any Transport object in configuration, even third party ones

  • Add configuration for standard mail transport objects (sendmail, smtp and file)
  • Allow to define a service which returns the transport object, so users can use their own Transport implementations
  • Also, specify in the dist config file wich configuration options are specific for each standard transport object
  • Add new configuration options to README file

No ViewRenderer in Console

Hi. Me again. Have you ever tried to send a mail from a console route? In this case the ServiceManager doesn't provide the ViewRenderer which is indicated in the constructor of the MailService so that I get a Fatal Error.

For the console you could add an additional factory which doesn't indicate the ViewRenderer, so that if anybody uses a template and didn't set it manually, the MailService throws an exception.

MailService mustn't be shared

Hi. At first... nice job.

If you get the MailService several times in one script, you get the following error:
"Fatal error: Call to undefined method ArrayIterator::setType() in ... /vendor/zendframework/zendframework/library/Zend/Mail/Message.php on line 396"

So please configure the ServiceManager not to share the "AcMailer\Service\MailService" in config/module.config.php like this:
'factories' => array(
...
),
'shared' => array(
'AcMailer\Service\MailService' => false
),

Thanx.

Call to undefined method ArrayIterator::setType()

I get the same error as #21

The content-type header seems to be set as ArrayIterator instead of Zend\Mail\Header\ContentType.

The error is produced by line 396 of the Zend\Mail\Message, so it may be an error of the ZF2. It seems like it came from line 281-300 of Zend\Mail\Header.

But it only happens if any attachments are added using the mail service. If you comment out line 97-102 of AcMailer\Service\MailService, the mail is getting sent without failure.

The ContentType header exists two times, instead of one. But I have no idea at the moment, where they both come from. Both are added but have the type GenericHeader instead of ContentType.

Add support for attachments

Allow users to add attachments by including addAttachment and setAttachments methods in MailServiceInterface

Closure in module config will cause fatal if config cache is enabled

instead of putting it to module.config.php you can move all closures into Module.php methods getServiceConfig or getControllerConfig (depends of which manager configuration it is) and return array with factories with clusures. in that case application with your module will be able to cache configuration and factories with closures will be loaded in your Module.php

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.