Sending mail from asp.net

I want send mail from a asp.net application. My question is: which is the best approach to this?
RTSolAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Use a high quality relay service.

A good starting point is MailGun.

If you're sending email which must deliver, then use a dedicated IP (one or more).

How you warmup your sender address + sender IP depends on content you're sending + size of list.

If you have a large list or plan on sending large amounts of email, best to hire a deliverability expert to help you craft your entire mail infrastructure + all campaign sequences.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
käµfm³d 👽Commented:
Send email to who? Customers? Internal staff?

What kind of email? Advertising? Informational? Logging?
RTSolAuthor Commented:
Hi,

I have a rather simple mail task but using mail relays like gmail doesn't work that great. In a web page I need to send mails every now and then. The FROM parameter is allways the same: noreply@domain.com. The TO parameter can be any user email. Sometimes there are attachments to the mail.
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
You said, "I have a rather simple mail task but using mail relays like gmail doesn't work that great".

Keep in mind, there's a big difference between sending email + having your email be deliverable.

You can send email all day + it will be rejected by every email Provider, unless you do one of two things.

1) Use a relay service like MailGun, in which case you'll be up + running + mail will be deliverable in a few minutes.

2) Setup your own SPF, DKIM, DMARC infrastructure + warmup your Sender Address + Sender IP + Sender Hostname + keep it warm... which will take weeks to months + be a full time job.

If you've got time to burn, do #2, you'll learn a lot.

If you're looking for a simple solution, which will be working in a few minutes, choose #1.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.