The email goes through whatever is set up as the default SMTP server by the hosting provider.
Usually you can see emails that are spam blocked in a quarantined folder or spam folder. Sometimes the issue can be with the FROM setting or content of the email... sometimes it can be configuration settings of the server itself.
Look up DKIM and SPF records... those are server settings that can be configured that will improve deliver-ability of emails.