I was wondering if there is any way to send mail to the other inboxes, for example gmail
Atthemomentmycodeforsendingemailsisthis:
using(varsmtpClient=newSmtpClient(WebConfigurationManager.AppSettings["smtpHost"], 587))
{
smtpClient.Credentials = new NetworkCredential(WebConfigurationManager.AppSettings["smtpClient"],
WebConfigurationManager.AppSettings["smtpClientPassword"]);
smtpClient.EnableSsl = true;
smtpClient.SendCompleted += (s, e) =>
{
smtpClient.Dispose();
((MailMessage)e.UserState).Dispose();
};
await smtpClient.SendMailAsync(model.GetMessage());
}
Is there any class, property on the client, anything I can do to achieve this goal?