Well, the title might be a bit misleading, but I couldn't find a better way to describe my question.
I tried to set up my machine to send email via the php
mail() function. It turns out I can't. My ISP is blocking port 25, so no luck there. Then, out of curiosity, I set up Thunderbird with a gmail account, and sent a message to a hotmail account. This worked. I was curious as to how Thunderbird manages to send the emails.
I saw in the configuration of the gmail account on Thunderbird that it is using a different port, not 25. Thunderbird seems to set this values automatically, which is pretty nice. A while back I wanted to set up an account on Thunderbird, and I had to manually input the SMTP server values, and the IMAP/POP3 values, so it is nice to see that they do it automatically now.
I also checked the mail logs, and nothing had changed. I guess this is a no brainer, since the email is not being sent by postfix's sendmail, but by gmail. Is that right?
Well, my question is how does Thunderbird manages to send email? and more importantly, can I do something similar to be able to send email from my php scripts?
I realize this might be a "stupid" question, but I really know nothing about this matter.
And since I'm already asking, where can I learn about this? Do they teach it in school? Maybe to computer scientists? What is a good book to get started on this nice world of email, SMTP, POP3, and stuff.