Jerry Bian
Jerry Bian

Reputation: 4238

Sending Email through IIS for ASP.NET MVC

In asp.net mvc, how can I send email without external SMTP server? Does IIS can help me with this job?

Normally, I can use SmtpClient to send email, but I have to config an external server such as 'smtp.gmail.com' to help me send the mail, also I have to set the credentials for it which we may need to create a new account for our app in Gmail, that's what we want to avoid. What we want to achieve is just send an email to user, and with that email user can confirm their information.

So, any simple method to do this?

Upvotes: 2

Views: 1004

Answers (1)

S.L.
S.L.

Reputation: 1076

you cant sent an email without an smtp Server. because the smtp Server is the object in the chain that SENDS the email :) and the IIS doesnt implement smtp Server functionality

SMTPClient -> SMTPServer Sender -> SMTP Server Reciever -> POP -> Email CLient

There are several relay smtp Server without smtp-auth out there but i recommend you to avoid the use of them because else YOU will be marked as spam pretty sure.

Upvotes: 2

Related Questions