diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index d1bdd8275c06ac3505e66243d65317be63a45c9b..31c02dbb293eaf601ec41b5948cb7a7673f4d6c2 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -917,7 +917,7 @@ static int sendmail(char *srcemail, struct ast_vm_user *vmu, int msgnum, char *m fclose(p); snprintf(tmp2, sizeof(tmp2), "( %s < %s ; rm -f %s ) &", mailcmd, tmp, tmp); ast_safe_system(tmp2); - ast_log(LOG_DEBUG, "Sent mail to %s with command '%s'\n", who, mailcmd); + ast_log(LOG_DEBUG, "Sent mail to %s with command '%s'\n", vmu->email, mailcmd); } else { ast_log(LOG_WARNING, "Unable to launch '%s'\n", mailcmd); return -1;