Sending Mail from mail() Function
Posted: Sat Jul 13, 2002 6:00 am
////// sending mail
print (mailSender("test@test.com"));
/////////// mail sending function
function mailSender($strMailTo){
$strSubject="Wellcome to Shop Spot";
$strBody="This a Welcome Mail.....Your request is in process...When the site administrator aprove you..You will get an email.. ";
$strMailFrom="saadi_shah@hotmail.com";
return mail($strMailTo,$strSubject,$strBody,$strMailFrom);
}
///// ended
...now come to the problem this code sends mail from an address "nobody@myserver.com".....
but i wanna send this mail from "info@myserver.com"....
what chang i should make in above code..so that it send mail from info@myserver.com".....
can anyone figure it out....
print (mailSender("test@test.com"));
/////////// mail sending function
function mailSender($strMailTo){
$strSubject="Wellcome to Shop Spot";
$strBody="This a Welcome Mail.....Your request is in process...When the site administrator aprove you..You will get an email.. ";
$strMailFrom="saadi_shah@hotmail.com";
return mail($strMailTo,$strSubject,$strBody,$strMailFrom);
}
///// ended
...now come to the problem this code sends mail from an address "nobody@myserver.com".....
but i wanna send this mail from "info@myserver.com"....
what chang i should make in above code..so that it send mail from info@myserver.com".....
can anyone figure it out....