Hi
I have come across an apparant bug while using SmtpMail. The problem I have
is that if a MailAttachment has a line in it that starts with a fullstop (
or period for those of you that speak American english ) then the fullstop
is removed. This is an example of how I am using SmtpMail and MailMessage:
MailMessage mail = new MailMessage();
mail.From = "fr**@test.com";
mail.To ="to@test.com";
mail.Subject = "Where did the . go?";
mail.Body = "Test";
mail.BodyFormat = MailFormat.Text;
mail.Attachments.Add( ( new MailAttachment( "C:\\Test.txt" ) ) );
SmtpMail.SmtpServer = System.Net.Dns.GetHostName();
SmtpMail.Send( mail );
The problem is that if C:\Test.txt has the following text:
..net
..5 w
..5
..78
then the following will be the contents of the attachment Test.txt when it
is recieved
net
5 w
5
78
This causes the PDF files that I am attaching to not display properly as
some of the lines start with .5 w
If anyone can see what I am doing wrong or knows a way around this then I
would appreciate their advice.
Thanks
Simon