Problem with Netlify function after moving domain to netlify

Ok, so that is technically correct. But, mail.regina.lv is a non-existent. Here are some of my MX records

Keep in mind too, Netlify does not provide mail. This Support Guide explains more (ie. you need to use an external service such as Zoho for email.)