A Perth mother who was caught trying to smuggle drugs into a US prison for a lover she had met online has been jailed for three-and-a-half years.