Jump to content


Server not sending email with php

  • Please log in to reply
2 replies to this topic

#1 Lee

  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 03 October 2006 - 03:21 AM

Hi, I hope you don't mind me asking here.
Can anyone give me an idea why my server won't send emails through php?

I have set php.ini like this & re-booted..
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = lee@mydomain.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i

Is there anything else I could try to get it to work?


#2 doni49

  • Members
  • PipPipPip
  • Advanced Member
  • 515 posts
  • LocationCentral MO

Posted 05 October 2006 - 01:35 AM

I'm not sure if this is it, but it IS something at least seems out of place.

It says "For Win32 only" and "For Unix only.  But neither line is commented out.

Are you on Win32?  Or are you on Unix?  Are you using SMTP to send?  Or sendmail?  If using SMTP, have you specified your username and PW?

Also, what does the code look like that you're using to send the message?  Maybe there's something wrong with THAT?

#3 Lee

  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 05 October 2006 - 02:59 PM

Its a unix server, and I am trying to use sendmail.

Its definately not a code problem because it works fine on another server, and also, I have a CH-phpBB board which is also not sending mail.

//sending sign-up e-mail (validation notice)
$sql_query="insert into validate (email,password,val_key) values ('$email','$password','$val_key')";
$data="<a href='$main_url/index.php?mode=join&act=val&val_key=$val_key&inv_id=$inv_id'>Verify Email</a>";

Thanks :)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users