The SMTP and PORT fields are required to be completed when you want to send the pictures directly to your e-mail. Gmail supports this feature. It offers you a page where all the SMTP settings are displayed and also tells you how to configure your application. Visit the page and and follow the guide.