SMTP with hostname - localhost

If user creating email ID in the account and trying to use this as SMTP for inquiry form for notification.

hostname == > localhost
email ==> email_id
password ==> email_password
port ==> 25

It’s not working like Cpanel

Does any setting need to be done??

@Numeriku @CyberPanel

This is still not working I think. Any solution to this @usmannasir

which one ?