Anthony Weiner, the husband of Hillary Clinton's closest aide Huma Abedin, has checked into a rehab facility for treatment of sex addition.

Out-of-control Weiner, who has been sending sexually-charged messages and obscene pictures to women and at least one teenage girl for years, is now in a treatment facility, DailyMail.com has learned exclusively.

Friday's dramatic disclosure by the FBI that it had discovered new emails relevant to their investigation into Hillary Clinton's secret server was a shock unprecedented in electoral history.

At the center of it, however, is the tragedy of Anthony Weiner's sex addiction.

Weiner, posing as Carlos Danger, sexted Sydney Leathers - in a scandal that crushed his run for the New York City Mayoralty

The rehab center where Weiner is being treated separates men and women and its program includes counseling for those addicted to cybersex and exhibitionism as well as addictions to anonymous sex and porn, DailyMail.com can reveal.

Electronic devices are banned at the facility.

Weiner's world finally came tumbling down on September 21, with the dramatic revelation by DailyMail.com of his months of sexting a 15-year-old high school girl.

He told her he was 'hard'; that he 'would bust that tight p****'; sent her unclothed pictures; and told her he had rape fantasies about her. Wiener knew she was 15 - the girl had told him.

At the time of the sexts, Weiner was still married to Abedin - although he complained about their lack of a sex life to the girl - and caring for their son while she campaigned intensively for Clinton.

New York police and the FBI moved in on Weiner quickly after DailyMail.com's revelations - and it now transpires that when federal authorities investigated, they took the former couple's shared laptop. It is unclear if they also took mobile devices.

Abedin, 40, was already separated from Weiner, 52, by the time the FBI moved in, as she had announced the end of their marriage in August, when he was hit by another sexting scandal.

Abedin's loyalty to her husband had finally snapped; but it had lasted a very long time, endured a lot of scandals - and now, in the cold light of the FBI's latest move, must seem to her one of the worst decisions she could possibly make given his history of sexual aberrations.

Weiner is now getting help for his sex addiction and Human Abedin, above with their son Jordan, is keeping a low profile with Hillary's campaign as the election is only one week away

Deal-breaker: This was the sick picture which ended Abedin's loyalty to her pervert husband

The picture at left was one of the ones Weiner sent to a 15-year-old girl which prompted an FBI investigation - and now imperils Hillary Clinton's bid for the White House

In May 2011 a picture of the bulging crotch of a man appeared on his Twitter account; Weiner's response was to lie that he had been hacked.

A week later, he cried as he apologized for lying, and admitted he had had several inappropriate relationships with women online.

But he would not resign - and his wife was standing by him.

The next week yet more selfies emerged; this time he resigned, apologized to his wife - now revealed to be pregnant - and claimed he was seeking treatment for his problems.

It is believed he entered a rehab program in Florida at the time.

The following May Weiner was back - in a blaze of headline puns - running to be New York mayor; and Abedin was at his side.

'Look, I've made some big mistakes and I know I've let a lot of people down. But I've also learned some tough lessons,' he said in a campaign video.

For a while, it was going well; Weiner was front runner, far ahead of Bill de Blasio, the awkward-mannered ultra-liberal who is now New York mayor.

But in July there came a dramatic development: screen shots of more sexting that Weiner sent under the alias 'Carlos Danger'.

The recipient was Sydney Leathers, a 22-year-old from Indiana who had never met Weiner.

Weiner was a rising star in Congress when Clinton ran for New York senator and flanked her in October 2000, shortly before her victory.

Once again, Abedin stood by Weiner. This time she did it in public, saying that although he had made ' horrible mistakes, both before he resigned from Congress and after', their marriage was secure.

'What I want to say is I love him, I have forgiven him, I believe in him, and as I have said from the beginning, we are moving forward.'

Weiner, hardly surprisingly, lost the mayoral race, but that was not going to change his conduct - or his wife's loyalty. Their marriage was increasingly like the Clintons', a cycle of sexual scandal on his part followed by loyalty on hers.

Next June, 2014, he was back in another collision of sex and twitter, favoriting a tweet which called Tinder the 'ultimate sext machine'. He apologized; Abedin stood by him.

By 2015 it was Abedin who was the couple's leading figure, with her place at the side of the presumptive Democratic presidential candidate, profiles in magazines, and a guarantee of a place in a second Clinton White House.

WHAT HILLARY STAFFERS KNEW...AND WHEN THEY KNEW IT Hillary Clinton’s staffers knew as early as 2011 that Anthony Weiner had been messaging an underage girl, but they did nothing about it, according to WikiLeaks emails published Monday. John Podesta - now chair of Clinton's presidential campaign - and Neera Tanden, another adviser, were forwarded news of an investigation into Weiner's online contact with a 17-year-old Delaware high school student by Jennifer Palmieri, the current campaign communications director, in June 2011. At the time he was married to Huma Abedin, another member of Clinton's inner circle, who is now at the center of fresh FBI investigation into the handling of classified material while Clinton was in office. The email detailed lurid claims of private messages to an underage girl being investigated by police - and was met with the response 'oof' by Podesta. 'Police on Friday afternoon came to the home of a 17-year-old high school junior to ask her about direct online communications she has had with Rep. Anthony Weiner,' email read, quoting a Fox News article from the same time. 'Two officers from the New Castle County Police Department arrived at the girl's home around 4:30 p.m. and asked to speak with the girl's mother about the daughter's contact with Weiner. Another officer appeared at the home a short time later.' Palmieri forwarded the news article to Podesta and Tanden with the comment, 'Oof' Six days later, on June 16, 2011, Weiner announced his resignation after accidentally tweeting a photo of himself in bulging briefs to all of his followers. Sources close to the 17-year-old at the time told Fox News that the girl and Weiner had direct-messaged each other on Twitter. Back in April 2011, the then-teenager openly expressed her love for Weiner, who followed her on Twitter. In her feed, she expressed her love of married men, according to Patterico.com. At one point she said: 'HE IS MINE ALL MINE HE LOVES ME AND NO ONE ELSE ILY ILY ILY!!!' and added '@RepWeiner I'm in love with you' two days later. At the time Weiner admitted that he had contact with the girl, but denied sending inappropriate messages, according to Politico. The FBI sensationally announced on Friday that it was investigating thousands of emails that might be related to the former secretary of state's private server. The messages were taken as part of a separate FBI investigation into devices belonging to disgraced Weiner. The former politician came under investigation after the DailyMail.com revealed he allegedly exchanged lewd text messages with a 15-year-old girl. The disclosure came a month after Abedin had finally ended her marriage to him, which she had continued despite sexting scandal after sexting scandal. The final straw was when in August of this year the New York Post revealed how Weiner sent a picture of himself sexually picture of himself in bed. His sleeping son was beside him. It emerged Sunday that the FBI now has a warrant to search the emails, numbering some 650,000 according to the Wall Street Journal. Advertisement

Weiner was at home with their son Jordan, tweeting non-stop, and with little real work beyond occasional media appearances. At one point in the summer of 2015 he took up a job with a PR firm. It ended when some of the partners left in disgust.

Abedin, a constant presence in Clintonworld, was constantly on the road with Clinton but in early 2016 came another distraction from the campaign - this time the Sundance Film Festival debut of Weiner, a documentary of his attempt to become mayor.

It she fresh light on their marriage and many critics noted how it seemed that far from being a Clinton-esque political pact, Abedin was genuinely hurt by the Sydney Leathers episode, wolfing down pizza as she tried to keep her composure.

Weiner reacted to the spotlight as only he can: being caught in a sexting scandal.

In August, his latest disgrace emerged. This time he had sent a picture of himself in bed, clearly aroused, with his son sleeping at his side.

The picture from July 2015 was to a 40something divorcee who replied: 'You do realize you can see you[r] Weiner in that pic??'

Finally, it was enough for Abedin and she ended their marriage - although neither moved out of their apartment near Manhattan's Union Square.

'After long and painful consideration and work on my marriage, I have made the decision to separate from my husband,' she said.

'Anthony and I remain devoted to doing what is best for our son, who is the light of our life. During this difficult time, I ask for respect for our privacy.'

She was quickly back on the trail with Clinton, and if frosty with reporters, always present at Clinton events, and clearly supported by her boss.

T-Dog: In the messages, which were obtained by the Dailymail.com, Weiner repeatedly complimented the girl's body, told her that she made him 'hard'. He also sent the girl a selfie from a hot tub

Weiner and the girl used several anonymous messaging apps, like the one pictured above, where every line of text - and the sender's name - disappear after the message is opened. In one message he told he would 'bust that tight p***y so hard'

Huma and Hillary spoke on board Clinton's campaign plane just hours before news broke on Friday that the FBI was re-opening its investigation into the presidential nominee's emails after new emails came to light during a separate investigation into Weiner

The former couple are assumed to have started the task of unraveling their life together, but then, in September, came a bombshell which put the past sexting in the shade: DailyMail.com's revelations of sexual messages and pictures to a 15-year-old girl - at a time when he was married to Abedin.

He carried on a months-long online sexual relationship with a 15-year-old girl during which,she said, he asked her to dress up in 'school-girl' outfits for him on a video messaging application and pressed her to engage in 'rape fantasies'.

The girl, whose name is still being withheld by DailyMail.com because she is a minor, said the online relationship began last January while she was a high school sophomore.

I would bust that tight p***y so hard and so often that you would leak and limp for a week Anthony Weiner, 2016 - to a 15-year-old girl

Weiner was aware that the girl was underage, according to DailyMail.com interviews with the girl and her father, as well as a cache of online messages.

This time Weiner was T-Dog - and an avid user of the sort of instant messaging technology which does not leave a trail. Precisely the sort of technology Clinton had once joked she liked, in the wake of her email scandal emerging.

In the online messages, Weiner, 51, sent bare-chested photos of himself to the underage girl, repeatedly called her 'baby' and complimented her body, and told her that he woke up 'hard' after thinking about her, according to copies of the conversations.

In one particularly lewd message, he told the teen: 'I would bust that tight p***y so hard and so often that you would leak and limp for a week.'

The way they were: This was the Anthony Weiner-Huma Abedin wedding's official picture - taken after Bill Clinton married them, seemingly anointing a new Democratic power couple

When confronted with the claims, Weiner did not deny exchanging 'flirtatious' messages with the teen. He declined to comment on the specifics of the allegations on the record, but provided copies of two emails the girl sent him that he contends raised questions about her claims. DailyMail.com publishes them below.

He gave a statement to DailyMail.com in which he said, in part: ' I have repeatedly demonstrated terrible judgement about the people I have communicated with online and the things I have sent. I am filled with regret and heartbroken for those I have hurt.'

Abedin may have thought that ending the marriage would keep her safe from the fallout from the revelations.

But on Friday she learned that Weiner's fallout is now a danger not just to her - but to Clinton herself.

The FBI had long since said that Clinton - and by extension Abedin - would not be prosecuted for their handling of classified information on the secret email server when an entirely different investigation was launched, this time into the sexting.

What became clear within hours of the dramatic announcement by the FBI Director James Comey on Friday morning that there were new emails relevant to the investigation was where they came from: either Abedin or Weiner's devices.