add 'smart photo mail' function