Visualizzazione dei risultati da 1 a 7 su 7

Discussione: Newsletter

  1. #1

    Newsletter

    Ho un problema con una newsletter.

    Le email inviate, se sono ricevute tramite outlook si vedono complete, invece sul web no, si vedono solo le prime 3 righe, come mai???

  2. #2
    credo che senza una riga di codice non ti si possa aiutare tanto

  3. #3
    sorry,

    si tratta dello script PHP_Multiple_Newsletters_v2.7, questo è il pezzo di codice della composizione e invio email:

    Codice PHP:


                        
    IF (mysql_num_rows($result) > '0')
                            {

        
    // SEND THE EMAIL VIA SOCKETS

                            
    include ('../class/class.phpmailer.php');
                            
    $mail = new phpmailer();
                            
    $mail -> SMTPKeepAlive 'true';
                            
    $mail->IsSMTP();
                            
    $mail->Host $sockethost;

                            IF (
    $smtpauth == 'TRUE')
                                {
                                
    $mail -> SMTPAuth 'true';
                                
    $mail -> Username $smtpauthuser;
                                
    $mail -> Password $smtpauthpass;
                                }

                            
    $mail->From $socketfrom;
                            
    $mail->FromName $socketfromname;
                            
    $mail->AddReplyTo($socketfrom$socketfromname);
                            
    $mail -> Subject $_POST['subject'];

                            WHILE (
    $row = @mysql_fetch_array($result))
                                {
                                
    extract($row);

                                
    $final_tip $trackingurl.'caseid=trackit&archive_id='.$archive_id.'&members_email='.$members_email.'&newsid='.$_GET['newsid'];

                                IF (
    $members_mailpref == 'html')
                                    {
                                    
    $body = (ereg_replace('MEMBERNAMEHERE'stripslashes($members_name), stripslashes($newsletter_htmlemail)));
                                    
    $body = (ereg_replace('NEWSLETTERBODY'nl2br(stripslashes($_POST['newslettertexthtml'])), stripslashes($body)));

                                    
    $mail -> IsHTML(true);
                                    }
                                    ELSE
                                        {
                                        
    $body = (ereg_replace('MEMBERNAMEHERE'stripslashes($members_name), stripslashes($newsletter_plainemail)));
                                        
    $body = (ereg_replace('NEWSLETTERBODY'stripslashes($_POST['newslettertextplain']), stripslashes($body)));

                                        
    $mail -> IsHTML(false);
                                        }

                                
    $body = (ereg_replace('NEWSLETTERTITLEHERE'stripslashes($newsletter_title), stripslashes($body)));
                                
    $body = (ereg_replace('NEWSLETTERDESCRIPTIONHERE'stripslashes($newsletter_description), stripslashes($body)));
                                
    $body = (ereg_replace('MEMBEREMAILHERE'stripslashes($members_email), stripslashes($body)));
                                
    $body = (ereg_replace('MEMBERIP'stripslashes($members_ip), stripslashes($body)));
                                
    $body = (ereg_replace('MEMBERDATE'stripslashes($date), stripslashes($body)));
                                
    $body = (ereg_replace('SITENAMEHERE'stripslashes($sitename), stripslashes($body)));
                                
    $body = (ereg_replace('SITEURLHERE'stripslashes($siteurl), stripslashes($body)));
                                
    $body = (ereg_replace('TRACKINGURL'nl2br(stripslashes($final_tip)), stripslashes($body)));

                                
    $mail -> Body $body;
                                
    $mail -> AddAddress($members_email$members_name);

                                IF(!
    $mail->Send())
                                    
    $msg 'ERROR: Mail not sent to '.$members_email;
                                
                                
    $mail -> ClearAddresses();

                                
    $mail -> SmtpClose();
                            } 

  4. #4
    potresti postare anche un messaggio (codice compelto di headers) che non ti viene visualizzato correttamente?

  5. #5
    non so come si prendano gli header da hotmail...

    Questo è l'header dell'email scaricata con outlook:

    Date: Fri, 2 Jun 2006 13:06:10 +0200
    To: carlo <email@email.it>
    From: staff <info@staff.com>
    Reply-to: staff <info@staff.com>
    Subject: prova
    Message-ID: <7d80bfa35e81738078d5302f67133bef@www.sito.com>
    X-Priority: 3
    X-Mailer: PHPMailer [version 1.71]
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/html; charset="iso-8859-1"
    X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
    X-AntiAbuse: Primary Hostname - horus.dnshighspeed.com
    X-AntiAbuse: Original Domain - libero.it
    X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12]
    X-AntiAbuse: Sender Address Domain - sito.com
    X-Source:
    X-Source-Args:
    X-Source-Dir:


    Ho appena notato che se inoltro l'email che non si vede bene, viene vista completa quando è riportata.

    come mai questa stranezza??????

  6. #6

  7. #7
    sono 3 giorni ormai che non faccio altro che provare e riprovare ma non capisco il perchè di qeusta cosa.

    Acuni la vedo intera, altri no...come mai?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.