SMTP Server Response: 530 5.7.0 Must Issue a STARTTLS Command First

I am using wamp server and trying to develop an email applicatioin. I am using gmail account so I have put smtp server as smtp.gmail.com, and smtp port as 585 , I also have installed a fake sendmail server but I am getting the following error