Sending email with SMTP from localhost

Can someone give me a working example of How to send email from localhost using gmail SMTP

Thanks.

When you implemented configuration and code based on the manual section about email, what was the result?

go to C:\xampp\sendmail
open
sendmail.ini this file as below


smtp_server=mail.vishalmathur.in

auth_username=vishal@vishalmathur.in
auth_password=vishal@#19

pop3_server=mail.vishalmathur.in
pop3_username=vishal@vishalmathur.in
pop3_password=Password@23124 ;your password

force_sender=vishal@vishalmathur.in

force_recipient=vishal@vishalmathur.in

@vishalmathur.in, this does nothing at all to answer the question. @sarsitaarjunsangeeta should be looking to use Cake’s configuration and classes to connect directly to GMail, nothing whatsoever to do with a local sendmail setup. The solution should work just fine without any local mail server even running!