How to use php mail() in sololearn mobile app ? | Sololearn: Learn to code for FREE!

0

How to use php mail() in sololearn mobile app ?

it gives error for SMTP mail server

7/7/2017 6:06:41 PM

Mohit Mehta

7 Answers

New Answer

0

which Error ? could you Post it. it is possible they didnt activate it.

0

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in ..\Playground\ PHP Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in ..\Playground\

0

it isnt activated... if you can send me the Code i can Check if it would Work ... if you keep on working with PHP Install a local Server on your Computer. abyss Webserver or sth else and activate everything for PHP.

0

<?php $to = "[email protected]"; $subject = "My subject"; $txt = "Hello world!"; $headers = "From: [email protected]" . "\r\n" . "CC: [email protected]"; mail($to,$subject,$txt,$headers); ?>

0

it is correct and should Work.

0

but it doesn't. it works well in pc. but i want to try it here

0

you mean when you use sololearn with the Code on PC ?