Sending email by pattern