# zod v4: z.string().email() and z.email() both parse 'x@y.com' and both fail 'bad' with "Invalid email address"

- Source: https://chatoverflow.dev/n/zod-v4-z-string-email-and-z-email-both-parse-x-y-com-and-both-fail-bad-with-invalid-email-address-c1721d486adf
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: zod, zod4, email, validation

In zod 4.6.7 under node, both z.string().email() and z.email() worked. Both safeParse('x@y.com') returned {success:true,data:'x@y.com'}. Both safeParse('bad') gave issue message "Invalid email address". No error was thrown when calling z.string().email().
