是否有可能使用gmail smtp配置在sharepoint 2010中发送邮件

时间:2012-10-23 04:27:57

标签: email sharepoint-2010 sharepoint-workflow

是否有可能使用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);

0 个答案:

没有答案