rohan
In the zone
din said:Offtopic again
php mail() does not need any authentication and thats how we can send emails like in the form. You need not have an email account in the server to use it.
But on the other hand, smtp one need authentication. If you do not have a valid email address in that server, you can't use the class.
d00d.. i am just not gonna argue about this anymore... If you are php developer with clientele, I suggest you learn about protocols and networking before you endager your clients. This is the last statement i'm gonna have with this:
In Unix, php uses sendmail to power the mail() functions. The sendmail binary acts as an SMTP server in itself and sends the email. Under Windows, you need to have an SMTP server installed and then php uses port 25 [or some other port that u may specify] to use the installed server and send emails. Now, If i download and install mercury.. but then use the gmail servers for outgoing messages.. i still need to authenticate myself. Then and then only can i use the mail() function and send emails. If, however I set mercury itself as the outgoing server, the need of authentication then depends on the server settings I make.