Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Email problems


Peter03

Recommended Posts

Hi all

 

I wonder if you could help me.

 

Whenever anyone registers a new account onto the oscommerce i have setup a return error message which looks like the one below appears. I think its because i have not setup the email setting properly or even at all. I can't recall what email settings i supplied when i first installed the software, or even if they prompted me for any ??.

 

How do i go about changing the email settings now?? I have checked the configure.php file and i couldn't find anything relating to email settings in there. I have also checked the admin panel and couldn't find any settings in their either?

 

Any ideas?

 

Thanks in advance - Pete

 

Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for [email protected] in c:\inetpub\wwwroot\ecom\catalog\includes\classes\email.php on line 500

Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\ecom\catalog\includes\classes\email.php:500) in c:\inetpub\wwwroot\ecom\catalog\includes\functions\general.php on line 29

Link to comment
Share on other sites

email settings are in admin panel under email and are set to either smtp or sendmail

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Hi Steve

 

Thanks for the quick response. I have found the settings you described, but there is no option to input an smtp server?? I was under the impression i would have to specify my mail servers or external mail servers for the email to be routed out?

 

Am i doing something stupidly wrong , even looking in the wrong section of the admin panel?! The settings i have found are under configuration > Email options.

 

Thanks - Pete

Link to comment
Share on other sites

What version OS are you using?

 

Am i doing something stupidly wrong , even looking in the wrong section of the admin panel?! The settings i have found are under configuration > Email options

 

this is the correct local, there should be E-mail transport method and send mail.

 

E-mail transport method is where you can choose sendmail or smtp.

 

send mail is set to true

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

I have changed the settings as you described, but i am still receiving an error message. This message is a slightly different one. I have included a screen shot if this helps. Im probably doing something simply wrong, but not sure what!!??

 

screenshot.jpg

 

The error message i am receiving now looks like this:

 

Warning: mail(): SMTP server response: 501 5.5.4 Invalid Address in c:\inetpub\wwwroot\ecom\catalog\includes\classes\email.php on line 502

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

 

I have looked in the database to see if i can specify or change the email server it is using but to no luck. Does anyone know what email servers are used by default? or is it one i may have specified when installing osCommerce.

Any ideas?

 

I am running 2.2ms2 according to the downloaded file.

 

Thanks - Pete

Link to comment
Share on other sites

Ok try setting MIME HTML to true.

 

Have you installed any additional modules or is this a stock OS?

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Thanks for your replies

 

I am running this on a windows 2000 server because i had trouble putting it onto a windows 2003 server. Does this make a difference to what Jason has suggested?

 

I have checked email.php and there was a return key hit but that shouldnt make much of a difference should it?? because the code ended above it.

 

Should i try changing it to smtp? if so where do i input the smtp servers im going to use? or does it use some of its own?

 

Thanks again - Pete

Link to comment
Share on other sites

I think im beginning to understand more about how the emailing in this program works. Is there anywhere where i can specify or change the smtp servers. Now i have changed the settings back to smtp which makes sence i am getting a 550 unable to relay message. This indicates to me that the smtp server the program is trying to use isn't accepting my the connection and bouncing the error message back. I could be wrong, someone tell me if im completely off track.

 

So i need to change the smtp servers, someone please help me out on this one? I have checked the admin panel for smtp settings but i can't see any. Am i the only person who has experienced this problem.

 

Thanks again - Pete.

Link to comment
Share on other sites

you are on the right track! you will need to use smtp for email, but i'm unsure of where to define it. i'll look into it.

 

also, there can be absolutely nothing (not a space, return, tab, nothing) after the closing ?>

 

php is picky that way.

Link to comment
Share on other sites

i am also having a problem with sending mail from oscommerce.

thing is: the Return-Path in email sent, is always empty.

some email servers reject messages without Return-Path header properly set.

 

why is osCommerce not using phpmailer? would be a much better choice than using php's mail().

 

phil

Link to comment
Share on other sites

in the admin panel

under configuration, you have "store name", "store owner", "phone number", etc... look at email address, do you have an address listed in there?? you should, that is where the email script gets the return address from.

Link to comment
Share on other sites

thanks noobish.

 

no. it wasn't that. in the received header the from is always blank.

i solved the problem by using phpmailer instead of mail().

 

but now i'm having other trouble. :huh:

i don't get proper newlines in the mail. i'm sending it as plaintext.

and in the checkout_process.php i see this:

$email_order = STORE_NAME . "\n" .

 

obviously that won't do. i think it must be "\r\n".

 

i guess i have to do a ereg_replace on $email_text.

 

cheers,

phil

Link to comment
Share on other sites

  • 1 month later...
i solved the problem by using phpmailer instead of mail().

 

can you explain this better? How did you use phpmailer - settings, etc.

 

I'm with a host, can't get e-mail to go to hotmail, yahoo, aol, etc. - this is what's returned to me:

 

A message that you sent could not be delivered to one or more of its

recipients. This is a permanent error. The following address(es) failed:

 

  ********@hotmail.com

    unrouteable mail domain "hotmail.com"

 

------ This is a copy of the message, including all the headers. ------

 

Return-path: <[email protected]>

Received: from nobody by host.dnsserverfl.com with local (Exim 4.24)

id 1AhEiW-0000lj-Vq

for ********@hotmail.com; Thu, 15 Jan 2004 16:07:30 -0500

To: "tester tester" <********@hotmail.com>

Subject: tester

From: graficalicus <[email protected]>

MIME-Version: 1.0

X-Mailer: osCommerce

Content-Type: text/plain; charset="iso-8859-1"

Content-Transfer-Encoding: 7bit

Message-Id: <[email protected]>

Date: Thu, 15 Jan 2004 16:07:30 -0500

 

any ideas? Mail setup in Admin panel is:

 

sendmail

LF

true

false

true

 

my correct address is in the E-Mail Address field in My Store, as well as E-Mail From,

Linux server;

PHP 4.3.3;

path to sendmail is correct - without the ".exe" on the end

 

##as an aside - NONE of my php-based pages send mail to hotmail, yahoo, etc., very well - this includes 4images, phpbb, invision board & oscommerce - host SWEARS it's the scripts in those programs, but.. :angry: .. - - - -

 

these programs all send to certain accounts fine - my own, for instance - but the freebie accounts don't take - - ideas?

Link to comment
Share on other sites

read my post here (i explain what worked for me.):

http://www.oscommerce.com/forums/index.php?sho...10entry273407

 

the php mail() function does only allow the sending of the fifth parameter if safe_mode is enabled in php.ini.

 

read the comments on this page:

http://ch2.php.net/manual/en/function.mail.php

 

i used phpmailer because it's more deluxe. :)

 

cheers,

phil

Link to comment
Share on other sites

hi, cmyk -

 

I'm having a bit of trouble with phpMailer -

 

I'm not sure where to put the class - in the root of my store? in the root of my site? somewhere with php.ini (I don't have access, since I'm hosted - - :( )

 

I'm a newbie to nessing too deeply with php - can you provide a step-by-step hand-holding for me? I greatly appreciate it....

 

mike

Link to comment
Share on other sites

hi yet agin -

 

to use SMTP (which I have working with an Invision Board & a phpBB board on my site) I need to add this line in the SMTP section of my email.php script:

 

"[email protected]"

 

can someone assist as to WHERE it goes??

 

thanks yet again - - :unsure:

Link to comment
Share on other sites

  • 3 years later...
read my post here (i explain what worked for me.):

http://www.oscommerce.com/forums/index.php?sho...mp;#entry273407

 

the php mail() function does only allow the sending of the fifth parameter if safe_mode is enabled in php.ini.

 

read the comments on this page:

http://ch2.php.net/manual/en/function.mail.php

 

i used phpmailer because it's more deluxe. :)

 

cheers,

phil

 

Hi I have phpmailer working, and have fooled around with the linefeed and html settings till I get an OK email sent on order confirmation, but it is not professional at all. Seems the separators do not separate when the email is opened in Outlook. I also get an https:// line in there. All the info is there, but it just runs together. If the same email is opened in a webmail application, it looks fine.

 

Anyone got ideas on where to start?

 

Thanks,

 

Bruce

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...