System.Net.Mail.MailMessage Raw Content / Spam Assassin

Posted by Martin on Stack Overflow See other posts from Stack Overflow or by Martin
Published on 2009-01-15T11:14:25Z Indexed on 2010/04/09 11:03 UTC
Read the original article Hit count: 563

Filed under:
|
|
|

Hey everyone,

What I am trying to do is pass the raw content of an outgoing email to spamassassin in order to calculate a spam score. I am stuck in how I might get the raw content of the email.

My C# code currently just constructs the MailMessage and passes it the SmtpClient's Send() method. Before sending, is there a way to get a raw version of the mail message (as the protocol might see it) so that I can pass this to the spamassassin tool for spam assessment?

If I've not explained very well, let me know and I'll try to explain better.

Thanks in advance,

Martin.

© Stack Overflow or respective owner

Related posts about email

Related posts about email-spam