Add return value for send mail function