Use external smtp server

to use external smtp server we need to change some ini setting .
this setting can be chage using following code
ini_set(sendmail_from,”info@domain.com”);
ini_set(SMTP,”New smto host name”);
ini_set(smtp_port,”25″);
using rhis code you can send mail fro the given smtp mail server