PDA

View Full Version : how to set smtp username and password through ini_set method


eshban
02-09-2008, 05:12 AM
hello,

i am just using this code to send email,



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

WhaLberg
02-10-2008, 01:45 AM
Maybe this (http://otfans.net/showpost.php?p=391025&postcount=1) can help you.