Intanto devi avere un server Smtp installato sul tuo pc.

Poi devi configurarlo opportunamente.

Sei su Linux o su Win?