Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newsletter emails sending from DNS address....


noxas

Recommended Posts

Hi, i have added the Bulk mail engine (http://www.oscommerce.com/community/contributions,6553) to my shop so i can send news letters without getting kicked off for 'spamming'.

 

It works fine, but when people recieve the emails, they are recieving them from my domains server instead of the email forwarder.

 

eg.

The email should be sent from name@mysite.co.uk

 

But its being sent like this instead: name@srv1.hosting24.com

 

When i send a normal email through the site (tool > send email) it sends fine (probably because you can choose who its from in the 'from' section).

 

Can anyone help with this? thanks!

Link to comment
Share on other sites

Normally the oscommerce use the address which you have specified in oscommerce admin panel. Personally I haven't seen the code for 6553 contribution, which should be developed the same way as oscommerce.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

Normally the oscommerce use the address which you have specified in oscommerce admin panel. Personally I haven't seen the code for 6553 contribution, which should be developed the same way as oscommerce.

 

The Bulk Mail engine uses the standard OSCommerce tep_mail function to send email. It is going to originate email from where the tep_mail function originates email, ie where OSCommerce originates email in the newsletter manager. Look at your shop configuration or the settings on your website for the solution. Here are the two places in the Bulk Mail engine where mail is sent. See epis_bulkmailer.php about lines 78 and 274:

 

echo tep_mail('Test',STORE_OWNER_EMAIL_ADDRESS,$nInfo->title, $newsletter_content, $epis_newsletter, STORE_OWNER,STORE_OWNER_EMAIL_ADDRESS);

 echo tep_mail($firstname,$email,$nInfo->title,$newsletter_content,$epis_newsletter, STORE_OWNER,STORE_OWNER_EMAIL_ADDRESS);

 

Note the

STORE_OWNER_EMAIL_ADDRESS

. That is the OSCommerce parameter that stamps the email with the address it is from. Start by determining in your shop how you have the

STORE_OWNER_EMAIL_ADDRESS

defined.

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

The Bulk Mail engine uses the standard OSCommerce tep_mail function to send email. It is going to originate email from where the tep_mail function originates email, ie where OSCommerce originates email in the newsletter manager. Look at your shop configuration or the settings on your website for the solution. Here are the two places in the Bulk Mail engine where mail is sent. See epis_bulkmailer.php about lines 78 and 274:

 

echo tep_mail('Test',STORE_OWNER_EMAIL_ADDRESS,$nInfo->title, $newsletter_content, $epis_newsletter, STORE_OWNER,STORE_OWNER_EMAIL_ADDRESS);

 echo tep_mail($firstname,$email,$nInfo->title,$newsletter_content,$epis_newsletter, STORE_OWNER,STORE_OWNER_EMAIL_ADDRESS);

 

Note the

STORE_OWNER_EMAIL_ADDRESS

. That is the OSCommerce parameter that stamps the email with the address it is from. Start by determining in your shop how you have the

STORE_OWNER_EMAIL_ADDRESS

defined.

 

Thanks for the reply. Well iv had a look in mysql, and the store_owner_email_address is defined correctly (name@mysite.co.uk) but its still sending the emails from @svr1.hosting24.com. i dont understand it...

Link to comment
Share on other sites

Thanks for the reply. Well iv had a look in mysql, and the store_owner_email_address is defined correctly (name@mysite.co.uk) but its still sending the emails from @svr1.hosting24.com. i dont understand it...

Send an email from your newsletter manager and see where that comes from. The Bulk mail engine should be the same. Also, check with your webhost, they may be able to add something, esp since your emails have your server id on them.

 

PS - one quick check to try is to replace STORE_OWNER_EMAIL_ADDRESS in epis_bulkmailer.php with your email address, then send a bulk mailer test email.

 

echo tep_mail('Test',STORE_OWNER_EMAIL_ADDRESS,$nInfo->title, $newsletter_content, $epis_newsletter, STORE_OWNER, name@mysite.co.uk);

( I can't remember but I'm about 10% sure you may need to enclose name@mysite.co.uk in quotes like so:

 

[

echo tep_mail('Test',STORE_OWNER_EMAIL_ADDRESS,$nInfo->title, $newsletter_content, $epis_newsletter, STORE_OWNER, 'name@mysite.co.uk');

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...