Guest Posted January 11, 2004 Share Posted January 11, 2004 Hi All, I'm fairly new with oscommerce on a Windows 2000 platform. I was in the past able to get it working OK on a freebsd box. But now I am forced to use a Windows 2000 setup since that's all my ISP will support! (QFW#@%) Anyways, here's where I'm stuck.. I pretty much have everthing working (including the mysql db) except for the mail setup. My isp uses qmail so when a new user signs up they get: Warning: mail(): SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in G:\Webs\sn.admin\shop\catalog\includes\classes\email.php on line 500 Warning: Cannot modify header information - headers already sent by (output started at G:\Webs\sn.admin\shop\catalog\includes\classes\email.php:500) in G:\Webs\sn.admin\shop\catalog\includes\functions\general.php on line 29 so what I tried was the contrib (http://www.oscommerce.com/community/contributions,901) - "smtp through the authentication smtp server" and commented out: //return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers)); here's how I setup the contrib: // begin include(DIR_WS_INCLUDES . '/classes/class.smtp.inc'); $params['host'] = 'mail.cyberbeach.net'; // The smtp server host/ip $params['port'] = 25; // The smtp server port $params['helo'] = ''; // What to use when sending the helo command. Typically, your domain/hostname $params['auth'] = FALSE; // Whether to use basic authentication or not $params['user'] = ''; // Username for authentication $params['pass'] = ''; // Password for authentication $send_params['recipients'] = array("$to_addr"); // The recipients (can be multiple) $send_params['headers'] = array("From: [email protected] ", "To: $to_addr", "Subject: $subject"); $send_params['from'] = '[email protected]'; // This is used as in the MAIL FROM: cmd // It should end up as the Return-Path: header $send_params['body'] = "$this->output"; // The body of the email is_object($smtp = smtp::connect($params)) AND $smtp->send($send_params); // end the smtp Now what's happening with that is the user can signup without any errors however the mail isn't being sent. (no errors show up) I even tried putting my username and password in the contrib as well as setting $params['auth'] to TRUE .. (no luck) ANy ideas guys/gals? Any other options/solutions? (localhost for mail didn't work either for the contrib btw) thxs in advance! -Jean Link to comment Share on other sites More sharing options...
Guest Posted January 12, 2004 Share Posted January 12, 2004 anybody? I'm sure I'm not the only one with this problem!! HELP!! Any DEV ppl in here with suggestions/ideas?! thxs -JG Link to comment Share on other sites More sharing options...
Filo Posted January 13, 2004 Share Posted January 13, 2004 ..yep yep...me to i have the same error than you : Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for [email protected] in C:\- Forumi -\e_shop\catalog\includes\classes\email.php on line 500 Warning: Cannot modify header information - headers already sent by (output started at C:\- Forumi -\e_shop\catalog\includes\classes\email.php:500) in C:\- Forumi -\e_shop\catalog\includes\functions\general.php on line 29 is there rellay no one that knows the truth about the ring? :) pls help Link to comment Share on other sites More sharing options...
Filo Posted January 13, 2004 Share Posted January 13, 2004 P.S: this is default mail - no contribution jgionet: tell me something... what were your settings in admin for mail...(if u are asking yourself why) well i am new in this buisness and i have a lot to learn :) Link to comment Share on other sites More sharing options...
Guest Posted January 13, 2004 Share Posted January 13, 2004 what is the server mail log telling you? you should be able to access an error and access log, it should tell you what is going on at the time you are doing each and every command on the server and where the server is going. Link to comment Share on other sites More sharing options...
Guest Posted January 13, 2004 Share Posted January 13, 2004 unfortunatly I don't have access to the logs since my ISP is running the servers! I did however find a solution here.. (after hours of searching!!) http://www.oscommerce.com/forums/index.php?sho...=0entry252104 The only thing I've noticed now that doesn't work is when ppl try to send me a message using the "Contact Us" page. The email gets sent however the BODY of the message is blank! -JOY- here are my settings for mail in the Admin section: Value Action E-Mail Transport Method smtp E-Mail Linefeeds CRLF Use MIME HTML When Sending Emails false Verify E-Mail Addresses Through DNS false Send E-Mails true btw: I'm not using the contrib anymore! Using the default mail method. -J Link to comment Share on other sites More sharing options...
alhajjah Posted January 13, 2004 Share Posted January 13, 2004 I am new to this as well and I would like to try out oscommerce on an IIS server in Windows 2000 server. Can someone help. I have read the instructions, but it seems like I am missing something. Thanks for all the help in advance Link to comment Share on other sites More sharing options...
bdeonline Posted January 14, 2004 Share Posted January 14, 2004 I am also trying to put up oscommerce on a Windows Server 2003. But am also having problems with email as it will not send one. Even though I have the SMTP working. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.