I have Magento 2.1.7 with 2 websites.
First site is
second site is
The scope for users is website so that each website has its own users. The first website everything works great users can get email recover password etc.
The problem is with my second website that i have in a subdomain. Users don't receive any mail from this. If i try to reset the code from backend i get the message user will receive the mail but no mail is being sent.
Probably i haven't done something in the settings correct but i am new to Magento and don't know what i might have done wrong i search the forums but couldn't find a solution.
Also i don't know if this is related to my mx records
domain.com. A 126.96.36.199 second A 188.8.131.52 ftp A 184.108.40.206 mail A 220.127.116.11 pop A 18.104.22.168 smtp A 22.214.171.124 www A 126.96.36.199 www.second A 188.8.131.52 domain.com. NS ns1.domain.com. domain.com. NS ns2.domain.com. domain.com. MX 0 aspmx.l.google.com. domain.com. MX 10 alt1.aspmx.l.google.com. domain.com. MX 10 alt2.aspmx.l.google.com. domain.com. MX 20 alt3.aspmx.l.google.com. domain.com. MX 20 alt4.aspmx.l.google.com. domain.com. TXT "v=spf1 a mx ip4:184.108.40.206 ~all"
This is how i set up the index.php for the second domain.
require __DIR__ . '/app/bootstrap.php'; $params = $_SERVER; $params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'second'; $params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'website'; $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params); /** @var \Magento\Framework\App\Http $app */ $app = $bootstrap->createApplication('Magento\Framework\App\Http'); $bootstrap->run($app);
If anyone has any idea thank you.