Foros del Web » Programando para Internet » PHP »

Primeros Pasos con PhpMailer

Estas en el tema de Primeros Pasos con PhpMailer en el foro de PHP en Foros del Web. Pues eso.. de tanto que se habla en el foro a la hora de preguntar todo sober formularios de envio y sobre todo lo de ...
  #1 (permalink)  
Antiguo 06/11/2005, 21:37
 
Fecha de Ingreso: mayo-2005
Mensajes: 148
Antigüedad: 18 años, 11 meses
Puntos: 0
Primeros Pasos con PhpMailer

Pues eso.. de tanto que se habla en el foro a la hora de preguntar todo sober formularios de envio y sobre todo lo de ENVIOS DE ARCHIVOS ADJUNTOS.
Bien ya me he descargado su ultima version.

He subido la carpeta "phpmailer" y su contenido claro al server.

Ahora.. como sigue esto?? es decir, donde da una explicacion sobre ejemplo.. como hacer un form de archivos adjuntos?? y ese rollo?

Yo de momento lo que hice fue.. examinar el archivo "class.phpmailer.php"

PUBLIC VARIABLES
Código PHP:
/**
     * Email priority (1 = High, 3 = Normal, 5 = low).
     * @var int
     */
    
var $Priority          3;

    
/**
     * Sets the CharSet of the message.
     * @var string
     */
    
var $CharSet           "iso-8859-1";

    
/**
     * Sets the Content-type of the message.
     * @var string
     */
    
var $ContentType        "text/plain";

    
/**
     * Sets the Encoding of the message. Options for this are "8bit",
     * "7bit", "binary", "base64", and "quoted-printable".
     * @var string
     */
    
var $Encoding          "8bit";

    
/**
     * Holds the most recent mailer error message.
     * @var string
     */
    
var $ErrorInfo         "";

    
/**
     * Sets the From email address for the message.
     * @var string
     */
    
var $From               "[email protected]";

    
/**
     * Sets the From name of the message.
     * @var string
     */
    
var $FromName           "Nmbre cualquiera";

    
/**
     * Sets the Sender email (Return-Path) of the message.  If not empty,
     * will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.
     * @var string
     */
    
var $Sender            "";

    
/**
     * Sets the Subject of the message.
     * @var string
     */
    
var $Subject           "Asunto cualquiera";

    
/**
     * Sets the Body of the message.  This can be either an HTML or text body.
     * If HTML then run IsHTML(true).
     * @var string
     */
    
var $Body               "";

    
/**
     * Sets the text-only body of the message.  This automatically sets the
     * email to multipart/alternative.  This body can be read by mail
     * clients that do not have HTML email capability such as mutt. Clients
     * that can read HTML will view the normal Body.
     * @var string
     */
    
var $AltBody           "";

    
/**
     * Sets word wrapping on the body of the message to a given number of 
     * characters.
     * @var int
     */
    
var $WordWrap          0;

    
/**
     * Method to send mail: ("mail", "sendmail", or "smtp").
     * @var string
     */
    
var $Mailer            "smtp"//elegi smtp

    /**
     * Sets the path of the sendmail program.
     * @var string
     */
    
var $Sendmail          "/usr/sbin/sendmail"/*aca exactamente que se pone?*/
    
/*Luego lo demas lo deje como estaba por defecto*/ 
Luego la parte de SMTP VARIABLES

Código PHP:
/**
     *  Sets the SMTP hosts.  All hosts must be separated by a
     *  semicolon.  You can also specify a different port
     *  for each host by using this format: [hostname:port]
     *  (e.g. "smtp1.example.com:25;smtp2.example.com").
     *  Hosts will be tried in order.
     *  @var string
     */
    
var $Host        "localhost";

    
/**
     *  Sets the default SMTP server port.
     *  @var int
     */
    
var $Port        25;

    
/**
     *  Sets the SMTP HELO of the message (Default is $Hostname).
     *  @var string
     */
    
var $Helo        "";

    
/**
     *  Sets SMTP authentication. Utilizes the Username and Password variables.
     *  @var bool
     */
    
var $SMTPAuth     false;

    
/**
     *  Sets SMTP username.
     *  @var string
     */
    
var $Username     "[email protected]";

    
/**
     *  Sets SMTP password.
     *  @var string
     */
    
var $Password     "mipassword";

    
/**
     *  Lo demas, lo deje por defecto. 
Todo lo demas que no muestro, lo deje por defecto. Como sigue esto??
__________________
(8)Esta es la numero uno, que te sigue a todas partes,
siempre con sus estandartes,
y un grito de corazon, RACING CAMPEON
RACING CAMPEON, en el este y el oeste,
en el norte y en el sur, brillara blanca y celeste la academia RACING CLUB y la acade, y la acade... (8)
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 04:36.