Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Email Not Working


Guest

Recommended Posts

Posted

pinch.gifGreetings! I have been working this problem for two days with no luck. I have searched every bit of info concerning email problems to no avail.

My problem is I cannot send any emails, contact us doesn't work, and orders are not received nor are any confirmations sent to buyer.

 

Seems like a simple fix for an expert but I am not him.

 

I'm hosted through Godaddy.com and have called and they say its not their end. It is a Windows server NT.

 

My website is: www.greydogwater.com

 

My email is [email protected]

 

I looked at the two config files and I don't see any directions to any email: catalog/includes:

<?php

define('HTTP_SERVER', 'http://www.greydogwater.com');

define('HTTPS_SERVER', 'http://www.greydogwater.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'www.greydogwater.com');

define('HTTPS_COOKIE_DOMAIN', 'www.greydogwater.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', 'D:/Hosting/6397963/html//');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

define('DB_SERVER', 'justinwernerdb.db.6397963.hostedresource.com');

define('DB_SERVER_USERNAME', 'justinwernerdb');

define('DB_SERVER_PASSWORD', '**********');

define('DB_DATABASE', 'justinwernerdb');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

and in catalog/admin/includes

 

<?php

define('HTTP_SERVER', 'http://www.greydogwater.com');

define('HTTP_CATALOG_SERVER', 'http://www.greydogwater.com');

define('HTTPS_CATALOG_SERVER', 'http://www.greydogwater.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', 'D:/Hosting/6397963/html//');

define('DIR_WS_ADMIN', '/admin/');

define('DIR_FS_ADMIN', 'D:/Hosting/6397963/html//admin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', 'D:/Hosting/6397963/html//');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

define('DB_SERVER', 'justinwernerdb.db.6397963.hostedresource.com');

define('DB_SERVER_USERNAME', 'justinwernerdb');

define('DB_SERVER_PASSWORD', '********');

define('DB_DATABASE', 'justinwernerdb');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

Do I need to add something to email.php?

I have deleted my database and reinstalled OsCommerce twice so I need some help from someone who knows what to do.

Thank you

 

E-Mail Transport Methodsmtpicon_arrow_right.gif E-Mail LinefeedsLFicon_info.gif Use MIME HTML When Sending Emailsfalseicon_info.gif Verify E-Mail Addresses Through DNSfalseicon_info.gif Send E-Mails

 

 

trueicon_info.gif

Posted

Similar issue, here. The only success I've been able to have is with an add-on called PHPMailer. So far I have been able to get the contact_us.php to respond, but no order confirmations or other email functions. There is an another contribution in the add-ons called email_test which had been able to get me started in diagnosing what the problem may be. If you figure things out, please post your information and I will do the same. Thanks!

Posted

I'm sure the solution is out there. I won't stop digging until I find it. Hopefully a superhero will save our day!

Posted

I'm sure the solution is out there. I won't stop digging until I find it. Hopefully a superhero will save our day!

 

Where is a superhero when you need one?

 

I have the same problem and I am also on a GoDaddy Windows Hosting account.

 

What is in your php5.ini file? I have tried tweaking it as well.

 

Please post the answer if you find it.

Posted

Where are you finding your php5.ini file? I have the information to add to it, but it says the file is located on GoDaddy's side which I don't have access to. GoDaddy said I could add one and it would overwrite their settings. I tried this with no change in the results in attempts to get sendmail to work. I am using smtp to receive entries from my contact page only.

 

PHP5.ini

[mail function]

; For Win32 only.

;SMTP = localhost

;smtp_port = 25

 

; For Win32 only.

;sendmail_from = **********@*********.com

 

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").

sendmail_path = "D:\sendmail\sendmail.exe -t"

 

; Force the addition of the specified parameters to be passed as extra parameters

; to the sendmail binary. These parameters will always replace the value of

; the 5th parameter to mail(), even in safe mode.

;mail.force_extra_parameters =

 

and

sendmail.ini

 

[sendmail]

smtp_server=smtp.secureserver.net

smtp_port=25

default_domain=*********.com

error_logfile=error.log

debug_logfile=debug.log

auth_username=**********@*********.com

auth_password=***********

 

when I examine my server info through admin, the sendmail path is empty. I bugged GoDaddy about it to see if that might be whats preventing the sendmail from working. I haven't heard back from them yet about this question. Where is the brilliant Jan or Chris? Can you help us with this one?

Posted

Okay, so the following things are functioning properly: contact_us.php and order confirmation sent to customer which were my major concerns.

 

I would still like to get these working: tell a friend, and email notification to us when a customer has placed an order. but I'm just happy as a clam to have received an order notification.

 

Her is the rundown of my updated settings. It looks weird, because I have both smtp and sendmail under phpmailer. I'm sure some of these should be deleted, not sure which ones and afraid to touch the finally operating emails. But here ya go (using the php5.ini and sendmail.ini in sites root directory):

 

please see attached jpeg screenshot:

godaddysettings.jpg

Posted

Good job Steph.

 

My site has been down since late yesterday. I can't access index, admin, anything. Called StopDaddy and they said the server is down and they are working on it.

Can you believe this sh#$?

 

As soon as its up I'll upload a new php5.ini and let you know if anything works.

Posted

I found this in Catalog/Includes/Functions/General.php

 

 

 

 

 

////

//! Send email (text/html) using MIME

// This is the central mail function. The SMTP Server should be configured

// correct in php.ini

// Parameters:

// $to_name The name of the recipient, e.g. "Jan Wildeboer"

// $to_email_address The eMail address of the recipient,

// e.g. [email protected]

// $email_subject The subject of the eMail

// $email_text The text of the eMail, may contain HTML entities

// $from_email_name The name of the sender, e.g. Shop Administration

// $from_email_adress The eMail address of the sender,

// e.g. [email protected]

 

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'));

 

// 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);

}

 

I can't find php.ini. Where is it?

Posted

So after talking to Godaddy again, they pointed me to their help section and I got this:

 

  • Create your Web form as normal and assign unique names to your form items.NOTE: Keep in mind that our form-mailer script will sort the names of your form items alphabetically when it composes the email message. This is the order of precedence: uppercase letters, lowercase letters, numbers.
     
  • For the form action line, enter /gdform.php. For example:<form action="/gdform.php" method="post">
  • Set the form method to "post."
  • In addition to the fields you create in your form, there are three special fields that you can use: subject, redirect, and email.Subject. Controls the subject line in the form email.
     
    Redirect. Controls the page that your visitors will see after they submit the form.
     
    Email. Controls the return address for the form email.
     
    For example:
     
    <form action="/gdform.php" method="post"> <br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><input type="hidden" name="subject" value="Form Submission" /> <br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><input type="hidden" name="redirect" value="thankyou.html" /><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><p>First Name:<input type="text" name="FirstName" /></p><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><p>Last Name:<input type="text" name="LastName" /></p><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><p>E-Mail:<input type="text" name="email" /></p><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><p>Comments:<textarea name="comments" cols="40" rows="10"><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Type comments here.</textarea></p> <br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><input type="submit" name="submit" value="submit"/><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "></form>
  • Save and upload your file to your hosting account.

Now I put just the sample code in my contact_us.php file under languages/english by itself and got a workable contact us page but it was plain. So now where to include the sample code into the contact_us.php file that comes with opscommerce? I'll let you know. :)

  • 3 weeks later...
Posted

I can't find php.ini. Where is it?

 

You will need to create your own php5.ini file and place it in the root directory of your hosting area. I believe the settings in this file will then be used instead of the ones in the server php.ini file.

 

To see new settings applied after copying up the file, you will need to manually update the application pool.

Archived

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

×
×
  • Create New...