seding email through linux with php

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
hward
Forum Contributor
Posts: 107
Joined: Mon Apr 19, 2004 6:19 pm

seding email through linux with php

Post by hward »

I have a server running on Fedora Core and php and mysql on it and thats all i am using. I made a page that sends and email using

Code: Select all

<?php
 $to = "$email" ;
 $subject = "Subject" ;
 $msg = "Message" ;
 mail($to,$subject, $msg) ;
?>
When I first got the page working i sent myself a message and noticed that the from address shows as Apache That got me to thinking back to some stuff I read about reverse DNS and some ips blocking incoming email from your ip if you didn't have a reverse dns setup. I then sent a message to an yahoo account and it didn't show up until the next morning on there so I thought maybe I needed to setup the server with its own mail server to make sure its ip doesn't get black listed or something by other servers for not having something setup properly. If so what all would I need to setup. Sendmail or something?
hward
Forum Contributor
Posts: 107
Joined: Mon Apr 19, 2004 6:19 pm

Post by hward »

Sorry I just realized I posted to the IIS forum instead of the linux one.
Post Reply