public static bool sendMail(Attributes.Attributes attribute, Units units, DateTime nextLogin, int attackResult, bool overflowFlag) { StringBuilder builder = new StringBuilder(); builder.Append("<html><head></head><body style=\"font: 12px/1.2 Arial, Helvetica, Tahoma, sans-serif;\"><div style=\"width: 100%; height: 100%; background: #ffffff;\" >"); if (overflowFlag) { builder.Append("<ul style=\"line-height: 1.2em;list-style: none; margin-bottom: 10px\">"); builder.Append(" <li><strong>Przepełnienie!!!!!!!!!:</strong></li>"); builder.Append("</ul>"); } builder.Append("<div style=\"padding: 0 0 0 10px; width: 700px;\">"); builder.Append("<h2 style=\"color: #4a2c5c;font: normal 20px/1em 'Lucida Sans Unicode', Arial, Helvetica, Tahoma, sans-serif;padding: 0;border-bottom: 1px solid #e7e7e7;\">Staty</h2>"); builder.Append("<table><tr><td style=\"vertical-align: top; width: 500px;\">"); builder.Append(attribute.ToHtml()); builder.Append("</td><td style=\"vertical-align: top; width: 350px;\">"); builder.Append("<div style=\"line-height: 1.2em; margin-bottom: 10px\">"); builder.Append(" <div><strong>Nastepne logowanie:</strong> ").Append(nextLogin.ToString("yyyy-MM-dd HH:mm:ss")).Append("</div>"); builder.Append(" <div><strong>Rezultat po atakach:</strong> ").Append(attackResult).Append("</div>"); builder.Append(" <div><strong>Poczta:</strong> ").Append(attribute.Mail).Append("</div>"); builder.Append("</div>"); builder.Append("</td></tr></table></div>"); builder.Append(units.ToHtml()); builder.Append("</div></body></html>"); return sendMail(builder.ToString()); }