Which example of dialogue is formatted correctly?

I said to her “Have fun on your summer vacation.”
I said to her, “Have fun on your summer vacation.”
I said to her “Have fun on your summer vacation”.
I said to her, “have fun on your summer vacation.”