An author who wrote a viral love letter this month called "You May Want to Marry My Husband" has died at age 51.

The New York Times published Amy Krouse Rosenthal’s letter on March 3, as she battled terminal ovarian cancer.

In the heartbreaking piece, Rosenthal wrote to other women, highlighting the good qualities about her husband, Jason. 

"Here is the kind of man Jason is: He showed up at our first pregnancy ultrasound with flowers. This is a man who, because he is always up early, surprises me every Sunday morning by making some kind of oddball smiley face out of items near the coffeepot: a spoon, a mug, a banana," she wrote.

"If you’re looking for a dreamy, let’s-go-for-it travel companion, Jason is your man."

She concluded the piece:

I want more time with Jason. I want more time with my children. I want more time sipping martinis at the Green Mill Jazz Club on Thursday nights. But that is not going to happen. I probably have only a few days left being a person on this planet. So why I am doing this?

I am wrapping this up on Valentine’s Day, and the most genuine, non-vase-oriented gift I can hope for is that the right person reads this, finds Jason, and another love story begins.

I’ll leave this intentional empty space below as a way of giving you two the fresh start you deserve.

Rosenthal, who raised three children, had been diagnosed in 2015 with ovarian cancer. Her death was confirmed by her longtime literary agent, Amy Rennert, who said Rosenthal "was the most life-affirming person, and love-affirming person."

Fellow author John Green tweeted: "She was a brilliant writer, and an even better friend."

A Chicago native and longtime resident, Rosenthal completed than more 30 books, including journals, memoirs and the best-selling picture stories "Uni the Unicorn" and "Duck! Rabbit!"

She made short films and YouTube videos, gave TED talks and provided radio commentary for NPR, among others.

Associated Press contributed to this report.