Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

email doesn't work. emails don't send


Trusten

Recommended Posts

Posted
I'm using 2.2 so far, I cannot get the email to work, where do I configure it in the code?

 

The email settings are configured using the admin tool under configuration.

 

Make sure you have send emails set to true and that the email transport method and line feed are also set correctly for the platform you are using.

 

I.E Sendmail & LF for Linux

SMTP & CRLF for Windows.

 

Also make sure you actually have a mail server setup :)

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

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

Software is like sex: It's better when it's free. (Linus Torvalds)

Posted

yup

it's all set up

but

it's not working at all.

 

what else could it be? can't i just use the old email code, that one worked.

Posted

Has it ever worked? Mine was working up till the other day...my hosting company made some changes; now I need to use my own ISPs smtp server rather then my hosting companys mail and i don't know how to make the changes within the admin control panel.

Perhaps your hosting company made the same changes.

 

Any ideas how to change the mail settings within admin to tell which and what mail server to use for outgoing mail?

Posted

Have not been able to find the admin settings.....

 

....but with me it has not worked yet.....allthough I am able to send mail from the admin to members.......

 

so, i'm also looking for the settings

Posted

Please people, my crystal bowl is broken, so I need more information.

 

What operating system are you using?

 

In 2.2 Administrator there is a configuration group called E-Mail settings. It is quite self explanatory.

 

If you are using windows, make sure you have the right settings in php.ini before tweaking with osCommerce. The settings in php.ini are commented.

 

General rule for the osCommerce settings (telling this for the millionth time):

 

Windows:

 

E-Mail Transport Method: SMTP

E-Mail Linefeeds: CRLF

 

Unix/Linux/BSD/MacOS X

 

Transport: Sendmail

Linefeed: LF

 

HTH

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Posted

Have done all you indicate....am running on linux with version 2.2.

 

none of the payment or confirmation mails are sending....

 

ron

Posted

i got the email to working. turns out, because i was upgrading to a new virtual server on the same system, since two areas were named 'mydomain.com', it was trying to send to the one closest.

 

 

test it by sending it to a hotmail account or something.

Posted

Tell a friend -mail works....

 

But still no order confirmation or other notifications....

 

any ideas/??

 

txs,

 

ron :shock:

Posted

I to still have the same problem, I looked and my settings are set too

 

E-Mail Transport Method sendmail

E-Mail Linefeeds LF

Use MIME HTML When Sending Emails false

Verfiy E-Mail Addresses Through DNS false

Send E-Mails true

 

Hosting server is unix based, I'm thinking it's something that changed with my hosting company because we were asked to use our own personal SMTP server for outgoing mail. Would this be the reason?

Posted

Guys (and gals :lol:),

 

Please, at the Admin panel select "Tools->Server Information" (text could be slightly diferent since mine is in portuguese and I'm making direct translation :) )

 

It will appear some osC internal info and also the usual php_info() return.

Npw, first step is done :?

 

[ For those looking for php.ini look at "Configuration File (php.ini) Path" ]

 

Please tell us what is writen at "sendmail_path" and "SMTP".

 

For now I can't remember anything more. For instance, my SMTP is set to localhost. Yours could be diferent... must see.

 

8) Lopo

If I helped you, you can help others too.

Search Affero Network. Thanks :)

--

moving mentalities >> fast forward

Posted
This is what i got!

 

sendmail_from

[email protected] [email protected]

 

sendmail_path

/usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i

 

SMTP

localhost localhost

 

hope you can figure this out!

txs

ron

 

I think that "sendmail_from" couldn't be [email protected]. As far as I remember it could be me@localhost if me is your real username ;)

 

At the Admin Section change your "E-Mail Transport Method" from sendmail to SMTP and it may be solved.

 

Verify also if SENDMAIL is really at /usr/sbin. This could be an error but since you are using SMTP I think SendMail isn't used.

 

If nothing works then talk with them and explain what you get (use the full phpinfo() return if needed), what you did and ask for help.

 

Best of lucks 'cause I cannot see how can I help you more now :oops:

 

 

8) Lopo

If I helped you, you can help others too.

Search Affero Network. Thanks :)

--

moving mentalities >> fast forward

Posted

Well tt was my ISP that was having the issues. I guess port 25 was disabled due to spam or something. Anyway it's all up and running all emails sent from the site are working like they should.

 

I to still have the same problem, I looked and my settings are set too

 

E-Mail Transport Method sendmail

E-Mail Linefeeds LF

Use MIME HTML When Sending Emails false

Verfiy E-Mail Addresses Through DNS false

Send E-Mails true

 

Hosting server is unix based, I'm thinking it's something that changed with my hosting company because we were asked to use our own personal SMTP server for outgoing mail. Would this be the reason?

Posted

I have the same problem. site owner couldn't recieve the email.

I found the wired thing.

if customer uses yahoo email or hotmail, he can recieve the order comfirmation email. but site owner still can't.

if customer uses pop account like [email protected], he can't recieve at all. site owner can't, neither.

 

i set up like the below.

 

E-Mail Transport Method sendmail

E-Mail Linefeeds LF

Use MIME HTML When Sending Emails false

Verfiy E-Mail Addresses Through DNS false

Send E-Mails true

 

Email Address: [email protected]

Email From: [email protected]

 

I am running my own name server and hosting server using ensim control panel.

 

anybody know how to figure out if this is the hosting server issue?

 

thanks.

  • 2 months later...
Posted

u need to edit ur /etc/hosts file.

make sure you have a valid host name listed for the loopback.....NOT "localhost.localdomain", or else sendmail will not relay messages correctly to the local machine....if u check ur maillog u will see error msgs like:

DSN: Data format error

 

good luck

 

 

j

  • 4 months later...
Posted

Ok guys I am running RH 8.0 and the lastest SP of OSC. I have sendmail up and working fine on my localhost, yet:

 

This is what server_info.php is showing:

 

"sendmail_from

[email protected] [email protected]

 

sendmail_path

/usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i

 

SMTP

localhost localhost "

 

I know that I need to change the '[email protected]' but I have no idea where to go to do so... could anyone help me please?!?! I am hoping this will fix all of my email issues.

  • 9 months later...
Posted
Guys (and gals :lol:),

 

Please, at the Admin panel select "Tools->Server Information" (text could be slightly diferent since mine is in portuguese and I'm making direct translation :) )

 

It will appear some osC internal info and also the usual php_info() return.

Npw, first step is done :?

 

[ For those looking for php.ini look at "Configuration File (php.ini) Path" ]

 

Please tell us what is writen at "sendmail_path" and "SMTP".

 

For now I can't remember anything more. For instance, my SMTP is set to localhost. Yours could be diferent... must see.

 

8) Lopo

hello,

I have email problems too.

on the admin/tools/server info i cannot find any info about sendmail_path or SMTP

 

where can I find this?

Keesjan

  • 3 weeks later...
Posted

I have also had a problem sending emails to hotmail accounts but it would seem that it's not only the OSCommerce script that has this problem.

 

 

Some good reading:

 

http://www.zend.com/manual/function.mail.php

and

http://phpmailer.sourceforge.net/

 

One thing that needs to be checked is that the headers are correct in the emails sent. This can be done in hotmail, if you turn the advanced headers on and send yourself a message.

 

They should be like this: (in this order)

 

$headers = "From: admin<[email protected]> \r\n";

$headers .= "MIME-Version: 1.0 \r\n";

$headers .= "Content-type: text/html; charset=iso-8859-1"." \r\n";

 

 

Are they in this order when an email is sent?

If not they need to be changed? I have been unable to test this as of yet, if somone has a go before I do please could you reply with your results.

Posted

ok been through loads of posts in this forum but none of them have worked

 

It must be a script problem. I can send an email to my own domain email account, I can send an email to an hotmail account but only when they sign up.

 

So I guess there is something missing when emails are sent from other parts of the script.

 

Does anyone have a quick fix? Have you make any changes to the script to make it work if so what?

Posted
u need to edit ur /etc/hosts file.

make sure you have a valid host name listed for the loopback.....NOT "localhost.localdomain", or else sendmail will not relay messages correctly to the local machine....if u check ur maillog u will see error msgs like:

DSN: Data format error

 

good luck

 

 

j

Can you tell me which files to edit, in order to change the host name? My /etc/hosts file now says:

 

127.0.0.1 localhost

65.219.61.10 server.storyleader.com

 

"server.storyleader.com" is the actual name of my host, although not of the virtual non-static domain to which I'm trying to send email.

 

I don't know where my maillog is. Sorry to be so ignorant!

 

Here's the problem I'm having:

 

OSC sends tell-a-friend, email from "send email to customer", and customer notifications just fine. But I'm not getting notification emails when a sale has been made.

 

This is true with smtp and also with sendmail as my method of sending emails from OSC.

 

I'm running Red Hat 9 on Linux, Apache., PHP 4.3.4.

 

So the problem seems like it might be one of getting emails to the same server on which OSC is running? But if I log on as a fictitious customer with an email name on my domain and make a purchase, I get the customer notification. (I've tested this with smtp only so far.)

 

Any ideas of how to fix this?

 

Thanks!

Posted

Hi,

the email system doesn't work me too, i run it in a debian linux with sendmail.

The weird thing is that the same oscommerce package works fine in a windows system...

All work but no email was sent, I set sendmail and LF mail headers.

Thanks

 

Luca

Archived

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

×
×
  • Create New...