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

    [Php][Smtp] Errore autenticazione su server remoto

    Ho la necessità di utilizzare il servizio SMTP su un server remoto.

    Ho messo nel file php.ini

    [mail function]
    ; For Win32 only.
    SMTP = <nome del server smtp>;
    smtp_port = 25

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


    Riavviato apache

    Provato il semplice script:
    <?
    if(mail("cippo@yahoo.com","oggetto","testoblabla") ){
    echo "E-Mail inviata con successo";
    }
    ?>

    e mi da questo errore :
    "Warning: mail() [function.mail.html]: SMTP server response: 507 Authentication required in ...."


    mentre se faccio

    <?
    $smtpauth = 'TRUE'; // SET THIS TO TRUE IF YOUR SMTP SERVER REQUIRES AUTHENTICATION
    $smtpauthuser = 'XXX'; // SMTP USERNAME - USUALLY THE SAME AS YOUR MAILBOX
    $smtpauthpass = 'yyy'; // SMTP PASSWORD - USUALLY THE SAME AS YOUR MAILBOX


    if(mail("ciao@yahoo.it","oggetto","testoblabla")){
    echo "E-Mail inviata con successo";
    }
    ?>

    mi da questo errore :
    "Warning: mail() [function.mail.html]: SMTP server response: 530 Authentication required in ...."


    Credo il problema sia l'autenticazione da settare per appoggiarmi a questo server esterno SMTP.....

    Ma come devo fare a configurare l'utente e la password.??????


  2. #2
    serve l'autenticazione

    prova ad usare la classe phpmailer se non sbaglio la prevede

  3. #3

  4. #4
    grazie....

    l'ho fatto e funziona tutta.....


    Grazie infinite

  5. #5

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 © 2024 vBulletin Solutions, Inc. All rights reserved.