If you write code and it looks like a virus don't expect that to be ignored. Especially when you send it by email.
At least wrap it in a word document or a zip file. Which should be scanned before saving it locally and opening it. The user can save it locally and open it if their download scanner approves it. Don't try to turn email into a full-blown app.i get email regularly from senders who demand that I read in Gmail, who don't want to deal with yahoo addresses because their web apps don't work with Yahoo Mail. They just block YM after establishing comm by phone Now I see why. They want to force people to use a mail platform that will support the code embedded in their emails. No security-conscious IT manager would support that.
Now you know what is going on if a client insists that you use a Gmail address.