Hello all..
my question is regarding the mail function..
i understand in order to use it you have the have SMTP with username and password set up..I also understand that the configuration settings are to be set in php.ini file...
but what i want to know is how can i set these parameters programatically in flow of the application..
for example:
can i do
ini_set('SMTP', 'hostname')
so it overrides whatever is in the php.ini file for that page..or for that application...if this is possible how would i set the username and password
so the mail() function knows what SMTP and user and password to use..
also would there be any additional parameters needed to send the e-mail in terms of configuring programatically..
reasons why i want to know this:
lets say the SMTP is not set for the machine and you do not have access to the php.ini file.. what would u do in that case to send an e-mail.. but u do know the SMTP and have the username and password..
thanks for your help in advance..