2

Maybe is a stupid question... but i need to configure my apache+php to send emails via PHP? i have to set a domain to it? the domain has to be configured via DNS?

any lights here please ^^

TIA.

MDiaz
  • 168
  • 1
  • 7
  • apache is HTTP server, not MTA. you cannot configure it to send emails – Your Common Sense Dec 21 '10 at 19:32
  • i mean to send mails via PHP scripts (i have some websites programmed in php that sends mails... i replicated the website on another server but the problems dosnt send mails anymore... everything works perfect, but not mail send) – MDiaz Dec 21 '10 at 19:33
  • Apache doesn't do that. You need a mail server. What OS are you on? – Pekka Dec 21 '10 at 19:45
  • I imagine he's trying to use the mail() function. Which by default uses sendmail – profitphp Dec 21 '10 at 19:49

1 Answers1

2

Look in your phpinfo() and see what your sendmail path is. Try sending mail from the command line using whatever that path points to. If it doesn't work, you need to start there.

profitphp
  • 8,104
  • 2
  • 28
  • 21
  • 1
    What if I'm running php on Windows? (Looks like sendmail is only used for unix/linux.) – JellicleCat Jul 28 '11 at 18:16
  • Do a google search for sendmail alternatives for windows. Mail servers are not one of windows strong points. If this is just a development server, in your house, you might also have trouble sending mail if you're using a residential ISP. – profitphp Aug 05 '11 at 20:44