private void SendEmail() { try { string reciveremail = this.LoggedCompany.objOwner.EmailAddress; string recivername = this.LoggedCompany.objOwner.GivenName; string hostUrl = IndicoConfiguration.AppConfiguration.SiteHostAddress + "/"; string emailContent = "New Reservation has been placed"; IndicoEmail.SendMailNotificationsToExternalUsers(this.LoggedUser, reciveremail, recivername, "New Reservation has been placed", emailContent); } catch (Exception ex) { IndicoLogging.log.Error("Error occured while send client order email", ex); } }
private void SendEmail() { try { string hosturl = IndicoConfiguration.AppConfiguration.SiteHostAddress + "/"; string emailcontent = String.Format("<p>A new acoount set up for u at <a href =\"http://{0}\">\"http://{0}/</a></p>" + "<p>To complete your registration simply clik the link below to sign in<br>" + "<a href=\"http://{0}Welcome.aspx?id={1}\">http://{0}Welcome.aspx?id={1}</a></p>", hosturl, createdClientId.ToString()); IndicoEmail.SendMailNotificationsToExternalUsers(this.LoggedUser, EmailAddress, FirstName, "Add New Client", emailcontent); //string hostUrl = IndicoConfiguration.AppConfiguration.SiteHostAddress + "/"; //string emailContent = "Welcome"; //IndicoEmail.SendMailNotificationsToExternalUsers(this.LoggedUser, EmailAddress, FirstName, "Add New Client", emailContent); } catch (Exception ex) { IndicoLogging.log.Error("Error occured while send client email", ex); } }