Results 1 to 5 of 5

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 ...

      
  1. #1
    New Member
    Join Date
    Mar 2005
    Posts
    11
    Rep Power
    0


    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?

  2. #2
    Member
    Join Date
    Dec 2004
    Posts
    59
    Rep Power
    8


    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

  3. #3
    New Member
    Join Date
    Mar 2005
    Posts
    11
    Rep Power
    0


    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?

  4. #4
    Member
    Join Date
    Dec 2004
    Posts
    59
    Rep Power
    8


    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.

  5. #5
    New Member
    Join Date
    Mar 2005
    Posts
    11
    Rep Power
    0


    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.

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •