Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

Change SMTP Server without changing php.ini files

the mail() function

Moderators: macek, egami, gesf

Change SMTP Server without changing php.ini files

Postby kumschick » Thu Nov 27, 2003 4:06 pm

i want to send an email to someone using an other smtp server that is configured in the php.ini file (under windows)

mail("$email","$pcname - $ipadd","Time and Date: $time $date\n\","From: \"NAME\" <email@domain.ext>");

i need to send an email with an second smtp server. But i can't change the php.ini file everytime i need to send an email from the php page
New php-forum User
New php-forum User
Posts: 2
Joined: Tue Nov 25, 2003 4:40 pm
Location: Luxembourg

Postby swirlee » Thu Nov 27, 2003 4:49 pm

If I weren't such a nice guy, I'd have just said RTFM. It's in there, y'know: ini_set().
User avatar
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.