update port when sending email