With only a few days left before she goes to jail, Martha Stewart (search) partied with her pals in the Bahamas (search) this weekend as if she didn't have a care in the world.

The doyenne of domesticity jetted to the tropical haven Friday morning, and attended last night's sunset wedding ceremony of close pal, publicist Susan Magrino.

The bride wore a cream-colored halter dress with a long train draped behind her as she said her "I do's" with media consultant James Dunning.

The homemaking maven wore a cream pants suit in a tone that mimicked the bridal attire, as she watched a glowing Magrino walk down the isle to the sound of bagpipe music during the 6 p.m. ceremony. She also came barefoot, although dress was formal attire.

Some 75 other guests looked on, including a handsome — and much younger — male companion who had accompanied Stewart throughout the weekend.

Despite the prospect of hard time behind bars, Martha was in a partying mood almost as soon as she arrived for the weekend of wedding-related activities at the Ocean Club resort in Paradise Island (search) — where suites cost as much as $1,295 per night.

On the first night, she lived it up at the tropical-themed poolside rehearsal dinner, where she enjoyed a buffet replete with steak, lobster, shrimp, raw bar and grilled mahi-mahi.

The 63-year-old Home-Ec millionaire chatted with hair guru Frederic Fekkai, lensman Patrick McMullan, scribe Dominick Dunne and Sharon Patrick, the CEO of her company, Martha Stewart Living Omnimedia Inc. (MSO )

After the rehearsal dinner, she disappeared with her mystery companion, but not before stopping to slip off her stilettos for the long walk across the grounds.

The two then hit the casino at the nearby Atlantis resort, a shimmering extravaganza of roulette, slots, blackjack and other games done in a whimsical maritime motif.

Martha's luck held: She won about $200. Her sidekick wasn't so fortunate, dropping $600.

Yesterday morning provided a moment of quiet reflection as Stewart strolled solo along the beach at 7:30 a.m. — perhaps pondering how her life will change when she enters the Alderson, W.Va., prison camp Friday to serve five months for lying about an insider-stock sale.

Stewart even wandered into the surf , wearing a one-piece button-up red swimsuit and showing off her toned legs.

Afterward, she donned a red sarong for breakfast with friends in the outdoor cafe at Jean-Georges Vongerichten's Dune restaurant.

Her breakfast consisted of papaya, an egg-white omelet with tomato, a side of cottage cheese and a croissant with jam.

When a light rain started to fall, Stewart told the catering manager, "I need you to fix just one thing — the weather."

She then dashed from her table to take cover while the misty rain came down.

Later, Stewart got into the spirit of the nuptials, providing her opinion on the flower arrangements.

By the afternoon, the sun had come out and Stewart had kicked into full-scale planning mode, overseeing last-minute details of the wedding while her film and photo crew caught all the action — presumably for use in the pages of Martha Stewart Living or segments of her four new TV wedding specials.

Magrino, one of her best friends, wed Dunning two weeks after Stewart and her daughter, Alexis, threw a bridal shower for her in New York.

Stewart was flying back to Connecticut this morning.

But she'll have the chance to see Magrino one last time at a New York reception Thursday evening at the Four Seasons before reporting to prison.