Have this code.
public static string SendEmail(string psSubject,
string psBodyText,string psToName, string psToEmail,
string psFromName,string psFromEmail,string psHost,
int piPort,int piTimeout, string psSmtpUser, string psSmtpPassword,
MailMessage loMsg = new MailMessage();
SmtpClient loSMTPServer = new SmtpClient(psHost,piPort); ---- it blows up right here with a security thing.
I have tried adding a signed certificate to my assembly and got a .pfx file with a password on it, and it is still blowing up. Apparently, I am still missing a step.
Any ideas what that step is?
Assembly is marked 'unsafe'.
View Complete Post