Author Topic: I can't send mail please help me !!!  (Read 3443 times)

0 Members and 1 Guest are viewing this topic.

Offline kkchi

  • Pre-Newbie
  • Posts: 2
    • View Profile
I can't send mail please help me !!!
« on: October 29, 2002, 07:52:49 PM »
Server Win2000+IIS5.0+php+MySQL+Exchange2000

Webmail is OK.
SMTP is OK and ALL function is fine JUST MAIL dont work!!!
The outgoing mail can not send out please teach me to fix!!
Thanks a lots!!!

error message :
Warning: Server Error in c:\inetpub\wwwroot\4images\includes\email.php on line 171

my email.php file :
start line 171-->
function send_email() {
    if ($this->use_smtp) {
      return ($this->smtp_mail($this->to, $this->subject, $this->body, $this->create_header())) ? 1 : 0;
    }
    else {
      return (mail($this->to, $this->subject, $this->body, $this->create_header())) ? 1 : 0;
    }
  }

  function smtp_mail($mail_to, $subject, $body, $headers = "") {
    global $config;
    $ok = 1;
   
    if (empty($config['smtp_host'])) {
      $config['smtp_host'] = "localhost";
    }

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
I can't send mail please help me !!!
« Reply #1 on: October 31, 2002, 01:40:05 AM »
did u set correctly you 4images settings from the admin panel?

EDIT
can u send email from any other PHP scripts?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)