osCommerce France : Accueil Forum Portail osCommerce France Réponses aux questions Foire aux contributions

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> Hosteur.com : Reception et envoi d emails ne marchent pas, Urgent! Aidez moi svp!
schtek2
posté 22 Aug 2006, 19:11
Message #1


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 61
Inscrit : 7-January 06
Membre no 8478



Bonsoir.

Je ne recois pas d email quand on commande.

On ne recoi pas non plus les emails de la boutique...

j ai mi sendmail en reglage

Ensuite email linefeeds (je c pas pkoi c en anglais) c'est sur LF

Mime html true

Send email true

activation des email true.


Comment remedier a ca?

Merci

Ce message a été modifié par schtek2 - 24 Aug 2006, 10:02.
Go to the top of the page
 
Celluloid
posté 22 Aug 2006, 19:15
Message #2


Ceinture bleue OSC
Icône de groupe

Groupe : Membres
Messages : 943
Inscrit : 22-May 06
Membre no 10474



Boule de cristal cassée. STOP. La Pythie répond pas téléphone. STOP. Chien à éventrer court trop vite. STOP. Allons avoir besoin plus détails hébergement. STOP. FIN.



--------------------
ms2fr-051113 + register_globals_v1.4a + BoxImageThemaMS2fr_V2.7 + imagemagic1_5 (+ modifs perso) + fckeditor-oscommerce_v2.2.1 + Products_Short_Descriptions_1_03 + mon dieu tout ce qui reste a installer :/
Go to the top of the page
 
schtek2
posté 22 Aug 2006, 19:18
Message #3


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 61
Inscrit : 7-January 06
Membre no 8478



Heu si j ai bien compris il faut des details sur l hebergement.

Je suis chez hosteur
Go to the top of the page
 
Celluloid
posté 22 Aug 2006, 19:24
Message #4


Ceinture bleue OSC
Icône de groupe

Groupe : Membres
Messages : 943
Inscrit : 22-May 06
Membre no 10474



1) est-ce qu'ils permettent l'envoi de mail en PHP ? En utilisant les fonctions d'envoi de mail classiques ? (mail())
2) est-ce que cela a déjà fonctionné ?
3) est-ce que maintenant cela ne marche pas depuis oscommerce, cela marche depuis un script quelconque d'envoi de mail ?
4) est-ce bien la méthode sendmail que tu es censé utiliser (et non smtp) ?

=> Edite ton premier post et rajoute dans le titre que tu es chez Hosteur, genre
"Hosteur.com : Reception et envoi d emails ne marchent pas "

Ce message a été modifié par Celluloid - 22 Aug 2006, 19:25.


--------------------
ms2fr-051113 + register_globals_v1.4a + BoxImageThemaMS2fr_V2.7 + imagemagic1_5 (+ modifs perso) + fckeditor-oscommerce_v2.2.1 + Products_Short_Descriptions_1_03 + mon dieu tout ce qui reste a installer :/
Go to the top of the page
 
schtek2
posté 22 Aug 2006, 19:28
Message #5


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 61
Inscrit : 7-January 06
Membre no 8478



Cela a toujours marché (je reinstalle ma boutique)

Sauf le formulaire de contact qui ne marchai pas.

Sinon tous les email fonctionnaient avant.
Go to the top of the page
 
schtek2
posté 22 Aug 2006, 20:09
Message #6


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 61
Inscrit : 7-January 06
Membre no 8478



J ai vu que hosteur desactiven la fonction mysql_pconnect. Est-ce que c est pour cela que mes email ne fonctionnent plus??

(mias c'est bizarre car ils proposent l installation d oscommerce en service)
Go to the top of the page
 
schtek2
posté 23 Aug 2006, 10:17
Message #7


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 61
Inscrit : 7-January 06
Membre no 8478



Alors, j ai récupéré un fichier mail.php d un autre site que je me sert pour tester des templates qui marche.

Je l ai mis sur mon site et ca n envoi toujours pas les emails...

J'ai fai un envoi manuel d un mail depuis mon adresse email directement et ca marche.

Moi la je sais plus... j ai regardé le code de mail.php apparament y a pas de mysql_pconnect

Vous ne connaissez pas une contrib email peut etre que la ca marcherai (j ai cherché sur oscommerce.com mais j ai pas trouvé)

Merci de m aider car c'est vraiment tres embettant

Cordialement
Go to the top of the page
 
schtek2
posté 23 Aug 2006, 23:06
Message #8


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 61
Inscrit : 7-January 06
Membre no 8478



Bonsoir

J'ai contacté hosteur leur demandant de verifier leur serveur.

Ils l'ont donc testé et mon dit que le probleme devait venir de mon script.

N'ayant pas suffisament le niveau pour vérifier le code je vous le copie sur ce post pour que vous puissiez voir si il est bon ou pas.

CODE


<?php
/*
  $Id: mail.php,v 1.31 2003/06/20 00:37:51 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

  $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

  if ( ($action == 'send_email_to_user') && isset($HTTP_POST_VARS['customers_email_address']) && !isset($HTTP_POST_VARS['back_x']) ) {
    switch ($HTTP_POST_VARS['customers_email_address']) {
      case '***':
        $mail_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS);
        $mail_sent_to = TEXT_ALL_CUSTOMERS;
        break;
      case '**D':
        $mail_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
        $mail_sent_to = TEXT_NEWSLETTER_CUSTOMERS;
        break;
      default:
        $customers_email_address = tep_db_prepare_input($HTTP_POST_VARS['customers_email_address']);

        $mail_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($customers_email_address) . "'");
        $mail_sent_to = $HTTP_POST_VARS['customers_email_address'];
        break;
    }

    $from = tep_db_prepare_input($HTTP_POST_VARS['from']);
    $subject = tep_db_prepare_input($HTTP_POST_VARS['subject']);
    $message = tep_db_prepare_input($HTTP_POST_VARS['message']);

    //Let's build a message object using the email class
    $mimemessage = new email(array('X-Mailer: osCommerce'));
    // add the message to the object
    $mimemessage->add_text($message);
    $mimemessage->build_message();
    while ($mail = tep_db_fetch_array($mail_query)) {
      $mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', $from, $subject);
    }

    tep_redirect(tep_href_link(FILENAME_MAIL, 'mail_sent_to=' . urlencode($mail_sent_to)));
  }

  if ( ($action == 'preview') && !isset($HTTP_POST_VARS['customers_email_address']) ) {
    $messageStack->add(ERROR_NO_CUSTOMER_SELECTED, 'error');
  }

  if (isset($HTTP_GET_VARS['mail_sent_to'])) {
    $messageStack->add(sprintf(NOTICE_EMAIL_SENT_TO, $HTTP_GET_VARS['mail_sent_to']), 'success');
  }
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
            <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
  if ( ($action == 'preview') && isset($HTTP_POST_VARS['customers_email_address']) ) {
    switch ($HTTP_POST_VARS['customers_email_address']) {
      case '***':
        $mail_sent_to = TEXT_ALL_CUSTOMERS;
        break;
      case '**D':
        $mail_sent_to = TEXT_NEWSLETTER_CUSTOMERS;
        break;
      default:
        $mail_sent_to = $HTTP_POST_VARS['customers_email_address'];
        break;
    }
?>
          <tr><?php echo tep_draw_form('mail', FILENAME_MAIL, 'action=send_email_to_user'); ?>
            <td><table border="0" width="100%" cellpadding="0" cellspacing="2">
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
              <tr>
                <td class="smallText"><b><?php echo TEXT_CUSTOMER; ?></b><br><?php echo $mail_sent_to; ?></td>
              </tr>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
              <tr>
                <td class="smallText"><b><?php echo TEXT_FROM; ?></b><br><?php echo htmlspecialchars(stripslashes($HTTP_POST_VARS['from'])); ?></td>
              </tr>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
              <tr>
                <td class="smallText"><b><?php echo TEXT_SUBJECT; ?></b><br><?php echo htmlspecialchars(stripslashes($HTTP_POST_VARS['subject'])); ?></td>
              </tr>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
              <tr>
                <td class="smallText"><b><?php echo TEXT_MESSAGE; ?></b><br><?php echo nl2br(htmlspecialchars(stripslashes($HTTP_POST_VARS['message']))); ?></td>
              </tr>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
              <tr>
                <td>
<?php
/* Re-Post all POST'ed variables */
    reset($HTTP_POST_VARS);
    while (list($key, $value) = each($HTTP_POST_VARS)) {
      if (!is_array($HTTP_POST_VARS[$key])) {
        echo tep_draw_hidden_field($key, htmlspecialchars(stripslashes($value)));
      }
    }
?>
                <table border="0" width="100%" cellpadding="0" cellspacing="2">
                  <tr>
                    <td><?php echo tep_image_submit('button_back.gif', IMAGE_BACK, 'name="back"'); ?></td>
                    <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_MAIL) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a> ' . tep_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL); ?></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </form></tr>
<?php
  } else {
?>
          <tr><?php echo tep_draw_form('mail', FILENAME_MAIL, 'action=preview'); ?>
            <td><table border="0" cellpadding="0" cellspacing="2">
              <tr>
                <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
<?php
    $customers = array();
    $customers[] = array('id' => '', 'text' => TEXT_SELECT_CUSTOMER);
    $customers[] = array('id' => '***', 'text' => TEXT_ALL_CUSTOMERS);
    $customers[] = array('id' => '**D', 'text' => TEXT_NEWSLETTER_CUSTOMERS);
    $mail_query = tep_db_query("select customers_email_address, customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " order by customers_lastname");
    while($customers_values = tep_db_fetch_array($mail_query)) {
      $customers[] = array('id' => $customers_values['customers_email_address'],
                           'text' => $customers_values['customers_lastname'] . ', ' . $customers_values['customers_firstname'] . ' (' . $customers_values['customers_email_address'] . ')');
    }
?>
              <tr>
                <td class="main"><?php echo TEXT_CUSTOMER; ?></td>
                <td><?php echo tep_draw_pull_down_menu('customers_email_address', $customers, (isset($HTTP_GET_VARS['customer']) ? $HTTP_GET_VARS['customer'] : ''));?></td>
              </tr>
              <tr>
                <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo TEXT_FROM; ?></td>
                <td><?php echo tep_draw_input_field('from', EMAIL_FROM); ?></td>
              </tr>
              <tr>
                <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
              <tr>
                <td class="main"><?php echo TEXT_SUBJECT; ?></td>
                <td><?php echo tep_draw_input_field('subject'); ?></td>
              </tr>
              <tr>
                <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
              <tr>
                <td valign="top" class="main"><?php echo TEXT_MESSAGE; ?></td>
                <td><?php echo tep_draw_textarea_field('message', 'soft', '60', '15'); ?></td>
              </tr>
              <tr>
                <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
              <tr>
                <td colspan="2" align="right"><?php echo tep_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL); ?></td>
              </tr>
            </table></td>
          </form></tr>
<?php
  }
?>
<!-- body_text_eof //-->
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>




Je sais que c'est pas rien ce que je vous demande mais je suis vraiment perdu.

Merci beaucoup
Go to the top of the page
 
schtek2
posté 24 Aug 2006, 10:01
Message #9


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 61
Inscrit : 7-January 06
Membre no 8478



Je trouve ca bizarre, mon menu ou plutot les options de email options sont parfois en double (une fois en francais et une fois en anglais)

Regardez plutot:

E-Mail Transport Method sendmail
Méthode de transport d'email sendmail Info
E-Mail Linefeeds LF Info
Use MIME HTML When Sending E-Mails true Info
Utiliser MIME HTML pour l'envoi des emails true Info
Verfiy E-Mail Addresses Through DNS false Info
Vérifier l'adresse email par le DNS false Info
Send E-Mails true Info
Saut de ligne en-tête des emails LF Info
Activation des emails true Info


Editer


Defines if this server uses a local connection to sendmail or uses an SMTP connection via TCP/IP. Servers running ong Windows or MacOS should change this setting to SMTP.

Aidez moi svp!

Go to the top of the page
 

Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



RSS Version bas débit Nous sommes le : 18th June 2013 - 22:25
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)