2 day trying to find a solution on the Internet does not work, a lot of things that I tried, I hope you can help me, I can use Xampp)
code
<?php $to = 'we1we1z98@yandex.com'; $subject = 'Test email'; $message = "Hello World!\n\nThis is my first mail."; $mail_sent = @mail( $to, $subject, $message ); echo $mail_sent ? "Mail sent" : "Mail failed"; ?> php.ini
SMTP=smtp.yandex.com smtp_port=25 sendmail_from =we1we1z98@yandex.com sendmail.ini
[sendmail] smtp_server=smtp.yandex.ru; smtp_port=25; ; SMTPS (SSL) support ; auto = use SSL for port 465, otherwise try to use TLS ; ssl = alway use SSL ; tls = always use TLS ; none = never try to use SSL smtp_ssl=auto default_domain=yandex.com error_logfile=error.log debug_logfile=debug.log auth_username=we1we1z98@yandex.com auth_password=**** pop3_server=pop.yandex.com pop3_username=we1we1z98@yandex.com pop3_password=**** force_sender=we1we1z98@yandex.com ;force_recipient= hostname=yandex.com What is the problem??? why not send a letter ??