SANTA CLARA, Calif. - No hard feelings on Alex Smith's part that the San Francisco 49ers pursued Peyton Manning.
In the end, Smith is right back where he expected to be all along - with the only franchise he has ever known.
The free agent quarterback signed his three-year deal with the 49ers at last on Wednesday. It will pay him $8 million per season with $16.5 million guaranteed, according to a person with knowledge of the contract.
The person, who spoke on condition of anonymity Wednesday because the contract details weren't made public, said Smith's deal can pay him up to $33 million.
Smith signed at team headquarters a day after Manning was formally introduced in Denver after the 49ers pursued the four-time NFL MVP. San Francisco coach Jim Harbaugh worked out Manning at Duke last week.
"Not offended at all. I would have relished the opportunity to compete for the starting quarterback job with Peyton Manning," Smith said. "I feel I've been through way worse than this. Free agency is always going to be a little crazy, maybe this year more than most. You get to a point you stop worrying about that stuff."
The 27-year-old Smith met with Miami on Sunday but ultimately decided to stay put with the storied franchise that drafted him first overall in 2005. Smith said his talks with the Dolphins during a 5 1/2-hour meeting "seemed serious at the time."
Smith said Harbaugh and general manager Trent Baalke came to see him to inform the quarterback they were going to pursue Manning.
"Obviously it was a little unexpected, but that's part of the deal. This is free agency and this is the NFL, and those things happen," Smith said.
Everybody involved seemed relieved Wednesday to move ahead with preparations for 2012. The 49ers last week added wide receivers Randy Moss and Mario Manningham - and Smith is eager to get to work with them soon.
"Thanks for choosing the 49ers Alex. Sorry it was a tough week," 49ers CEO Jed York said Wednesday on Twitter.
Smith had a breakthrough season last year, throwing for 3,150 yards and 17 touchdowns to help San Francisco reach the NFC title game.
Both sides made it clear after the Niners' 20-17 overtime loss to the eventual Super Bowl champion New York Giants in the NFC championship game that they planned to work out a new deal.
It just took a little while longer than expected after Manning briefly entered the picture.
"We are pleased that Alex has chosen to continue his career as a 49er," Baalke said. "His contributions were instrumental to our success in 2011, and we look forward to the continued growth of our offense under his leadership."
Smith and Harbaugh built a strong working relationship in a matter of months, and Smith has long said he understands the business side of the NFL. So, it shouldn't take long for Harbaugh and Smith to start looking forward to making another special run in 2012.
"It's a very strong relationship," Harbaugh told reporters while leaving team headquarters Tuesday, noting nothing had changed in Smith being "our guy."
Smith reiterated that Wednesday.
"As good as they've always been and getting better," he said of his dealings with Harbaugh. "The thing from Day 1, when I first met coach Harbaugh, is he's always been up front and always been honest with me. He's continued to do that during this entire process. That's one of the reasons I love playing for him, so no question. Now, obviously looking forward to having an offseason with him."
Last spring, Harbaugh handed over his playbook to Smith during a brief lifting of the lockout - a show of confidence in the QB even though he wasn't under contract. Smith wound up re-signing for $4.9 million, then earned a $1 million bonus for making the playoffs as the 49ers ended an eight-year stretch without a postseason berth or winning record.
Now, he is getting some job security and a nice raise to boot.
"Really the money wasn't the issue. Money is great for security but I'm not a guy who has a bunch of flashy cars," Smith said.
York had said the team's three-year offer still stood despite the pursuit of Manning, and it was just up to Smith to sign. The quarterback said he didn't have a problem that his agency, CAA Sports, was also negotiating and representing Manning.
"I'm glad that this is finally done. For me this was the plan all along," Smith said. "Since the season ended I wanted to be back here. It dragged out a little bit but I'm glad it's over. Glad it's done. Glad to get back to work."