FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


how to change the FROM adress ?





Slay
Hello everyone,

First of all, thanks for your hosting ! It's pretty cool ,seems works very fine, i'm very very very happy Smile
I would like to know how to set up the FROM adress for mail() function in php Smile


thanks for all
vizavex
Ok if I am not wrong
I think you be able to set your
mail() function like this

Code:

mail($user_email, $subject, $message, $from);

Where
$user_email --> receiver email address variable
$subject --> mail subject variable
$message --> message variable
$from --> Sender email as you said from ___ (actually this is the email header, which display additional message)

more detail
you can refer to here
http://www.php.net/manual/en/function.mail.php
Slay
vizavex wrote:
Ok if I am not wrong
I think you be able to set your
mail() function like this

Code:

mail($user_email, $subject, $message, $from);

Where
$user_email --> receiver email address variable
$subject --> mail subject variable
$message --> message variable
$from --> Sender email as you said from ___ (actually this is the email header, which display additional message)

more detail
you can refer to here
http://www.php.net/manual/en/function.mail.php


Great !! it works Smile i was thinking we would only set it up in php.ini Embarassed
Related topics
i don't see the change about my domain,Bondings
help, change pass my acc in cpanel
Help me change port for phptriad
change cpanel login
Change Style !
Can't change permissions? Could not change perms on images
Adress Domain FTP
how can i change password in my database?
Subdomain name change
Msn Spaces: Secret ad-ons
What Do You suggest ?
Redirection
Do you want change a link with my blogs?
e-mail adress change
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.