K
K
k-22019-06-09 15:59:31
PHP
k-2, 2019-06-09 15:59:31

How to send email technically in php?

Can I send emails on my own, without using a mailbox on mail services (such as mail.ru smtp) or without creating a mailbox on the hosting.
I can't find information about this anywhere. What should be the headers and protocol. And where should I send the request?
Can this be done in php?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
eidikos, 2019-06-09
@K-2

I recently dealt with this issue
. I installed an smpt server on my computer, but when I tried to send something through it, of course, nothing happened, most likely all unknown ips were blacklisted from other smpt servers initially.
But through the mail.ru server everything worked fine, but I had to create an account there.
So, technically yes, but no, when requesting a smpt server to send a letter, you can write any sender (in general, without it, there is no way), but most servers will not let you make such a request just like that, you will need an account and authorization and they will check the account and sender in the request, and the letter will not go anywhere from your own server.
I think this article will help a little:
simplecoding.org/php-mail-pod-windows.html

R
Rsa97, 2019-06-09
@Rsa97

You can. But the probability that they will not reach the recipient increases markedly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question