tags:

views:

52

answers:

4
<?php
mail("[email protected]", "My Subject", "Line 1\nLine 2\nLine 3");
?> 

We don't need to specify the email/password/mail server address && port,but it can be sent .

+2  A: 

I believe it's stored in php.ini.

icktoofay
+4  A: 

That is because the email/password/mail server address/port is defined in your PHP.ini file.

Chacha102
What's it called?
mysql.default_user or something along those lines.
Chacha102
mysql.default_user?! I hope not...
Ignacio Vazquez-Abrams
MySQL is database,not mail server...
See this page: http://us.php.net/manual/en/mail.configuration.php (Yeah, that mysql thing was a brain fart)
Chacha102
+3  A: 

On *nix sendmail(8) is invoked.

Ignacio Vazquez-Abrams
+1  A: 

PHP's mail() does not support SMTP authentication. If you need SMTP authentication check out http://pear.php.net/package/Mail

echo