SENDING MAIL IN PHP | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

SENDING MAIL IN PHP

Evening peeps... Please i self taught myself php but I am having issues with php mail function. Can anyone help out maybe reach out to me via email.

13th Feb 2018, 6:29 PM
Chinedu Chiaju
Chinedu Chiaju - avatar
1 Answer
+ 1
that's right be aware of "pishing"! send mail by php: just call the function is not enough and you must install some libs (phpmailer or pear) . before all , you must have a "mail server" (a software ) and some companies like google have one. but can use "mailtrap.io" because its free! https://www.google.com/url?sa=t&source=web&rct=j&url=https://mailtrap.io/register/signup&ved=2ahUKEwi28KTdgavZAhUC-qQKHSbgADQQjBAwA3oECAcQDQ&usg=AOvVaw2eeiWqtR9CqpkXwkxEoXIV after do configs in your gmail provincy ,have message in your spam. sounds boring.😥 best way (without any puzzling configuration) if you can use laravel php framework install "swift mailer" lib by composer and set the given informations (from mailtrap.io mail server) in mail.php then you can use Mail::functions without any problem finaly you can send email to anyone inbox 🍸😉
16th Feb 2018, 6:08 PM
Amirhosein Morteza
Amirhosein Morteza - avatar