STREAM_CRYPTO_METHOD_TLS_CLIENT
STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT
if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) {
if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT)) {
I did this too (I hadn't seen your post originally, so I had to fix up the code myself) and it seems to be working.For XF 1.5, I've made the following changes and it seems to be working ok while testing with the endpoint sparkpost setup:
https://www.sparkpost.com/docs/tech-resources/tlsv1-0-test-hostname/
In the follow file: /library/Zend/Mail/Protocol/Smtp.php
Line 206
Change:
STREAM_CRYPTO_METHOD_TLS_CLIENT
to
STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT
So, your entire line will go from:
PHP:if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) {
to
PHP:if (!stream_socket_enable_crypto($this->_socket, true, STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT)) {
I've tested over the past couple hours sending emails on a live XF 1.5 site, no problems yet. But, take this information with a grain of salt...![]()
How do you guys handle bounced emails with Soarkpost? As far as I know you can’t configure a bounced email there.
With their API? Have you done it?Requires extra development work.
With their API? Have you done it?
I'm also receiving and error message when users use the "contact us" form:
Zend_Mail_Protocol_Exception: Email to <any email address> failed: 5.7.1 Unconfigured Sending Domain <gmail.com> - library/Zend/Mail/Protocol/Abstract.php:431
I hope your add-on will do this. I use Sparkpost and I believe this cause that problem: https://xenforo.com/community/threads/sparkpost-sending-from-my-domain-to-my-domain.157339/. Hopefully, the add-on will eliminate this issue.So basically, I don't recommend using SparkPost unless you have an addon which supports it.
Would that add-on support XF 2 or 1.5 as well?Yes, I have an addon which is almost ready for release which fully supports bounced email handling.
You need to ensure that emails are sent using your actual domain - the "from" address you use in emails needs to be using your configured sending domain - not your gmail address.
Unfortunately, XF2.0 will set the from address to the user who fills the form. You'd need to over-ride this behaviour in an addon to send from an address using your own domain and set the user's email address in the ReplyTo header instead.
So basically, I don't recommend using SparkPost unless you have an addon which supports it.
I'm hoping to have mine ready within the next few weeks (it's done and I've been using it successfully for a few months now - just have a few little details to finish off before I release it publicly).
Would that add-on support XF 2 or 1.5 as well?
The gmail is user's configured contact us email provided by the user. If you click on the "contact us" button on your forum, you will see the "from" is user's defined email as registered to the system. Once the user tries to contact the administrator, I guess it thinks the email is sent from the user's email instead of the system email (spoofing?). That's why the error is registered, the question is if it's possible to avoid it.
The add-on you are developing include this option to send all email notifications as transactional email and newsletters as non transactional email?
Thanks for the add-on, but I switched to S3 since there isn't much convenience using Sparkpost now. They removed the free plan
We use essential cookies to make this site work, and optional cookies to enhance your experience.