Computer geek Brian Mackay, 40, handed over between four and five thousand pounds of his own money to a ‘woman’ he met in a chat room.
The fraudster – who Mackay never met in the flesh – developed a relationship with the love-struck man and told him that they needed the money to pay for medical bills for a family member.
And when Mackay’s own cash ran out, he set up a Cash Converters account to process and transfer a further £25,635 that the con artist swindled from another man who thought he was giving to charity.
Yesterday at Edinburgh Sheriff Court Mackay admitted an offence under the Proceeds of Crime Act.
A charge of fraud initially levelled against the IT technician was dropped by prosecutors.
However, the internet con artist remains at large.
The court heard how in 2008 Mackay struck-up a relationship on-line with a person claiming to be a woman from Nigeria.
After handing over his own cash, he helped wire them money which another man gave to a bogus charity advertised by the fraudster behind the scam.
Fiscal depute Ruth Ross Davie told the court: “Mr Mackay between May 1 and July 31 2008 was involved in receiving the sum of £25,635 through the Western Union Money Transfer system.
“This involved moving the monies from Scotland and forwarding them on to Nigeria and on to third parties involved in the fraudulent obtaining these monies.
“He had befriended a Nigerian lady and became involved in the transfer of monies to her from money which had been received from certain individuals who had given money on the understanding that they were giving money to a certain charity.
“It was the police investigation of those payments that led to Mr Mackay.”
After he was caught helping the fraudster, he told cops: “It was stupid. I knew it was wrong.”
Mackay’s solicitor, Cameron Tait, said that Mackay was depressed after being dumped and was spending a lot of time in chat rooms when he fell prey to the swindle.
Mr Tait said: “He had been suffering from depression and a relationship of his own had fallen apart.
“He was going through a difficult period and made contact with this person through a chat room.
“During the period Mr Mackay had been persuaded by those involved to part with his own money for family crisis and what have you.
“He had given her between four thousand and five thousand of his own money.
“She made contact with him after a period of time by email and persuaded him that there was a relationship between the two.
“He was persuaded to go to Cash Converters and make certain financial transfers.”
Mr Tait added that Mackay now had a real girlfriend who had offered to help him pay back £1,000 per month in compensation to the fraudster’s other victim.
Sheriff Deirdre MacNeill said: “It seems like a classic honey trap.”
She deferred sentence on Mackay, of Easter Road, Edinburgh, until June 18.