[eluser]dalakhani[/eluser]
Bonjour,
Je suis français et sur le site que j'essaie de créer j'aimerais que les membres reçoivent un message de confirmation pour leur inscription.
Malheureusement cela ne fonctionne pas, j'ai cru comprendre qu'il fallait modifier le fichier CodeIgniterCore/libraries/Email.php mais je ne sais pas quelles lignes.
Hello,
I am French and on the site tries to create would like to members receive a confirmation message to their registration.
Unfortunately this does not work, I understand it was necessary to change the file CodeIgniterCore/libraries/Email.php but I don't know what lines.
Voici ce que j'ai rentré:
Here's what I have walked
Code:
var $useragent = "CodeIgniter";
var $mailpath = "/usr/sbin/sendmail"; // Sendmail path
var $protocol = "smtp"; // mail/sendmail/smtp
var $smtp_host = "mail.servername.sn"; // SMTP Server.
var $smtp_user = "username"; // SMTP Username
var $smtp_pass = "password"; // SMTP Password
var $smtp_port = "587"; // SMTP Port
var $smtp_timeout = 5; // SMTP Timeout in seconds
var $wordwrap = TRUE; // TRUE/FALSE Turns word-wrap on/off
var $wrapchars = "76"; // Number of characters to wrap at.
var $mailtype = "text"; // text/html Defines email formatting
var $charset = "utf-8"; // Default char set: iso-8859-1 or us-ascii
var $multipart = "mixed"; // "mixed" (in the body) or "related" (separate)
var $alt_message = ''; // Alternative message for HTML emails
var $validate = FALSE; // TRUE/FALSE. Enables email validation
var $crlf = "\n"; // The RFC 2045 compliant CRLF for quoted-printable is "\r\n". Apparently some servers,
// even on the receiving end think they need to muck with CRLFs, so using "\n", while
// distasteful, is the only thing that seems to work for all environments.
var $bcc_batch_mode = FALSE; // TRUE/FALSE Turns on/off Bcc batch feature
var $bcc_batch_size = 200; // If bcc_batch_mode = TRUE, sets max number of Bccs in each batch
var $_subject = "";
var $_body = "";
var $_finalbody = "";
var $_alt_boundary = "";
var $_atc_boundary = "";
var $_header_str = "";
var $_smtp_connect = "";
var $_encoding = "8bit";
var $_safe_mode = FALSE;
var $_IP = FALSE;
var $_smtp_auth = FALSE;
var $_replyto_flag = FALSE;
...
j'ai modifié le smtp port car mon hébergeur bloque le port 25.
Malgré ces modifications j'ai ces erreurs au moment de "l'appel" de Email.php
I changed the smtp port because my hosting provider blocks port 25.
Despite these changes I have these errors when "appeal" of Email.php
Code:
A PHP Error was encountered
Severity: Warning
Message: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known
Filename: libraries/Email.php
Line Number: 1451
Severity: Warning
Message: fsockopen() [function.fsockopen]: unable to connect to [b]mail.servername.sn :25 [/b](php_network_getaddresses: getaddrinfo failed: Name or service not known)
Filename: libraries/Email.php
Line Number: 1451
Severity: Warning
Message: fwrite(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1590
Severity: Warning
Message: fgets(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1611
Severity: Warning
Message: fwrite(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1590
Severity: Warning
Message: fgets(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1611
Severity: Warning
Message: fwrite(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1590
Severity: Warning
Message: fgets(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1611
Severity: Warning
Message: fwrite(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1590
Severity: Warning
Message: fgets(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1611
Severity: Warning
Message: fwrite(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1590
Severity: Warning
Message: fwrite(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1590
Severity: Warning
Message: fgets(): supplied argument is not a valid stream resource
Filename: libraries/Email.php
Line Number: 1611
Déjà je ne comprends pas pourquoi il y a une erreur avec le port 25 puisque je l'ai modifié
Pouvez-vous m'aider à résoudre ce problème? et me dire quelles lignes du fichier initial dois-je modifier pour que cela fonctionne?
D'avance merci
Already I do not understand why there is an error with port 25 as I modified
Can you help me solve this problem and tell me what lines of the original file do I change this to work?
Advance thanks