Some how i get an wrong email when register an customer account and check the "newsletter" checkbox.

But i got the wrong email - an wrong action is triggered.
I get an unsubscribe mail and when i check in customer area i am not subscribed to the newsletter.

I am on Magento 2.0.8 CE
@Umfi thanks for reporting.
@andimov
1)
2)
FYI, i have a added some custom fields on this form but they work as expected, maybe this could be an error source?
EDIT: i have exactly the same configuration/problem as @stevecantlay
We have a similar issue - Magento is set confirmation required with is_subscribed set to true on the registration form.
Upon registering the confirmation required email is sent. When confirming registration the welcome email is sent - followed by the unsubscribe email.
@Umfi Thank you for details.
Unfortunately we can not reproduce this issue.
Also seen this on custom theme on 2.0.8. Account creation set to confirm, subscribe set to confirm. On account confirm - account creation confirmation arrives plus email unsubscribe.
Also tried disabling subscribe confirmation and still get the unsubscribe following account creation confirmation.
Magento 2.0.8 CE - LUMA
Multistore - de_AT
I just added some EAV fields for customer attributes.
Config->Customer->Customer Configuration: Require Emails Confirmation=Yes
Config->Customer->Newsletter

@andypimlett , @Umfi , @stevecantlay
Thank you very much for putting details. We have reproduced the problem and created our internal ticket MAGETWO-57222.
looks like fixed here:
https://github.com/magento/magento2/commit/13e1acdcb0f859c948957c9c9f36a03131e96888#diff-8b13fe3225a8e5f17fa52fa6c5b74edaR34
@unailopez16 do you know if this fix is safe to integrate into a 2.1.1 production environment or is there a patch being created for it?
Is there any news on that matter?
The fix linked by @unailopez16 looks risky to integrate, it looks like many files are involved.
The issue is solved in Magento 2.1.2 version.
You can upgrade you Magento version @pitangaweb
No, the issue is not solved with Magento 2.1.2
I'm still experiencing it on Magento 2.1.2 when customer account confirmation is required.
Does 2.1.3 solved?
Upgraded one of our projects to 2.1.3 and I can confirm that subscription email notifications are still not being sent when ticking the "Subscribe to Newsletter" checkbox upon registration.
Any update on this? How to fix?
Can we get an update on this?
My workaround: http://pastebin.com/8nnA6AvV
Hi @anarchalienweb. What Magento version are you using? I tried to apply your workaround to a 2.1.3 website, but I'm still just getting the welcome email and no newsletter subscription email after registering with the "Subscribe" checkbox ticked.
Here's the DIFF file/patch I created based on your workaround (added .txt for it to be attached here).
Hi, I've managed to reproduce this issue:
1) The option Require Emails Confirmation (sic, should be Required Email Confirmation) is set to Yes on /admin/admin/system_config/edit/section/customer/
2) Customer creates a new account on customer/account/create/, checking the subscribe to newsletter option
3) Before the customer confirms his email address, the newsletter Status is Unconfirmed on admin/newsletter/subscriber/index/
4) After the customer confirms the email address, the newsletter Status is Usubscribed on admin/newsletter/subscriber/index/
Also, the Requires Emails Confirmation option on Customer Configuration overwrites the Need to Confirm option on Newsletter. They should be independent.
We are experiencing this issue on 2.1.6. Any update on this?
Please switch to 2.2 because 2.1 gets only security updates.
Hi @SchumacherFM,
Please switch to 2.2 because 2.1 gets only security updates.
Is that the official stance of Magento, Inc.? Do you have a reference for it?
(Asking because I've heard somewhat different responses towards 2.1.x updates previously, not sure what to believe now)
BTW, 2.2 isn't production-ready neither - is that correct?
Magento EE 2.1.6, customer confirmation is turned on.
When you check "Subscribe to newsletter" while creating customer account, it will send you "Newsletter unsubscription success" confirmation email after you confirm your account.
@Umfi, thank you for your report.
The issue is already fixed in develop branch, 2.2.0
@anarchalienweb thank bro its work for me.
Hi @anarchalienweb,
I checked the commits on branch [2.3-develop], but could not find the changes to the files to get this fixed as a patch on an earlier version.
Could you guide me where you found it, or did you check it by testing the dev branch?
Thank you for your help.
Regards,
Andreas
BTW: I am looking for a way to get this issue fixed in a Magento 2.1.7 Community Edition...