public bool SendFriend(string Name, string Email, string NameFriend, string EmailFriend, string ActivityTitle, string URL) { this._Subject = "Hayatý Doldur’a sen de katýl!"; this._Title = "Merhaba, " + NameFriend; this._Content.Append("Arkadaþýn "); this._Content.Append(Name); this._Content.Append(" , akýllý bir etkinlik rehberi olan Hayatý Doldur’a seni davet ediyor. Hayatý Doldur’a üye ol, kiþilik özelliklerine göre istediðin etkinlikten haber al, avantajlarýndan faydalan.<br><br>"); this._Content.Append("<a href='"); this._Content.Append(URL); this._Content.Append("'>"); this._Content.Append(ActivityTitle); this._Content.Append("</a>"); this._MailTemplate = this._MailTemplate.Replace("||TITLE||", this._Title).Replace("||CONTENT||", this._Content.ToString()); return objMail.Send(Email, Name, EmailFriend, this._Title, this._MailTemplate, "", "", MailPriority.Normal, false); }
public bool Send(string To) { this._MailTamplate = this._MailTamplate.Replace("||TITLE||", this._Title).Replace("||CONTENT||", this._Content.ToString()); return(objMail.Send(To, this._Subject, this._MailTamplate, String.Empty, String.Empty, System.Net.Mail.MailPriority.Normal, true)); }