Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is there a way to specify the smtp server IP in php Mail function 2

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
I've been trying to look this up for a while but can't seem to find it.
is there a way to specify the smtp server the php mail function shoudl point too?

any help will be great :)


Code:
$headers ='MIME-Version: 1.0' . "\r\n";
$headers .= "From: me@domain.com";
$subject="testing sugar email service";
$body ="testing 123";
mail("toaddress@domain.com", $subject, $body, $headers);
 
Apparently, I seem to have to set up a proxy where this mail function should point to a local 192.168.*.* address and not localhost.
That is what i was trying to figure out .....
 
or if you use windows you can just edit php.ini and add the local ip address of the smtp server.
 
unfortunately, im on a windows system.
I wonder why they don't let linux specify the smtp server.
I will try out phpmailer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top