diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index bfa3ba1428cc24c5829a5bfdf7b4e9e28b696027..924d1084fbf6e8d94a771d235664933c822a2e6d 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -3359,7 +3359,11 @@ static int notify_new_message(struct ast_channel *chan, struct ast_vm_user *vmu,
 	snprintf(ext_context, sizeof(ext_context), "%s@%s", vmu->mailbox, vmu->context);
 
 	if (!ast_strlen_zero(vmu->attachfmt)) {
-		fmt = vmu->attachfmt;
+		if (strstr(fmt, vmu->attachfmt)) {
+			fmt = vmu->attachfmt;
+		} else {
+			ast_log(LOG_WARNING, "Attachment format '%s' is not one of the recorded formats '%s'.  Falling back to default format for '%s@%s'.\n", vmu->attachfmt, fmt, vmu->mailbox, vmu->context);
+		}
 	}
 
 	/* Attach only the first format */