Posted on: 7/2/2015 3:48:51 AM | Views : 703

Hi
I have these codes for sending email via Microsoft Outlook to all of my users. These codes work fine in local host, but doesn't on remote server!
Any help would be appreciated. 
//get all use emails public string GetEmails() { string email = string.Empty; foreach (MembershipUser user in Membership.GetAllUsers()) { email += user.Email; email += ";"; } return email; } protected void btnSendMessages_Click(object sender, EventArgs e) { //add mail to outlook bcc ClientScript.RegisterStartupScript(this.GetType(), "mailto", "<script type = 'text/javascript'>parent.location='mailto:?bcc=" + GetEmails() + "'</script>"); }

Go to the complete details ...