Page 1 of 1

how to set smtp username and password through ini_set method

Posted: Fri Feb 08, 2008 11:11 pm
by eshban
hello,

i am just using this code to send email,

Code: Select all

 
 
ini_set("SMTP","smtp.mydomain.com");
ini_set("smtp_port","25");
ini_set("sendmail_from","user@mydomain.com"); 
 
mail($To,$Subject,$Message,$From);
 
 
i have set the smtp settings through ini_set method, but i am unable to know that how can i set my SMTP USERNAME and SMTP PASSWORD through ini_set

Can anyone help me in writing the short code

Thanks