+ 2

Mail did not send in php

Hi friends, I am trying to send mail using photo mail function on live server http://myanshu.com/mail.php but mail does not send. https://code.sololearn.com/wQlfF0uw4Ua3/?ref=app

1st May 2018, 5:56 AM
Satish Kumar Sharma
Satish Kumar Sharma - avatar
3 Antworten
+ 5
sendmail is not available on SoloLearn.
1st May 2018, 5:57 AM
Kirk Schafer
Kirk Schafer - avatar
+ 5
If modifying the "from" field to be like that shown here does not solve the problem, you may have a configuration issue that's outside of SoloLearn's programming context: https://stackoverflow.com/a/3714574 You can ask mail client/daemon questions / things about your configuration there. When working with StackOverflow you should have your PHP version + error message (if any), what is written to your logfiles, your sendmail / postfix / etc version, and (if you can) it would help if you had already tried to send mail by hand (like with telnet or PuTTY). You'll probably need to talk about your configuration (e.g., phpinfo() and php.ini) Mail can get complex surprisingly quickly (I have a lot of experience here) and there are more people with mailservers out on the StackExchange network.
1st May 2018, 6:21 AM
Kirk Schafer
Kirk Schafer - avatar
+ 2
I am testing this code on my live server url www.myanshu.com/mail.php
1st May 2018, 5:58 AM
Satish Kumar Sharma
Satish Kumar Sharma - avatar