added multimail mode for mailing.