Pierre Merry
Pierre Merry

Reputation: 51

Configure SMTP Server to send mail

I have deployed a website (ASP.Net/C#) on my windows server 2012 R2 (it's a VPS and I installed IIS and SMTP), and everything works fine except one thing: I CANNOT send mail through my website!

I searched and tried everything but it still doesn't work! When I was debugging my application on local, it worked fine. Now I know I have to change my settings to send mail but I don't know what I should indicate

I'm sending my emails from a mail address that use pop3 server "relay.skynet.be" (this is the server I used when I was debugging and it worked) but when I do it on the website I got an error... So I changed it to the name of the server where my VPS is hosted (OVH) and it still doesn't work... I also changed the different credentials (in my code or in the SMTP in IIS) but the result is the same...

So I'm asking these questions:

Upvotes: -1

Views: 2258

Answers (1)

Marek Fekete
Marek Fekete

Reputation: 641

I have a strong feeling that you are simply missing the infrastructure - specifically, you are missing an SMTP server. SMTP server is responsible for delivering (or forwarding) your email.

Neither POP3 nor IMAP protocols are used for sending emails.

If this is the case, I suggest you try using hotmail or gmail mail account. You can find the settings for both here, respectively:

http://www.serversmtp.com/en/smtp-hotmail http://www.serversmtp.com/en/smtp-gmail-configuration

Hope this helps.

Upvotes: 1

Related Questions