I am new at php coding and dont know much about networking (I started 2 weeks ago), so please bear with me.
Recently I came across the
mail()
function. First of all, I just wrote the simple code usingmail()
without any modifications inphp.ini
file, naturally it didnt work. So I googled the cause; I found that for linux in [mail function] we have to type insendmail_path
the smtp server name. I have an account at yahoo.com so I typedsmtp.mail.yahoo.com
, but this didn't seem to work. So I again googled that and came to know that smtp server of your ISP is required there. My program is a simple testing one and I would love to see the mail in the addresse's inbox as a result of php's code.Also doesn't the apache server (which I use for responding to php code) have smtp support? What is the thing stopping it from messaging? If you feel I need to read please help me with a link.
Is there a difference between yahoo's/gmail's smtp and my isp's smtp, or is it that my isp's smtp communicates with yahoo's smtp to send mail (because though our isp change but we continue to send messages using same yahoo account)?