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

    [PHP] - niente invio mail locale

    Ciao ragazzi,
    non riesco ad inviare le e-mail in locale. Ho win2000 con apache 2.0.54 e php 4.4.0. Il file php.ini è così configurato:

    [mail function]
    ; For Win32 only.
    SMTP = localhost
    smtp_port = 25
    sendmail_from = me@localhost.com

    ; For Win32 only.
    ;sendmail_from = me@localhost.com

    ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
    ;sendmail_path =

    Cosa devo fare?

  2. #2
    devi sostituire a localhost un server esterno SMTP valido, ad esempio quello del provider con il quale ti colleghi ad Internet

    codice:
    [mail function]
    ; For Win32 only.
    SMTP = localhost
    smtp_port = 25
    sendmail_from = me@localhost.com
    
    ; For Win32 only.
    ;sendmail_from = me@localhost.com
    
    ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
    ;sendmail_path =

  3. #3
    Niente!! Mi dà questo warning:

    Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

  4. #4
    Adesso ho provato a riavviare il server e fare un aggiorna e mi dà questo warning:

    SMTP server response: 550 <email@email.it>, Recipient unknown

    L'indirizzo email@email.it l'ho messo io qui per privacy, ma sarebbe il mio.

  5. #5
    Utente bannato
    Registrato dal
    Sep 2005
    Messaggi
    905
    ma scusa tanto intelligenti, non sapete che se installate un server in locale non viene anche installato anche un server SMTP? dovete connettervi ad un server che non sia il vostro, per esempio avete un server anche in remoto e quindi mettete vostroserver.com, però dovrete essere connessi ad internet. Il server localhost non esiste.

  6. #6
    Guarda che prima che passassi ad apache, usavo IIS e con localhost mi utilizzava quello mio.

  7. #7
    Utente bannato
    Registrato dal
    Sep 2005
    Messaggi
    905
    allora apache quando lo installi da subito non ha un server smtp, sul sito ufficiale dovresti vedere le istruzioni per installare un server smtp sul tuo

  8. #8
    Non trovo nulla e non ho idea di dove mettere le mani.

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.