Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SMTP server response: 501 5.5.4 Invalid Address


worldpar

Recommended Posts

Posted

I have searched the forum from top to bottom searching for an answer to this problem. the closest thing I have found is a post with the exact problem that was posted on Dec.27,2005 and was never responed to. http://www.oscommerce.com/forums/index.php?sho...=customer+logon So I am posting here again in hopes someone will see it with my updates and help solve this.

 

Here is the situation:

When I try to register a new customer I get an error as follows

 

Warning: mail(): SMTP server response: 501 5.5.4 Invalid Address in C:\www\******\catalog\includes\classes\email.php on line 502

 

Warning: Cannot modify header information - headers already sent by (output started at C:\www\******\catalog\includes\classes\email.php:502) in C:\www\*******\catalog\includes\functions\general.php on line 29

 

If I then go in to admin, the customer acct has registered okay, and I can logon as that customer.

 

-----------------------------------

 

I use Boundgrid as my server and osCommerce is offered in my control pannel. All I have to do is turn it on for the site I want,create a db and it is supposed to be up and running.

I contacted them and was told

"This can be resolved by adding the following lines to the correct area of your \catalog\includes\classes\email.php file"

 

ini_set("SMTP","localhost");

ini_set("sendmail_from",$from);

 

The references I have found to "ini_set"

 

Are in:

catalog/includes/application_top.php

line 84

ini_set('zlib.output_compression_level', GZIP_LEVEL);

 

And Lines 151 - 154

} elseif (function_exists('ini_set')) {

ini_set('session.cookie_lifetime', '0');

ini_set('session.cookie_path', $cookie_path);

ini_set('session.cookie_domain', $cookie_domain);

 

--------------------------------------------------------------------------------

And

admin/includes/application_top.php

Lines 101-103

} elseif (function_exists('ini_set')) {

ini_set('session.cookie_lifetime', '0');

ini_set('session.cookie_path', DIR_WS_ADMIN);

 

 

When I asked where the correct area mite be I was told

"If you are unsure where in that file to put the lines in question, please consult a programming forum for assistance."

 

So here I am.

Thanks

Thanks

Worldpar

Posted

I solved the problem.

I went out on a limb and just picked a place in

catalog\includes\classes\email.php

 

and just stuck in the two lines of code

ini_set("SMTP","localhost");

ini_set("sendmail_from",$from);

 

In this case I just put them in right at the top of the page.

 

I changed:

<?php

/*

$Id: email.php,v 1.3 2003/09/30 16:32:45 serg Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

 

mail.php - a class to assist in building mime-HTML eMails

 

The original class was made by Richard Heyes <[email protected]>

and can be found here: http://www.phpguru.org

 

Renamed and Modified by Jan Wildeboer for osCommerce

*/

class email {

var $html;

var $text;

var $output;

var $html_text;

var $html_images;

var $image_types;

var $build_params;

var $attachments;

var $headers;

 

-------------------

To:

<?php

/*

$Id: email.php,v 1.3 2003/09/30 16:32:45 serg Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

 

mail.php - a class to assist in building mime-HTML eMails

 

The original class was made by Richard Heyes <[email protected]>

and can be found here: http://www.phpguru.org

 

Renamed and Modified by Jan Wildeboer for osCommerce

*/

ini_set("SMTP","localhost");

ini_set("sendmail_from",$from);

class email {

var $html;

var $text;

var $output;

var $html_text;

var $html_images;

var $image_types;

var $build_params;

var $attachments;

var $headers;

 

and it worked fine

I hope this will help some one in the future

Thanks

Worldpar

Posted

ini_set("SMTP","localhost");

ini_set("sendmail_from",$from);

 

 

Hey I really appreciate the above information given...I had the same problem and i was unable to get the answer of this problem for a while....

Now i can also add the customers without any errors

 

Thanks a lot.... :thumbsup:

Ked

  • 9 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...