how to send the invitation codes via email

I've created the invitation codes. now I do not know how send the invitation codes via email and I want it to be linked with membership plugin.