My website is hosted on GoDaddy and I'm using a C# code to send emails from it. The only setup I could make it work was like this:
<network host="relay-hosting.secureserver.net" port="25" userName="firstname.lastname@example.org" password="mypassword123" enableSsl="false" />
I'm emailing the same account that I'm using to send emails (it's a contact account) and all messages are going to Junk. If I BBC myself using a Gmail account, it goes to my inbox normally.
What should I do/check here?
What is possibly happening is that because emails are being sent from contact@ and are being sent to contact@, that generally throws a flag for spam as this is a common method used by spammers. Have you tried sending a message from the contact form to your gmail account?
Something you may want to try is add an alias to your current Office365 account. It may or may not work but its worth a shot. Here is a guide on setting this up: https://www.godaddy.com/help/add-an-email-alias-20053?
You could try making an alias for email@example.com for example and have the emails sent to that. At first, if they are flagged as spam, just login to the O365 webmail and select the email in the junk view and mark it as not spam and I hope that will solve this for you.
Hope this helps!