Exemplo n.º 1
0
        public override string ToString()
        {
            var emailString = string.Format("Email: \nFrom: '{0}' \nTo: '{1}' \nCC: '{2}' \nBCC: '{3}' \nSubject: '{4}' \nBody:\n{5} \nAttachments: '{6}'.",
                                            From,
                                            To.ToSeparatedString(t => t),
                                            CC.ToSeparatedString(c => c),
                                            BCC.ToSeparatedString(b => b),
                                            Subject,
                                            Body.Replace(@"<br\>", "\n").Replace(@"<br>", "\n").Replace(@"<br \>", "\n"),
                                            Attachments != null ? Attachments.ToSeparatedString(a => a.FileName) : string.Empty);

            return(emailString);
        }