Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

From: address where emails are sent


Gisele

Recommended Posts

Posted

When an email is sent (Tools/Send email) the From: line in the email is the hostname of the actual server, not the domain name that is hosting OSC. Problem with this is if someone replies to the email, the shopping card owner will never get the email.

 

I think there is an option called mailfrom where you can set the return path for an email, but can anyone confirm this before I start changing admin/mail.php

 

Thanks,

 

Gisele

Posted

no, that's not what I mean... when the mail server sends the email, it has the host address of the server, not the address of the store owner.

Posted

I think you are asking one of the questions I was just about to ask.

 

If I go to admin and send an email to a customer, the customer gets the email as if it came from some other server.

 

I have an email account on prodigy.net, and so I tested an email to myself as a customer. The email comes addressed as:

 

[email protected]

 

I don't know what that means.

 

HankFrid

If I build it...they will come.

If I don't try to build it.....I will never know!

  • 4 weeks later...
Posted

I'm not totally sure about this, but I think what's happening guys is that your php.ini file has an smtp server name, this gets wrapped in the mail "envelope" and becomes the "REPLY TO" address on some mail systems.

 

I am actually trying to figure a way to keep this from happening, but no luck so far...

I will make a post if I ever get it figured out. :?

 

BTW: I actually thought this was just a windoze problem, but it may be a problem with certain configurations of *Nix servers as well.

 

Regards,

Obewanz

The GraphicZoo

check profile for web address

  • 4 weeks later...
Posted

Did anyone get anywhere with this.

 

I am in a unix server that is running qmail, and the problem i have is that the return-path is unset ( ie cant find anywhere to set it in osc) so any bounced e-mail is sent to my webhost, not me

 

Any ideas?

Last month, i only knew how to spell PHP, this month i have mastered the art of swearing in php!

Posted

If you want the Return-Path to be set to something in all emails, you would add it to the header array in tep_mail in includes/functions/general.php. The current code looks like this:

    $message = new email(array('X-Mailer: osCommerce Mailer'));

You would just need to change it to

    $message = new email(array('X-Mailer: osCommerce Mailer', 'Return-Path: whatever'));

Good luck,

Matt

 

P.S. Some people may be able to fix their problems by using an external mail server with the smtp auth contribution. The external mail server will need to be set up such that it will not rewrite the From header that osCommerce uses.

Posted

thanks - that worked a treat!

Last month, i only knew how to spell PHP, this month i have mastered the art of swearing in php!

Posted
no, that's not what I mean... when the mail server sends the email, it has the host address of the server, not the address of the store owner.
I found out that the from address in MS Windows is set in php.ini. If you can customize php.ini settings for your site (check the register_globals solution in .htaccess for an example), you can change to
sendmail_from = [email protected]

Hth,

Matt

 

P.S. In unix, the problem is more likely to come in your sendmail (or whatever MTA you use) configuration. Some MTAs will rewrite the From address to one that it can use to send.

Archived

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

×
×
  • Create New...