C # Choose Email box when sending

0

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?

    
asked by anonymous 20.01.2017 / 17:17

0 answers