host for mail function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

host for mail function

Post by m2babaey »

Hi
You know one of the parameters for sending mail using smtp method is "host"

Is there such a parameter when we use "mail" method
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: host for mail function

Post by social_experiment »

The Manual wrote:bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] )
These are the parameters for the mail() function.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Re: host for mail function

Post by m2babaey »

I couldn't understand whether your answer is yes or no
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: host for mail function

Post by social_experiment »

No. Unless the $additional_headers & $additonal_parameters can contains such a parameter, which i dont think it does.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply