How To Send Email Using PHP with PHP Mail() Function | Mail in PHP from Localhost using XAMPP Server

preview_player
Показать описание
PHP makes use of mail() function to send an email. This function requires three mandatory arguments that specify the recipient's email address, the subject of the the message and the actual message additionally there are other two optional parameters.
How To Send Email Using PHP with PHP Mail() Function | Mail in PHP from Localhost using XAMPP Server

mail( to, subject, message, headers, parameters );

Рекомендации по теме
Комментарии
Автор

Thanks buddy, your video really help me lot.
Now I can send mail to my Gmail ID successfully.
# Fazal elahi

FazalJio
Автор

mine still didn't work it says email failed

Ava-
Автор

can you please update your php code in description box.

hdchannel
Автор

It shows me that the message has been sent but actually nothing is in my gmail. I don't know what's wrong.

jooryalhamed
Автор

This is wrong php code.. did not work send email.

ssureshcool
Автор

please avoid keyboard type sound, actually this sound added manually not original type sound bro

nilanithan
Автор

It say email send but when you see in your gmail you can not found the email. what wrong?

didacemanirakiza
Автор

Saying mail sent but not seen in spam and in regular one

tejapraveendevarajuobulase
Автор

i did everything this is an error i come across ; Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in on line 8
Email failed

sinesiphosinworld