-1

I'm writing a program in PHP using Apache server, where I want to send email. I have installed Apache server on my Ubuntu machine which works fine. I've created a PHP email page using PHP's email function.

Acknowledgment is also coming but still I am unable to see email in my inbox. So please help me to do this because I want to use this functionality in my website's contact page.

StephenKing
  • 36,187
  • 11
  • 83
  • 112
Mahesh Sharma
  • 191
  • 1
  • 3
  • 9
  • How are we supposed to find the problem when you don't include any of the code you are using? Please include your code and we can try to help you out. – Frank W. Jul 16 '16 at 11:41
  • It's just "PHP", not "(Personal Home Page)", which [isn't even the official meaning anymore](http://php.net/manual/en/preface.php). –  Jul 16 '16 at 11:52
  • Actually, I never read anybody ever referring to that name, except in books about PHP's history :D. I've edited the post. – StephenKing Jul 16 '16 at 12:07

1 Answers1

0

I recommend checking the log files.

A possible problem could be that authentication fails when connecting to the email - server. The email - server has to be configured properly so that PHP knows how to connect to it.

If you install an email server (MTA) on a machine at home it will probably not work because emails from dynamic IP addresses might be rejected as possible spam. So, you might need a provider for it, but you can try to use the same provider and account that you ordinaryly use for sending emails.

mm759
  • 1,404
  • 1
  • 9
  • 7