Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    mandare email con phpmailer

    Sto provando ad usare phpmailer una classe per mandare email... ma non riesco a configurare l'invio delle email.

    Ecco il codice (preso da un esempio):


    codice:
     
    
    require("class.phpmailer.php");
    
    $mail = new PHPMailer();
    
    $mail->From     = "info@ipsoftware.it";
    $mail->FromName = "IP-Software Staff";
    $mail->Host     = "";
    $mail->Mailer   = "";
    
        // HTML body
        $body  = "<font size=\"4\">Salve</font>, 
    
    ";
        $body .= "Your personal photograph to this message.
    
    ";
        $body .= "Sincerely, 
    ";
        $body .= "PHPMailer List manager";
    
        // Plain text body (for mail clients that cannot read HTML)
        $text_body  = "Salve, \n\n";
        $text_body .= "Your personal photograph to this message.\n\n";
        $text_body .= "Sincerely, \n";
        $text_body .= "PHPMailer List manager";
    
        $mail->Body    = $body;
        $mail->AltBody = $text_body;
        $mail->Subject = "Mail di Prova";
        $mail->AddAddress("insaponata@libero.it", "Andrea A.");
        //$mail->AddStringAttachment($row["photo"], "YourPhoto.jpg");
    
        if(!$mail->Send())
            echo "There has been a mail error sending to insaponata@libero.it
    ";
        else
          echo "Mail inviata.
    ";
        
        // Clear all addresses and attachments for next loop
        $mail->ClearAddresses();
        $mail->ClearAttachments();
    ma nel campo Host e Mailer cosa ci devo mettere? Il server dove sta il mio sito www.ipsoftware.it??

  2. #2
    nessuno ha mai usato phpmailer?

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.