Fixed server send mail issues.