spikesforu Posted July 12, 2003 Share Posted July 12, 2003 Warning: mail(): SMTP server response: 550 unknown user <"Admin Vargas" <[email protected]> in R:sunflower-pcadminincludesclassesemail.php on line 462 Warning: Cannot modify header information - headers already sent by (output started at R:sunflower-pcadminincludesclassesemail.php:462) in R:sunflower-pcadminincludesfunctionsgeneral.php on line 83 After I in put the info and hit save i get this message. The info is updated howerver i still get the message. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2003 Share Posted July 12, 2003 There is an SMTP authentication contribution that should allow you to do this. Good luck, Matt Quote Link to comment Share on other sites More sharing options...
spikesforu Posted July 12, 2003 Author Share Posted July 12, 2003 Thanks for the info, however i'm having a bit of trouble on the info that i have to provide for the email.php in catalog/includes/classes/email.php and after if (EMAIL_TRANSPORT == 'smtp') { add this and change the host, user, pass and your email address: // begin include(DIR_WS_INCLUDES . '/classes/class.smtp.inc'); $params['host'] = ''; // 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'] = TRUE; // 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: your email address ", "To: $to_addr", "Subject: $subject"); $send_params['from'] = 'your email address'; // 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 It says to add this in the email.php and after. What do they mean by that? What host, user, pass and your email address i'm suppose to use? Quote Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2003 Share Posted July 12, 2003 $params['host'] = ''; // 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'] = TRUE; // Whether to use basic authentication or not $params['user'] = ''; // Username for authentication $params['pass'] = ''; // Password for authentication $send_params['headers'] = array("From: your email address ", "To: $to_addr", "Subject: $subject"); $send_params['from'] = 'your email address'; // This is used as in the MAIL FROM: cmd // It should end up as the Return-Path: header What host, user, pass and your email address i'm suppose to use? The host is going to be something like mail.yourhostsdomainname.com; it is also called the SMTP (send) server name. The email address would be the store owner's. The username and password (and host) would be the same as you would put in a mail client like Outlook Express. If you still aren't sure, I suggest you ask whomever provides the SMTP service for you. They would know the proper values to use. I would simply set the helo to the domain name of the email address (i.e. the part after the @). Good luck, Matt Quote Link to comment Share on other sites More sharing options...
spikesforu Posted July 12, 2003 Author Share Posted July 12, 2003 $params['host'] = ''; // 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'] = TRUE; // Whether to use basic authentication or not $params['user'] = ''; // Username for authentication $params['pass'] = ''; // Password for authentication $send_params['headers'] = array("From: your email address ", "To: $to_addr", "Subject: $subject"); $send_params['from'] = 'your email address'; // This is used as in the MAIL FROM: cmd // It should end up as the Return-Path: header What host, user, pass and your email address i'm suppose to use? The host is going to be something like mail.yourhostsdomainname.com; it is also called the SMTP (send) server name. The email address would be the store owner's. The username and password (and host) would be the same as you would put in a mail client like Outlook Express. If you still aren't sure, I suggest you ask whomever provides the SMTP service for you. They would know the proper values to use. I would simply set the helo to the domain name of the email address (i.e. the part after the @). Good luck, Matt Were is this script going on the top or bottom of the email.php file Quote Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2003 Share Posted July 12, 2003 You would put the code after the line if (EMAIL_TRANSPORT == 'smtp') { which will already be in email.php. Good luck, Matt Quote Link to comment Share on other sites More sharing options...
spikesforu Posted July 13, 2003 Author Share Posted July 13, 2003 You would put the code after the line if (EMAIL_TRANSPORT == 'smtp') { which will already be in email.php. Good luck, Matt One more question do I delate the rest of the script which is already there. Meaning the rest of the smtp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.