Reverse login on voicemail email sending. Last change made it send email only if...
[asterisk/asterisk.git] / apps / app_voicemail.c
index 8a132b2..413b6f2 100755 (executable)
@@ -833,7 +833,7 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *m
        time_t t;
        struct tm tm;
        struct vm_zone *the_zone = NULL;
-       if (vmu && !ast_strlen_zero(vmu->email)) {
+       if (vmu && ast_strlen_zero(vmu->email)) {
                ast_log(LOG_WARNING, "E-mail address missing for mailbox [%s].  E-mail will not be sent.\n", vmu->mailbox);
                return(0);
        }