library zend-mailj
Zend Mail for Japanese
reioto/zend-mailj
Zend Mail for Japanese
- Thursday, March 19, 2015
- by reioto
- Repository
- 1 Watchers
- 0 Stars
- 35 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
ZendMailJ
Zend Mail でISO-2022-JPのメールを送れるようにしたラップクラスです。, (*1)
Installation
composer, (*2)
composer.json
{
"require": {
"reioto/zend-mailj":"dev-master"
}
}
#php composer.phar install
Usage
function recipientFilename($transport)
{
return $transport->recipients . '_' . mt_rand() . '.tmp';
}
$tr = new Zend_Mail_Transport_File(array('callback' => 'recipientFilename',
'path' => dirname(__FILE__)
));
$mail = new Zend_MailJ();
$mail->setFrom('from@example.com', '差出人名');
$mail->addTo('to@example.com', '宛名');
$mail->setSubject('件名です。件名です。件名です。件名です。');
$mail->setBodyText('メール本文');
$mail->send($tr);
dev-master
9999999-dev
Zend Mail for Japanese
Sources
Download
BSD-3-Clause
The Requires
The Development Requires
mail
framework
zendframework
1.0.1
1.0.1.0
Zend Mail for Japanese
Sources
Download
BSD-3-Clause
The Requires
The Development Requires
mail
framework
zendframework
1.0
1.0.0.0
Zend Mail for Japanese
Sources
Download
BSD-3-Clause
The Requires
mail
framework
zendframework