是否有可能使用gmail smtp配置在sharepoint 2010中发送邮件。
我尝试使用.net。它已成功运行..但我在sharepoint 2010中需要这个,而在sharepoint 2010的集中管理中没有usind SMTP配置
我通过使用事件处理程序尝试了它,但我不能
提前感谢.....
//SmtpClient serverobj = new SmtpClient();
//serverobj.UseDefaultCredentials = true;
//serverobj.Credentials = new NetworkCredential("xxx@gmail.com", "Password");
//serverobj.Port = 587;
//serverobj.Host = "Smtp.gmail.com";
//serverobj.EnableSsl = true;
//MailMessage msgobj = new MailMessage();
//msgobj.From = new MailAddress("xxx@gmail.com", Subject ", System.Text.Encoding.UTF8);
//msgobj.To.Add("yyy@gmail.com.com");
//msgobj.Subject = "New Application Request";
//msgobj.Body = "Hi this is test mail";
//serverobj.Send(msgobj);