I am new to HigLabo and have a couple of beginners' type questions. I am intending to use HigLabo from an ASP.NET website. I have chosen HigLabo because it allows me to connect
to gmail, specifying SSL as the security mechanism. I could not get System.NET.Mail to connect using SSL. Am I correct in assuming that to send attachments with an email, I should add to the Contents field of the SmtpMessage :
SmtpMessage msg = new SmtpMessage();
SmtpContent content = new SmtpContent();
content.LoadData(// Some param //);
If so, the great. If I imagine "Contents" = "Attachments" that seems OK. Not sure with this mechanism, how I preserve the filename of the Content / Attachment.
The other problem is how to specify that the BodyText is in HTML format ? There does not seem to be a straight forward way to specify this. I have tried sending a mail where the BodyText is in HTML but the receiving email client renders it in text, not HTML.
(In the System.Net.Mail which comes as standard with .NET, there is a simple property called IsHtml which I can set. When I set this property, the receiving client renders the incoming mail as HTML).
Any observations / answers here would be much appreciated.