Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

no emails being sent!!!


chooch

Recommended Posts

Posted

until yesterday my shop was working fine, now i noticed that emails were not being sent.

 

here are the problems:

 

i) admin/mail not sending mail

 

ii) customer doesn't get any email genertaed by store (welcome, order processed, etc)

 

iii) the only email working is the contact us form

 

i have several domains hosted with one company and i have checked all oscommerce stores and it the same problem...

 

i am with wanadoo but got someone with tiscali to test out my site and they got the same 'no-show emails'

 

i then installed a fresh oscommerce store and bingo, the same result. i then decided to install a fresh oscommerce on a different server with a different hosting company and still the same results.

 

barring the unlikely fact that the companies are sharing the same server it looks as though it is the ISP - but when tiscali too doesn't get the emails it makes me worried.

 

i have emailed the host and asked them to check if it is them but this is really wierd...

 

while i wait for the host to get back to me does anyone have any advice please?

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted
thanks for the reply...

 

it still doesn't work though...

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

Try also setting up the email before sending just in case the mail is blocked due to its headers (would really surprise me but you never know)

 

$old_send = ini_get('sendmail_from');

ini_set('sendmail_from', "[email protected]");

 

// send email here

 

ini_set('sendmail_from', $old_send);

Posted
Try also setting up the email before sending just in case the mail is blocked due to its headers (would really surprise me but you never know)

 

$old_send = ini_get('sendmail_from');

ini_set('sendmail_from', "[email protected]");

 

// send email here

 

ini_set('sendmail_from', $old_send);

thanks for the reply....

 

which file do i check the above info in?

 

thanks

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

try it in contact_us.php for instance should be a tep_mail function in there. If that does not work try a straight mail() php call with a test php page. And if that doesnt work it will be something your host should definetely have to resolve as it wont be an osc issue.

Posted
try it in contact_us.php for instance should be a tep_mail function in there. If that does not work try a straight mail() php call with a test php page. And if that doesnt work it will be something your host should definetely have to resolve as it wont be an osc issue.

wait a sec... are yoou saying that if the test doesn't show errors but emails don't arrive then it something for the host/server company to resolve... right?

 

i can use the contact form and does send me mails, but no other emails are going out

 

thanks

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted
I can use the contact form and does send me mails, but no other emails are going out

 

that means the email works check your email admin settings (All 3 places ie: payment modules, email options, configuration)

 

btw worked without modifying the code??

Posted
that means the email works check your email admin settings (All 3 places ie: payment modules, email options, configuration)

 

btw worked without modifying the code??

i haven't modified any code from the forum except one and that didn't help

 

i guess i got to view the files you said i need to look at.. damn!

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

the settings I mentioned are all in the admin panel. The default osc sends mails ok, so its probably the admin settings.

Posted
the settings I mentioned are all in the admin panel. The default osc sends mails ok, so its probably the admin settings.

it isn't working.

 

i have installed a fresh oscommerce on the same server and the same problems happen

 

this is driving me crazy!!

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

can someone pleae show how they have configured the email settings on the admin/config (amdin homepage)

 

mine are as follows:

 

email address: [email protected]

email from: CATALOG <[email protected]>

send extra order emails to: [email protected]

 

thanks...

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

sorry, look below

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

ok, been in contact with the server/hosting company and they are looking in to it but as i have used this on three different servers (yes 3 fresh install of osCommerce on 3 different servers - the only explanation is the ISP)

 

also, contacted the ISP (wanadoo uk) and they said that they HAVE changed their email filter system and that could be doing the damage - they too are looking in to it.

 

QUOTE WANADOO: "We are aware that there has been a change in the the way we monitor outgoing emails with more than 12 recepients. Your mailer may have been included in this tightening up of our service."

 

I have no idea what '12 recipients' it means because the site has 7 registered test users, but they will respond with an update. full credit to a big company like wanadoo responding so soon

 

if anyone has similar problems please contact the ISP as previous comments show that there is a technique that is used by ISP's to blocking emails if they think it is spam

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

thats unfortunate. should had tried the ini_set probably would had worked. See my post here on the 18th. You can place the ini_set calls around the tep_mail function to see if it works.

Posted
thats unfortunate. should had tried the ini_set probably would had worked. See my post here on the 18th. You can place the ini_set calls around the tep_mail function to see if it works.

i'll give it a go now....

 

it works in contact.php so need to do it there....

 

what about admin mail.php? i will tryo to copy and paste the code, does it go in the admin/mail.php file or another?

 

thanks

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

its the catalog\checkout_process.php you want to try it. Find the first tep_mail function that sends the order confirmation to the customer. Then make it like this below. You have to replace the [email protected] with yours.

 

$old_send = ini_get('sendmail_from');
ini_set('sendmail_from', "[email protected]");

// send email here
 tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

ini_set('sendmail_from', $old_send);

Posted
its the catalog\checkout_process.php you want to try it. Find the first tep_mail function that sends the order confirmation to the customer. Then make it like this below. You have to replace the [email protected] with yours.

 

$old_send = ini_get('sendmail_from');
ini_set('sendmail_from', "[email protected]");

// send email here
?tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

ini_set('sendmail_from', $old_send);

that sounds like a great place to start, so if an order was placed at least an instant notification would show up...

 

but it didn't work - thats the problem. it even stopped the contct form working

 

enigma, you made a purchase using a fresh install of oscommerce on a different server AND you are in the US.. i'm in the UK and use wanadoo, even you didn't get any emails did you?

 

i had it with this man, gonna let wanadoo work it for me. will update when i have news

 

thanks for trying enigma, not many people seem interested in helping on this one

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

STILL NO JOY, THIS IS DOING MY NUT IN MAN!!!

 

i read a forum via a search engine peek:

 

it has something to do with A server records (whatever they are)

 

QUOTE: " There were no A records set up for the mail server.

Many sites configure their mail servers to reject mail from hostnames that don't resolve properly, in order to cut down on spam so the headers were being rejected by pop accounts. I put in proper records and VOILA... the emails sent! "

 

W T F does that mean in english? anyone know how to set up a Records on mail server?

 

please advise

 

here's the link to the forum: (please read post 22)

http://findspforums.com/showthread.php?t=7876&page=2&pp=15

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

Can you retry the ini_set functions but this time (the first call) set it with 'userpass' name

 

like this

ini_set('sendmail_from', "[email protected]");

 

just replace your domain.com part only and try it.

Posted
Can you retry the ini_set functions but this time (the first call) set it with 'userpass' name

 

like this

ini_set('sendmail_from', "[email protected]");

 

just replace your domain.com part only and try it.

that is in checkout/process.php again?

 

thanks

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

yes pretty much like you did the last time. But this time this 'userpass' name might go through. There was a post on php.net about it.

Posted
yes pretty much like you did the last time. But this time this 'userpass' name might go through. There was a post on php.net about it.

yes, did that and it didn't work

 

am now contacting the domain registrar to see what the F this 'A records' thing is

 

would you believe i registered withy 3 different ISP's and used them just to see if the emails came through and everytime only the contact.php did but the orders/admin etc etc didn't

 

thanks for helping

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Posted

This is my first experience with php script. Please bear with me as I am explaining how I solve this dilemma that many of us (including me) are experiencing.

I tried many things to test the email (both smtp and sendmail). NONE was working. I even tried all modified scripts from contributors, still didn't work. I almost gave up :( because only free webmail (i.e. gmail and hotmail) can receive emails from osC but not regular ISP.

So, I tried to look the email header sent bu osC. This is what I found.

I found that osC email header has "Return-Path: [email protected]". I guess the "linuz8" is the dist package of Linux that my ISP uses.

Then I realize that this whole "not receiving email" thing is because ISP has blocked emails that has "root" in its return-path. Normail email (sent using any email accout) has Return-Path the same as email sender.

So, I tried the php test mail suggested by many forummers here:

<?

mail("[email protected],", "My Subject", "Line 1\nLine 2\nLine 3");

?>

The email header received at my gmail still shows root in its Return-Path.

Further research at php.net, I found that I could definately change the Return-Path, by adding Retun-Path in its header. The sample script from php.net is below:

<?php

$to = '[email protected]';

$subject = 'the subject';

$message = 'hello';

$headers = 'From: [email protected]' . "\r\n" .

'Reply-To: [email protected]' . "\r\n" .

'X-Mailer: PHP/' . phpversion();

 

mail($to, $subject, $message, $headers);

?>

It URL is http://my.php.net/manual/en/function.mail.php. Look for Example 2.

 

To make story short :rolleyes:

Here is the two files that need edited, of course, email.php, located includes/classes and admin/includes/classes.

 

Open them up and go to the line 473 where it says:

function send($to_name, $to_addr, $from_name, $from_addr, $subject = '', $headers = '') {

 

and insert the Return-Path of your osC email. It will be changed to:

function send($to_name, $to_addr, $from_name, $from_addr, $subject = '', $headers = 'Return-Path: [email protected]') {

 

Make sure you change both files. Save them and try. Make sure the setting in My Store is correct to reflect your store.

 

FINALLY I GOT IT TO WORK! forget_password, registration, and order confirmation, they all work fine. I assume it works for Send Mail in admin as well. Did I mention that I use sendmail. Assuming it work the same for SMTP.

 

Good Luck guys.

Posted
Good Luck guys.

 

still dont work for me.

 

i am using 'sendmail' too but anything from user/admin side to do with hotmail and yahoo doesn't go through

 

i am going bezerk trying to find a solution

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Archived

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

×
×
  • Create New...