confusion about the e-mailing function of PHP

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
chessmonster
Forum Newbie
Posts: 1
Joined: Mon Jan 18, 2010 11:52 am

confusion about the e-mailing function of PHP

Post by chessmonster »

hello,

tnx for reading the thread.

i am just kinda confused with the emaling function of the PHP.

i will try to build a site that can send e-mail made of PHP of course. but if it gets used/opened in a computer without any XAMPP or WAMP, will it still work? (the e-mailing function)
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: confusion about the e-mailing function of PHP

Post by califdon »

The mail() function in PHP uses the SMTP (outgoing) mail server of the site on which the script is stored. Assuming that there is an SMTP server on that site, any browser on any computer can send email using a script on the server.

That's why you must write any email scripts very carefully, so that hackers and spammers cannot use your scripts to send abusive email.
Post Reply