Email Providers
Step 1:
- Get the NuGet package Click here...
Step 2 :
There are many Smtp setting available.string userName = "userName ";string password = "password ";var data = SmtpConfig.ForSendGrid(userName, password);SmtpEmailProvider obj = new SmtpEmailProvider(data);var email = new Email(){ReceiverName = "ReceiverName ",ToAddress = "ToAddress @domain.com",SenderName = "SenderName",FromAddress = "FromAddress @domain.com",Message = "Message ",Subject = "Subject ",IsHtmlEmail = false};var re = obj.Send(email);
- ForGoDaddy
- ForGmail
- ForOutlook
- ForMailGun
- ForSendGrid
Happy Coding... :)
Comments
Post a Comment