The Operator for the Number you use is maybe detected by onlinesim.
You can ask their support for a list of numbers which work for gmail.
Otherwise you can try using other Operator or Country.
this should be fine with one mail from sender, but if you have more mail then one it might get little tricky, contact me if you need any paid support, good luck