Change SMTP Server without changing php.ini files

the mail() function

Moderators: macek, egami, gesf

kumschick
New php-forum User
New php-forum User
Posts: 2
Joined: Tue Nov 25, 2003 4:40 pm
Location: Luxembourg
Contact:

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

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

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().


Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 2 guests