This is a common issue when moving a website to a new hosting provider.
The important thing to understand is that your domain's DNS settings control more than just your website. They also tell email services where to send and receive messages.
When you change nameservers, your domain starts using the DNS zone managed by the new nameserver provider.
If the new DNS zone doesn't contain your previous email records, your email service may stop working even though the website loads normally.
I'd recommend checking the following records:
- MX records: These tell other mail servers where to deliver your emails.
- A records: These may be needed for your mail server hostname.
- SPF: Helps specify which servers are authorized to send emails for your domain.
- DKIM: Adds a digital signature to outgoing emails.
- DMARC: Defines how receiving servers should handle messages that fail authentication.
Make sure these records match your actual email provider's configuration.
Don't forget to check the email routing settings in cPanel if you're using cPanel email hosting.
Before changing nameservers in the future, always copy your existing DNS records. It can save you a lot of trouble.