mail accounts not sending when VPN is connected

Hi, I use an iMac and though I have VPN set up to connect automatically on start up it does not. Today, when I have connected manually it then prevents me sending emails via my gmail accounts. They send when I have turned VPN off. Any advice?