Hi All,
I am getting below error in share point while sending email through event receiver, can you guide me or send snippets.
intilally i tried with below code
SmtpClient mailClient = new SmtpClient("smtp.gmail.com", 587);
and after words i tried with below
SmtpClient mailClient = new SmtpClient("smtp.gmail.com", 25);
Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.