goalio / goaliomailservice Goto Github PK
View Code? Open in Web Editor NEWProvide configurable Mail Transport Factory and simple messaging for ZF2
License: BSD 3-Clause "New" or "Revised" License
Provide configurable Mail Transport Factory and simple messaging for ZF2
License: BSD 3-Clause "New" or "Revised" License
xfgtjzgfheRFhrdzfhrfheheth
Is there any way, i can set the default from
email address.
Can new version be tagged to support zf3?
I try to install GoalioMailservice without success
here the error when i open my website
Fatal error: Uncaught exception 'Zend\ModuleManager\Exception\RuntimeException' with message 'Module (GoalioMailService) could not be initialized.' in /var/www/myproject/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php on line 195
Zend\ModuleManager\Exception\RuntimeException: Module (GoalioMailService) could not be initialized. in /var/www/myproject/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php on line 195
I follow the readme file and i follow the step but without success.
I have zfc-user 1.2.3 on my sistem.
I've got your module working with SMTP and I'd like to add some instructions so others can do the same. Should I just put them in the readme file or have a commented-out section in the config file?
Thanks for a very useful module!
with the new version using class \Zend\Mail\Transport\Factory to create the transport class, you need to change the configuration file from this:
'transport_class' => 'Zend\Mail\Transport\File',
'options_class' => 'Zend\Mail\Transport\FileOptions',
'transport_options' => array(
'path' => 'data/mail/',
),
to this
'type' => 'file',
'options' => [
'path' => 'data/mail'
],
this isn't still backward compatible with zf 2.2 like noticed in issue #18
Sorry message has been moved for right project: GoalioForgotPassword.
Hi, does your MailService support mail attachments ?
latest version does not retain backwards compatibility with ZF 2.2 because of composer.json definitions in this lib
PHP Fatal error: Class 'Zend\Mail\Transport\Factory' not found in ...../vendor/goalio/goalio-mailservice/src/GoalioMailService/Mail/Transport/Service/TransportFactory.php on line 14,
Zend\Mail\Transport\Factory is a new file as of ZF 2.3
setting the version of GoalioMailService in our projects composer.json explicitly to 1.0.1 rather than 1.* either before or after "goalio/goalio-forgotpassword" : "1.0.2", does not resolve the issue
After you enable the plugin, and make the necessary changes in the database / application settings and add the conf. to the autoload, when trying to use the module it fails with:
Zend\ServiceManager\ServiceManager::get was unable to fetch or create an instance for goaliomailservice_message
Today, when updating zendframework to2.4, dependencies say that your module requires zendframework 2.3.*.
Requirementes listed on your page lists Zend Framework 2 (> 2.3.3). Could you please update your composer with matching requirements? In this way we could update to 2.4 easily.
Let me know if you expect a pull request for this.
When creating mail messages that use common accents (e.g. áéíóú), it is not displayed correctly on common email clients. This is because the mail message isn't mime encoded. Header is displayed well, though.
Adding mime encoding for plain text messages should correct this issue.
Hello,
Thanks for the nice package!
When I create a new e-mail message with the createHtmlMessage method the whole HTML content is displayed as plain text in Gmail, Yahoo and other e-mail clients.
It seems that the body of the multipart e-mail message is not constructed correctly. There are two Zend Framework 2 issues, which seem to be related to the problem:
zendframework/zendframework#2460
zendframework/zendframework#5708
As far as I can see here:
http://akrabat.com/zend-framework-2/sending-attachments-in-multipart-emails-with-zendmail/
the encoding of the message parts is Mime::ENCODING_QUOTEDPRINTABLE
and the content type of the whole multipart message is changed according to that if it contains attachments or not:
$message->getHeaders()->get('content-type')->setType($messageType);
because it is multipart/mixed
by default in Zend Framework.
Could we expect a fix for the HTML messages soon?
Thanks!
If I construct a view template and omit CRLF at the end of each line, some mail systems reject the email and will not send it. If I add CRLF to the end of every line, this satisfies the complaining mail systems, but other systems (like gmail) show the CRLF characters in the email. I am sending using SMTP.
Am I doing it wrong?
I have added a screenshot of the error I am getting. This code works if I send from my local machine using gmail, but fails if I try to send from the live server which I believe is using Qmail on Centos. Qmail complains about bare linefeeds whereas gmail seems more tolerant.
Could you change this
$settings = 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' => '[email protected]',
'password' => 'YOUR-PASSWORD-HERE'
),
'port' => 587
)
);
to
$settings = array(
'transport_class' => 'Zend\Mail\Transport\Smtp',
'options_class' => 'Zend\Mail\Transport\SmtpOptions',
'transport_options' => array(
'host' => 'smtp.gmail.com',
'connection_class' => 'login',
'connection_config' => array(
'ssl' => 'tls',
'username' => '[email protected]',
'password' => 'YOUR-PASSWORD-HERE'
),
'port' => 587
)
);
The first one is misleading and leads to a Zend\ServiceManager\Exception\ServiceNotCreatedException when requesting for password reset. With the edit, everything goes fine.
Dude this library is sending the emails in spam. Find the code below -
$mailService = $this->getServiceLocator()->get('goaliomailservice_message');
$content = new MimeMessage();
$htmlPart = new MimePart("Please find attached this report received from a " . $clientName . " user.
Regards,
" . $this->zfcUserAuthentication()->getIdentity()->getDisplayName() . "
");
$htmlPart->type = 'text/html';
$textPart = new MimePart("Please find attached this report received from a " . $clientName . " user.
Regards,
" . $this->zfcUserAuthentication()->getIdentity()->getDisplayName());
$textPart->type = 'text/plain';
$content->setParts(array($textPart, $htmlPart));
$contentPart = new MimePart($content->generateMessage());
$contentPart->type = 'multipart/alternative;' . PHP_EOL . ' boundary="' . $content->getMime()->boundary() . '"';
$attachment = new MimePart(fopen($pdfPath, 'r'));
$attachment->type = 'application/pdf';
$attachment->filename = 'report' . time() . '.pdf';
$attachment->encoding = Mime::ENCODING_BASE64;
$attachment->disposition = Mime::DISPOSITION_ATTACHMENT;
$body = new MimeMessage();
$body->setParts(array($contentPart, $attachment));
$message = new Message();
$message->setEncoding('utf-8')
->addTo($email)
->addFrom(array($this->getLoggedInUserAdminFromEmail() => $this->getLoggedInUserAdminContactName()))
->setSubject($this->getLoggedInUserAdminContactName().' Report')
->setBody($body);
try {
$mailService->send($message);
} catch (\Exception $e) {
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.