Few days ago I bought a DCS-5222L Ip Camera…..
I can’t send any e-mail messages from the camera.
My SMTP settings on the ‘Snapshot’ configuration page:
   SMTP Mail Server:                  smtp.gmail.com
   Port:         465
   Username:      DlinkCamera
   Password:      <My gmail email psw>
   Sender E-mail Address:   <My gmail email address>
   Use SSL-TLS:      SSL-TLS
Pushing the ‘test’ button 
always results in the error message “Send a test mail failure”! 
An extract from the error log (normal operation):
     2012-12-28 21:09:00 Recording 20121228_210839.avi by Motion Detection to SD Card is OK.
     2012-12-28 21:09:02 Video Clip 20121228_210839.avi by Motion Detection to FTP is OK.
     2012-12-28 21:09:07 Digital Output(1) is activated.     
2012-12-28 21:09:10 6 Snapshots by Motion Detection to E-mail is failed.  
     2012-12-28 21:09:16 Digital Output(1) is deactivated.
Using exactly the same settings for D-ViewCam on my Windows7 PC and on my NAS are just working fine!!
Who can help me please?