I am new to wordpress. I searched on internet about how to send mail from localhost in wordpress on ubentu system. I tried to set up using sudo commands but not getting result again error comes
SMTP ERROR: Failed to connect to server: Connection refused (111)SMTP connect() failed.
I tried with this link