osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

SMTP Email Woes

This is a discussion on SMTP Email Woes within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Allright, I'm running a linux box with Apache, but using SMTP instead of sendmail (not my decision.... don't ask...). So ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-28-2005, 03:26 PM
New Member
 
Join Date: Mar 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kellbot
Default SMTP Email Woes

Allright, I'm running a linux box with Apache, but using SMTP instead of sendmail (not my decision.... don't ask...).

So I've been having trouble getting it to work. I found a file called class.smtp, gets stuck into the includes/classes folder, which is supposed to help with this. Set that up, and ran "example.php" which came with it. This sent a test email to my email address, so I've verified that my server *can* send out emails.

Alas, when I click the button to send out a lost password, it never arrives.

I don't even know how to start debugging this. I edited my php.ini with the correct address for my smtp server, but no luck. Any suggestions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 03-28-2005, 10:32 PM
Member
 
Join Date: Dec 2004
Posts: 53
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
malcol27
Default a couple of things

http://www.oscommerce.com/community/contributions,901/ is the contribution I use to send email via smtp. I made no changes to my php.ini.

Im not sure if your using the Email_test.php file (you didn't say what contribution the example.php and other file came from), but typically if that works, then your getting close. I use the contribution above with smtp.

Make sure you have SMTP set as the mail transport method in admin (must be so or you wouldn't be able to send email with the test file)

The other thing is that you have to install the class.smtp.inc in the /includes directory in both the catalog and the admin.

Also with the instructions for getting authentication to work, I tried a few variations, but eventually what worked was not using any password or username, although your configuration may require them.

Hope this helps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-29-2005, 05:14 AM
New Member
 
Join Date: Mar 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kellbot
Default

Allrighty, so I installed the bit o' script...

The good news is, os commerce now sends an email! I'm not sure why it wasn't working before, because I don't use authentication.... but alas, now it works.

The bad news is, it's sending a blank email when I use the "I forgot my password" button.

Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-29-2005, 06:22 AM
Member
 
Join Date: Dec 2004
Posts: 53
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
malcol27
Default not sure... but

try the i forgot my password from the admin panel and try the same thing using a customer account. If they both don't work, then Im not really sure where to go next.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-29-2005, 05:53 PM
New Member
 
Join Date: Mar 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kellbot
Default

No luck In both instances, the email is sent, with the correct subject, but there is no body.

Looking at the (now modified) email.php...

I see the following lines:
// $send_params['body'] = "$this->output";
is_object($smtp = smtp::connect($params)) AND $smtp->send($send_params);

it looks like the line to send the "body" of the message is commented out?

When I un-comment-out that line, the message doesn't send at all.

The following error is generated in the syslog:
Mar 30 01:46:16 dmz postfix/sendmail[11633]: fatal: config variable inet_interfaces: host not found: newdmz

This is because sendmail is screwed up. Which is of course why I'm using SMTP in the first place! Sendmail is hosed, and the O'Riley book to explain it hasn't arrived from amazon.com yet. When the server was configured, it was called newdmz but now it's just called "dmz" and clearly that never got changed. And I haven't the faintest how to change that.

arrrrrrrrgh. I'm going nuts with this stupid thing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Problem when sending email by SMTP oling osCMax v2 Installation issues 2 04-11-2008 11:25 AM
Getting email (SMTP) notifications working?? oling osCMax v2 Installation issues 1 08-11-2006 01:46 PM
SMTP EMAIL Configuration catalog and admin???? osCMAX RC2 ELCHANCHO osCMax v2 Installation issues 1 11-06-2005 09:14 AM
email content is missing (smtp contrib) hdeng osCommerce 2.2 Modification Help 2 06-13-2004 02:19 PM
Windows SMTP Email artangconsulting osCMax v1.7 Installation 3 02-24-2004 06:03 PM


All times are GMT -8. The time now is 12:10 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax