Jump to content



Photo
* * * * * 1 votes

Email Problem


This topic has been archived. This means that you cannot reply to this topic.
74 replies to this topic

#61   pinkwonderman

pinkwonderman
  • Members
  • 3 posts

Posted 14 January 2008 - 18:08

Hi all,
I run an osC site on a unix envirionment, everything has worked well until recently when I've started having problems with the passwords forgotten function.

I've not been able to find a consolidated check list and was hoping that someone would help me put it together:

My E-Mail Options

Title Value Action
E-Mail Transport Method sendmail
E-Mail Linefeeds LF
Use MIME HTML When Sending Emails false
Verify E-Mail Addresses Through DNS false
Send E-Mails true

Which seemed to check out, so I used a contribution

http://www.oscommerc...arch,test email

it sends 2 emails one using standard php mail and one that used the osC version.
The standard version worked fine (as does email from within the admin site), so it looks like the tep_mail is the issue.

I then saw a suggestion to remove the <storename> part of the Email From section in the my store configuration section.

I got the same results

A contributor Sheridan (post 34) had suggested that the mail is being sent but is being bounced and to add a return path. Whilst it didn't feel like it was my problem it seemed good practice so I replaced :

// Instantiate a new mail object
$message = new email(array('X-Mailer: osCommerce'));

with:

$returnpath="Return-Path: <$from_email_address>";
$replyto="Reply-To: <$from_email_address>";
$mailerreplyreturn = array(1 => 'X-Mailer: osCommerce Mailer', $returnpath, $replyto);

As per his suggestion.

I still get no mail from password forgotten, the admin function still sends mail just fine.


Is there anything I've missed?
and
Is there anyway of resetting customers passwords if they are not able to get the emails?

I think I've reached the point where I'm getting diminishing returns from the forum so any help would be greatly appreciated.
Steve

#62   fuad

fuad
  • Members
  • 15 posts

Posted 12 February 2008 - 00:16

Hi,

My problem is related with the email also. I make some tests with my oscommerce store.
My tests are for six differents domains (Hotmail, Yahoo, Gmail, Intelnett, Rapicompra, Inversionesc)

The results are that in (Yahoo, Gmail & Hotmail)
- The customer dont recieve the welcome e-mail
- The customer dont recieve the order emails
- The customer dont recieve the new password if the forgott it.

The results for RapiCompra and inversionecf:
- The customer recive the welcome email
- The customer recieve the order email
- The customer recieve the new password if they forgoot it.

My email option settings are:
E-Mail Transport Method -smtp
E-Mail Linefeeds - LF
Use MIME HTML When Sending Emails - false
Verify E-Mail Addresses Through DNS - false
Send E-Mails - true

If any person can help me is very important, because my store have more than 3 years and thanks for the oscommerce project we make bussiness.

Kind Regards,

FUAD HAZBOUN
RAPICOMPRA
Peace and Love for all...

#63   bpopelar

bpopelar
  • Members
  • 324 posts

Posted 12 February 2008 - 04:49

Hi,

My problem is related with the email also. I make some tests with my oscommerce store.
My tests are for six differents domains (Hotmail, Yahoo, Gmail, Intelnett, Rapicompra, Inversionesc)

The results are that in (Yahoo, Gmail & Hotmail)
- The customer dont recieve the welcome e-mail
- The customer dont recieve the order emails
- The customer dont recieve the new password if the forgott it.

The results for RapiCompra and inversionecf:
- The customer recive the welcome email
- The customer recieve the order email
- The customer recieve the new password if they forgoot it.

My email option settings are:
E-Mail Transport Method -smtp
E-Mail Linefeeds - LF
Use MIME HTML When Sending Emails - false
Verify E-Mail Addresses Through DNS - false
Send E-Mails - true

If any person can help me is very important, because my store have more than 3 years and thanks for the oscommerce project we make bussiness.

Kind Regards,

FUAD HAZBOUN
RAPICOMPRA


The E-Mail Linefeed parameter must be set to CRLF when the transport method is SMTP. This might or might not explain your problem.

Are you using any email related contributions?

Is your store domain name or hosting company domain one of the domains you listed? An email server can be configured to allow delivery of locally address messages, but reject messages addressed to foreign domains unless SMTP password authentication is utilized (a feature not supported by the baseline osCommerce code, but something that can be added via a contribution).

Have you checked to see if your domain name has been black listed by Yahoo, Gmail or Hotmail?

#64   edmond1815

edmond1815
  • Members
  • 57 posts

Posted 22 February 2008 - 11:04

Hello,

i guess here is the topic for my problem.
I just installed PWA 1.2.5a. Everything works great except email feature.

The costumer received email with order, with welcome email, etc.
The admin dosen't

Can you help me?


Thank you,
Edmond

#65   bpopelar

bpopelar
  • Members
  • 324 posts

Posted 22 February 2008 - 20:14

Hello,

i guess here is the topic for my problem.
I just installed PWA 1.2.5a. Everything works great except email feature.

The costumer received email with order, with welcome email, etc.
The admin dosen't

Can you help me?
Thank you,
Edmond

Sure we can try.

I assume by PWA you are referring to the Purchase Without Account contribution located here. I do not see a version labeled 1.2.5a. What is the date of that version? I've not used the contribution, so I want to look at the same version of code you are using.

Did you just load this contribution? Was the admin receiving email before you added the contribution?

Ben

#66   millsd61

millsd61
  • Members
  • 16 posts

Posted 25 February 2008 - 17:33

Hi all,
I run an osC site on a unix envirionment, everything has worked well until recently when I've started having problems with the passwords forgotten function.

I've not been able to find a consolidated check list and was hoping that someone would help me put it together:

My E-Mail Options

Title Value Action
E-Mail Transport Method sendmail
E-Mail Linefeeds LF
Use MIME HTML When Sending Emails false
Verify E-Mail Addresses Through DNS false
Send E-Mails true

Which seemed to check out, so I used a contribution

http://www.oscommerc...arch,test email

it sends 2 emails one using standard php mail and one that used the osC version.
The standard version worked fine (as does email from within the admin site), so it looks like the tep_mail is the issue.

I then saw a suggestion to remove the <storename> part of the Email From section in the my store configuration section.

I got the same results

A contributor Sheridan (post 34) had suggested that the mail is being sent but is being bounced and to add a return path. Whilst it didn't feel like it was my problem it seemed good practice so I replaced :

// Instantiate a new mail object
$message = new email(array('X-Mailer: osCommerce'));

with:

$returnpath="Return-Path: <$from_email_address>";
$replyto="Reply-To: <$from_email_address>";
$mailerreplyreturn = array(1 => 'X-Mailer: osCommerce Mailer', $returnpath, $replyto);

As per his suggestion.

I still get no mail from password forgotten, the admin function still sends mail just fine.
Is there anything I've missed?
and
Is there anyway of resetting customers passwords if they are not able to get the emails?

I think I've reached the point where I'm getting diminishing returns from the forum so any help would be greatly appreciated.
Steve



I am having problems with email as well......
I have tried sending emails from Admin to an email address within the store domain and they send and receive ok.

But if I try to send to an email address outside the shop domain it fails to arrive.

I have modified the code in both general.php files as follows:

function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) {
if (SEND_EMAILS != 'true') return false;

// Instantiate a new mail object
//$message = new email(array('X-Mailer: osCommerce Mailer'));
// Initiate a new mail object
$returnpath="Return-Path: <$from_email_address>";
$replyto="Reply-To: <$from_email_address>";
$mailerreplyreturn = array(1 => 'X-Mailer: osCommerce Mailer', $returnpath, $replyto);

$message = new email($mailerreplyreturn);


// Build the text version
$text = strip_tags($email_text);
if (EMAIL_USE_HTML == 'true') {
$message->add_html($email_text, $text);
} else {
$message->add_text($text);
}

// Send message
$message->build_message();
$message->send($to_name, $to_email_address, $from_email_name, $from_email_address, $email_subject);
}


Have I got naything wrong?
If not what is the likely cause?

#67   bpopelar

bpopelar
  • Members
  • 324 posts

Posted 25 February 2008 - 20:51

I am having problems with email as well......
I have tried sending emails from Admin to an email address within the store domain and they send and receive ok.

But if I try to send to an email address outside the shop domain it fails to arrive.

I have modified the code in both general.php files as follows:

function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) {
if (SEND_EMAILS != 'true') return false;

// Instantiate a new mail object
//$message = new email(array('X-Mailer: osCommerce Mailer'));
// Initiate a new mail object
$returnpath="Return-Path: <$from_email_address>";
$replyto="Reply-To: <$from_email_address>";
$mailerreplyreturn = array(1 => 'X-Mailer: osCommerce Mailer', $returnpath, $replyto);

$message = new email($mailerreplyreturn);
// Build the text version
$text = strip_tags($email_text);
if (EMAIL_USE_HTML == 'true') {
$message->add_html($email_text, $text);
} else {
$message->add_text($text);
}

// Send message
$message->build_message();
$message->send($to_name, $to_email_address, $from_email_name, $from_email_address, $email_subject);
}
Have I got naything wrong?
If not what is the likely cause?

I take it your modifications to tep_mail did not work.

Your hosting company may have the servers configured to allow email addressed to a foreign address to only originate from authenicated clients. You may need to use the SMTP Password Authenication contribution.

Ben

Edited by bpopelar, 25 February 2008 - 20:53.


#68   edmond1815

edmond1815
  • Members
  • 57 posts

Posted 26 February 2008 - 13:54

Sure we can try.

I assume by PWA you are referring to the Purchase Without Account contribution located here. I do not see a version labeled 1.2.5a. What is the date of that version? I've not used the contribution, so I want to look at the same version of code you are using.

Did you just load this contribution? Was the admin receiving email before you added the contribution?

Ben


Dear Ben,

I solved the problem for me ok. In admin section ai put <email addresss> in send orders, and the the customer email i received a copy myself.
This is ok, because i have a copy, and all the information, address, name, etc.

Now, i have another strange problem....

In create account on PWA, the client must intype, name, address, and TELEPHONE NUMBER>.
That it is ok, but on the email, i don't see any telephone number...
I received all required fields, without telephone number.
I looking in checkout_process.php in my language and ecustomer email come from here. don.t?
define('EMAIL_TEXT_SUBJECT', 'Procesare comanda');
define('EMAIL_TEXT_ORDER_NUMBER', 'Comanda numar:');
define('EMAIL_TEXT_INVOICE_URL', 'Factura detaliata:');
define('EMAIL_TEXT_DATE_ORDERED', 'Data comenzii:');
define('EMAIL_TEXT_PRODUCTS', 'Produse');
define('EMAIL_TEXT_SUBTOTAL', 'Sub-Total:');
define('EMAIL_TEXT_TAX', 'Tax: ');
define('EMAIL_TEXT_SHIPPING', 'Livrare: ');
define('EMAIL_TEXT_TOTAL', 'Total: ');
define('EMAIL_TEXT_DELIVERY_ADDRESS', 'Adresa livrare');
define('EMAIL_TEXT_BILLING_ADDRESS', 'Adresa facturare');
define('EMAIL_TEXT_PAYMENT_METHOD', 'Metoda plata');

define('EMAIL_SEPARATOR', '------------------------------------------------------');
define('TEXT_EMAIL_VIA', 'via');
?>


I try to add a line, like this:

define('EMAIL_TELEPHONE_NUMBER', 'Numar telefon');


But no suucess. In email there is no Teelephone number.
Also, i received via email, all the fields required, without telephone numeber.
In create account.php/guest the fphone numeber field are required, mandatory!!

Please an advice...

I need to call my customers

Thank you,

Edmond

#69   edmond1815

edmond1815
  • Members
  • 57 posts

Posted 26 February 2008 - 15:09

CASE SOLVED!

http://forums.oscomm...hp?t294030.html

This link is very expllicit.

Thank you for your help!!!

#70   ollyno1uk2

ollyno1uk2
  • Members
  • 325 posts

Posted 01 April 2008 - 12:23

Hi

I am having email issues.

To some domains the email gets through fine but more and more people are not receiving signup emails, confirmation emails or password forgotten emails.

If I manually send these emails through my domain it would appear I get no problems although it does sometimes end up in the spam folder.

I have not made any additions the email side of things from OSC 2.2 - I could really do with some help here as people are getting frustrated that they do not receive order confirmations.


I am unsure if there is a way to check if I am on any kind of blacklist?

Many thanks

#71   bpopelar

bpopelar
  • Members
  • 324 posts

Posted 01 April 2008 - 19:56

Google for "email blacklist" without the quotes and you will find a number of services to check your IP address against.

#72   ollyno1uk2

ollyno1uk2
  • Members
  • 325 posts

Posted 02 April 2008 - 13:12

I have now worked out it is not this as I can send an email via outlook express without an issue.

Thanks

#73   mibdata

mibdata
  • Members
  • 2 posts

Posted 10 April 2008 - 13:41

I dont speak english but portuguese. traduct from english.

Esse problema ocorre devido a autenticação SMTP os servidores apartir do ano passado comecaram a exigir autenticação dos emails enviados mesmo online, desta forma vocês terão de instalar um modulo de smtpauth

http://addons.oscomm...arch=email smtp

Escolha um destes e siga o manual para instalação, espero ter ajudado.

Abraço.








################################
MIB Data - Soluções Tecnológicas
www.mibdata.com.br
Desenvolvimento web e webhost

################################

#74   bpopelar

bpopelar
  • Members
  • 324 posts

Posted 10 April 2008 - 19:37

Use the SMTP Authenication contribution found here.

Use o SMTP Authenication contribuição encontrada aqui.

Ben

#75   medinx

medinx
  • Members
  • 1 posts

Posted 19 April 2008 - 10:05

Hi All, Spent a while looking at OSC e-mail problems where no emails are sent at all... mostly associated with windows server. Have tried multiple Contribs with no success including via authenticated smtp. I then found the host which is on a shared hosting pack blocks script generated emails which you would normally be able to overide in php.ini but most shared hosting companies won't give you access to. I have since learned you can overide such ini setting by including the following code within email.php in both .../includes/classes/ and .../admin/includes/classes/

After top comments add the following line of code:

[codebox]ini_set("sendmail_from", "email@yourdomain.com");[/codebox]

change "email@yourdomain.com" to any e-mail address you use on the same domain as your OSC installation.

I hope this helps some of you, i spent along time trying various contribs without trying that easy mod. Apparently most modern servers include this limit to stop spammers and such...

sigh* must be getting too old /sad.gif' class='bbc_emoticon' alt=':(' />