Skip to content

Instantly share code, notes, and snippets.

@Doopin
Doopin / EmailService.php
Created September 16, 2016 10:00
Zend raises an exception if my email subject contains non-ASCII charcters. How to solve it please?
/*
* Here is one method of my email service.
* When the email subject contains non ASCII characters, its raised and exeption "invalid subject detected"
* It works like a charm if subject only contains ASCII characters
*/
/**
* Send an email
* @param \xxxxx\Model\Interfaces\Messages\EmailInterface $emailObject
* @return boolean
@Doopin
Doopin / module.config.sample.php
Last active December 28, 2017 18:29
Module Config
<?php
[
'router' => [
'routes' => [
'api.rest' => [
'type' => 'Hostname',
'options' => [
'route' => 'api.site.dev'
],