valan Posted April 13, 2015 Share Posted April 13, 2015 @horst, @LostKobraki - thanks! Excellent module - tested/works perfectly. Link to comment Share on other sites More sharing options...
pwFoo Posted May 1, 2015 Share Posted May 1, 2015 I use WireMailSmtp and it works fine with my own code, but I receive no Email from ProcessForgotPassword module. Tested with the admin and my own frontend login without get an email. ProcessForgotPassword seems to use WireMail, but maybe not compatible to WireMailSmtp? Link to comment Share on other sites More sharing options...
horst Posted May 1, 2015 Author Share Posted May 1, 2015 (edited) I use it since it exists and it works as expected. Why should it function with one wiremail call and not with another? There must be something different with those calls. I use wiremailsmtp v 0.1.9 and processforgottpassword v 1.0.1 and all is fine. Do you have setup the same emailadress as sender in processforgottpasswords modules config screen like the default sender in wiremailsmtp? DO you have setup a default sender in wiremailsmtp? Do you have setup a valid emailadress with your useraccount? (without typos?) (just thinking loud) Edited May 1, 2015 by horst 1 Link to comment Share on other sites More sharing options...
cstevensjr Posted May 1, 2015 Share Posted May 1, 2015 (edited) I believe your logic is a bit flawed. A preliminary look at ProcessForgotPassword code didn't seem to show it using the class Wiremail or the function Wiremail(). However, I could be wrong (I'm not a coder). Edited May 1, 2015 by cstevensjr 1 Link to comment Share on other sites More sharing options...
horst Posted May 1, 2015 Author Share Posted May 1, 2015 (edited) it use wiremail() in the dev branch at least: https://github.com/ryancramerdesign/ProcessWire/blob/dev/wire/modules/Process/ProcessForgotPassword.module#L197 and in last stable too: https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Process/ProcessForgotPassword.module#L197 Edited May 1, 2015 by horst 2 Link to comment Share on other sites More sharing options...
Craig Posted May 1, 2015 Share Posted May 1, 2015 It does use the wireMail() function call 2 Link to comment Share on other sites More sharing options...
cstevensjr Posted May 1, 2015 Share Posted May 1, 2015 Yup, I just relooked at the github code and it's there. I need to be more awake when responding to these topics 1 Link to comment Share on other sites More sharing options...
pwFoo Posted May 1, 2015 Share Posted May 1, 2015 Config was just fine. Tested it once again and it works. Maybe typo with the username ?! Sender address of ProcessForgotPassword is overwritten by WireMailSmtp if different, but works fine... Sorry, should be my bad 1 Link to comment Share on other sites More sharing options...
k07n Posted May 26, 2015 Share Posted May 26, 2015 Hi. I have moved my site to another VPS and now I get "Error in hnsmtp::send : cannot connect to smtp-server!". Differences in VPS: php 5.4 -> 5.6 and http->https. Can it be the issue in my case or I must dig in other place? p.s. I can connect to smtp server in console with #openssl s_client -crlf -connect smtp.yandex.ru:465 so it is not a firewall I guess. Link to comment Share on other sites More sharing options...
cstevensjr Posted May 26, 2015 Share Posted May 26, 2015 I had a similar situation a couple of months ago when I tried to upgrade my domains to PHP 5.6.x on my web host. I never resolved this issue and ended up reverting to PHP 5.5.x Note: The following is what I found out by using Goggle search. It may apply or not apply to your situation, however I hope that maybe it will cause others to chime in on possible solutions All encrypted client streams now enable peer verification by default. By default, this will use OpenSSL's default CA bundle to verify the peer certificate. In most cases, no changes will need to be made to communicate with servers with valid SSL certificates, as distributors generally configure OpenSSL to use known good CA bundles. - OpenSSL changes in PHP 5.6.x (PHP Manual) It appears that in PHP 5.6.0 (at least the version in Debian jessie, with openssl 1.0.1h-3), this function is now validating SSL certificates (in a variety of ways). First, it appears to fail for untrusted certificates (i.e. no matching CA trusted locally), and secondly, it appears to fail for mismatched hostnames in the request and certificate. "PHP 5.6 now verifies SSL certificates, the "fsockopen" function fails in the "ConnectToHost" method due to mismatched certificate CN (expects host name, but IP is given instead)." -Klemen (PHP 5.6 compatibility) The problem is that this change is resulting in an error on Email Class SMTP protocol: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed When you update to PHP 5.6+ the "CA Root" have to be set, or OpenSSL certificate verify don't work correctly. Step One: Install CA_Root (In my case, on FreeBSD 10, via Ports) /usr/ports/security/ca_root_nss After install, the Pem Cert will be located at: /usr/local/etc/ssl/cert.pem Step Two: Add to php.ini the openssl.cafile openssl.cafile = /usr/local/etc/ssl/cert.pem Restart your HTTP Server, and verify with phpinfo() References: http://stackoverflow.com/questions/27622427/codeigniter-2x-email-class-smtp-ssl-verification-bug-on-php-5-6 http://www.phpclasses.org/discuss/package/14/thread/78/ http://php.net/manual/en/migration56.openssl.php 1 Link to comment Share on other sites More sharing options...
k07n Posted May 27, 2015 Share Posted May 27, 2015 @cstevensjr thanks for your answer, it point me to the right direction. The problem is in old version of smtp class: Certificate is issued to hostname, but smtp class sends IP. In the last version it was fixed and works fine for me now on php5.6. @horst, update smtp class, please. http://www.phpclasses.org/package/14-PHP-Sends-e-mail-messages-via-SMTP-protocol.html 2 Link to comment Share on other sites More sharing options...
horst Posted May 27, 2015 Author Share Posted May 27, 2015 Many thanks! I have updated the repo! 2 Link to comment Share on other sites More sharing options...
Pete Posted June 11, 2015 Share Posted June 11, 2015 @horst - just in case you missed it: https://github.com/horst-n/WireMailSmtp/issues/3 1 Link to comment Share on other sites More sharing options...
horst Posted June 13, 2015 Author Share Posted June 13, 2015 (edited) @horst - just in case you missed it: https://github.com/horst-n/WireMailSmtp/issues/3 I believe I have setup my Github the wrong way, I get notify messages for allmost everything, but not for issues of my own repos. I haven't seen it, but will look into it now. Edited June 13, 2015 by horst 1 Link to comment Share on other sites More sharing options...
horst Posted June 14, 2015 Author Share Posted June 14, 2015 There seems to be something was changed with the newer smtp class that we have changed 2 weeks ago. But anyways, it seems to be fixed now. @Pete, please can you have a look to it? I haven't changed anything on the behave of To-Recipients, only CC and BCC. 1 Link to comment Share on other sites More sharing options...
Pete Posted June 15, 2015 Share Posted June 15, 2015 Thanks horst - saw your updates on Github so will have a look tonight Link to comment Share on other sites More sharing options...
Pete Posted June 15, 2015 Share Posted June 15, 2015 Just tested and with the latest change you made it works perfectly - thanks! 1 Link to comment Share on other sites More sharing options...
Manol Posted September 3, 2015 Share Posted September 3, 2015 How can I get the sender Emailaddress set in the config of the module, from a template or module? Thank you? Link to comment Share on other sites More sharing options...
LostKobrakai Posted September 3, 2015 Share Posted September 3, 2015 See here: https://processwire.com/talk/topic/648-storing-module-config-using-api/?p=5241 1 Link to comment Share on other sites More sharing options...
Manol Posted September 3, 2015 Share Posted September 3, 2015 That's it. $data = wire('modules')->getModuleConfigData('WireMailSmtp'); echo $data['sender_email']; echo $data['sender_name']; Thank you Link to comment Share on other sites More sharing options...
alan Posted September 11, 2015 Share Posted September 11, 2015 I can't believe I've not thanked you Horst for this module. I've been using it for about a year, linked to Mandrill, a match made in heaven and no false-positive spam rejected emails. Thank you again, cheers, -Alan. 1 Link to comment Share on other sites More sharing options...
horst Posted September 12, 2015 Author Share Posted September 12, 2015 Link to comment Share on other sites More sharing options...
Macrura Posted September 12, 2015 Share Posted September 12, 2015 having some trouble with CC, i'm supplying an array, like this: $mail->cc($array); and i know my array is good, and CC works for 1 CC (I have $mail->sendSingle(true); ) but it will only CC the last member of the array, no matter which array type i input. ...... OK - forget this, i just updated to the latest version and this was fixed... Link to comment Share on other sites More sharing options...
Mackski Posted October 23, 2015 Share Posted October 23, 2015 First time using this module and I get this error: "it is not supported any of the authentication mechanisms required by the server"The SMTP server is an open relay restricted by sender IP, no authentication required. I have tested using PHPMailer succesfully. Any ideas? Link to comment Share on other sites More sharing options...
cstevensjr Posted October 23, 2015 Share Posted October 23, 2015 First time using this module and I get this error: "it is not supported any of the authentication mechanisms required by the server" The SMTP server is an open relay restricted by sender IP, no authentication required. I have tested using PHPMailer succesfully. Any ideas? Can you please provide some information regarding your setup for this website (versions of PHP/ProcessWire, type of hosting used, the hosting provider/or whether local hosted)? Have you followed the instructions from your hosting provider regarding SMTP setup details, if not locally hosted? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now