Ver Mensaje Individual
  #14 (permalink)  
Antiguo 14/06/2012, 14:51
Avatar de manyblue
manyblue
 
Fecha de Ingreso: marzo-2008
Mensajes: 329
Antigüedad: 16 años, 1 mes
Puntos: 10
Respuesta: Problema Ubuntu, LAMP, formularios, envios

Bueno en fin, comencemos de cero.

OK entendido que para que la funcion mail() de php envie los correos es necesario un agente que lo haga, existen muchos pero escojo el de toda la vida sendmail, lo tengo instalado junto con phpMailer y hay otros como postfix etc, bueno lo dicho con send mail pero a ver si me ayudais.

Se supone tener apache, php y mysql bajo ubuntu.

Lo primero que hay que hacer despues de instalar send mail es ir al php.ini de nuestro sistema con LAMP Server esta en /etc/php5/apache2/php.ini, ahi nos vamos a la linea que ponga [mail function] , aqui en:

Código:
mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
; sendmail_from = [email protected]

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path =/usr/sbin/sendmail -i -t

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = On

; The path to a log file that will log all mail() calls. Log entries include
; the full path of the script, line number, To address and headers.
;mail.log =
En el php.ini busco la linea:

default_charset = "iso-8859-1"

Ahora pongo /etc/apache2/conf.d/charset lo edito y pongo:

AddDefaultCharset iso-8859-1

guardo todo y reinicio apache

Ahora deben venir las modificaciones de sendmail.cf creo ya miro y seguimos y otra vez corregidme si me equivoco pues este tema debo resolver de alguna manera.

Un saludo


Ayudadme a corregir si me equivoco please..........


Un saludo