Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. carlostefano
    3. Post
    C

    carlostefano

    @carlostefano

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 2
    • Post 2
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    0
    Reputazione
    2
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User Newbie

    Post creati da carlostefano

    • Trasferimento di dominio in scadenza

      Ciao!

      ho un dominio registrato precedentemente su Aruba di cui sto effettuando il trasferimento. Ho già stipulato il contratto con un altro provider, ottenuto l'auth code e sbloccato il dominio da Aruba. Inoltre ho immesso il suddetto codice nella pagina iviatami dall'authority transfer. Adesso sono nella fase di attesa (2-5 giorni) prima che avvenga l'effettivo trasferimento. C'è solo un problema. Che il contratto con Aruba scade oggi. Mi consigliate di pagare quest'ultimo ugualmente per evitare problemi oppure non è necessario?

      Grazie,

      carlostefano

      postato in Consulenza Legale e Professioni Web
      C
      carlostefano
    • Inviare mail con 2 allegati

      Ciao,
      utilizzo il seguente metodo per l'invio di una mail con allegato:

      [PHP] protected function sendAttachments(){
      $obj_dump = new dbdump;
      $obj_dump->doDump();
      $res_attachment = $obj_dump->str_filepath;
      $str_filez = fopen($res_attachment, "r");
      $str_contents = fread($str_filez, filesize($res_attachment));
      $encoded_attach = chunk_split(base64_encode($str_contents));
      fclose($str_filez);
      $str_attach_name = 'dump.sql';
      $str_object = 'Files';
      $str_head = 'From: SECURITY' . STR_DOMAIN_MAIL . "\n";
      $str_head.= 'Reply-To: NOREPLY' . STR_DOMAIN_MAIL . "\n";
      $str_head.= 'X-Mailer:' . STR_MAIL_CLIENT . "\n";
      $str_head.= "MIME-version: 1.0\n";
      $str_head.= "Content-type: multipart/mixed;\n";
      $str_head.= " boundary="Message-Boundary"\n";
      $str_head.= "Content-transfer-encoding: 7BIT\n";
      $str_head.= "X-attachments: $str_attach_name";
      $str_body = "--Message-Boundary\n";
      $str_body.= "Content-type: text/html; charset=iso-8859-1\n";
      $str_body.= "Content-transfer-encoding: 7BIT\n";
      $str_body.= "Content-description: Mail message body\n\n";
      $str_body.= "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">";
      $str_body.= "<HTML><HEAD>";
      $str_body.= "<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">";
      $str_body.= "</HEAD>";
      $str_body.= "<BODY>";
      $str_body.= LANG_NOREPLY_MAIL . "\n <br />";
      $str_body.= LANG_MSGMAIL_FILES . "\n <br />";
      $str_body.= "</BODY></HTML>";
      $str_body.= "\n\n--Message-Boundary\n";
      $str_body.= "Content-type: text/plain; name="$str_attach_name"\n";
      $str_body.= "Content-Transfer-Encoding: BASE64\n";
      $str_body.= "Content-disposition: attachment; filename="$str_attach_name"\n\n";
      $str_body.= "$encoded_attach\n";
      $str_body.= "--Message-Boundary--\n";
      if(mail(STR_TECHNICAL_MAIL, $str_object, $str_body, $str_head))
      return true;
      else
      return false;
      }[/PHP]

      Vorrei però modificarlo in modo da poter mandare 2 allegati. Come si può fare?

      Saluti,

      carlostefano

      postato in Coding
      C
      carlostefano