A
A
AR2021-10-03 10:23:26
PHP
AR, 2021-10-03 10:23:26

How to send email via imap?

How to send email via imap?

From documentation:

imap_mail(
string $to,
string $subject,
string $message,
?string $additional_headers = null,
?string $cc = null,
?string $bcc = null,
?string $return_path = null
): bool

And where is something here, with regards to either authorization or in the whole sender of the letter?

I try to send it this way, it returns the truth, but nothing is sent naturally.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Karabanov, 2021-10-03
@karabanov

imap_open

V
Vladimir Dubrovin, 2021-10-04
@z3apa3a

IMAP does not send emails. Mail clients send letters via SMTP submission, imap can be used to put a letter in the sent folder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question