I'm using PHP, and now i found that the php native mail()
method is finally also the smtp
.
Ok lets say i am using very simple:
mail("david@gmail.com","hello","hello");
If this code fails, can i say it is SMTP and/or connection to SMTP Server problem?
What i want to discover finally is:
- So can i say that, we are ONLY using
smtp
finally (to send) ? - Or, any other mail sending systems we can use (in PHP at least) ?
I'm asking this knowledge because:
- I want to confirm that, whenever we have problems in sending mails (by using flawless coding), so that is the problem about SMTP Server & its Configurations etc. Can i say that?
Note: Please, I do not have enough knowledge in mail systems. So maybe i need a brief explanation about major different mail systems (if there is something else then smtp).