CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

PHP :SMTP

lecjohsk8
lecjohsk8
Niveau 5
28 mai 2014 à 08:51:59

Bonjour, j'ai un problème avec mon code PHP qui permet de renvoyer des informations d'un formulaire sur une boite mail; Voici ce qu'il maffiche :

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

Que dois je faire ?
Merci d'avance

LECROU
LECROU
Niveau 10
28 mai 2014 à 15:06:54

Tu dois configurer le fichier php.ini si tu y as accès pour y rentrer les informations de ton serveur SMTP servant à envoyer des mails.
Si tu es en local (genre sous Wamp), il te faut un petit programme qui fait office de serveur mail genre sendmail.

Voilà voilà :)

lecjohsk8
lecjohsk8
Niveau 5
30 mai 2014 à 08:29:17

Bonjour, merci du conseil mais voici mon php.ini :

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = " adresse mail "
; http://php.net/smtp-port
smtp_port = ""

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = " adresse mail "
sendmail_from = " adresse mail "

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

; 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 =

Sous forums
  • Aide à l'achat Mac
  • Macintosh
  • Création de Jeux
  • Programmation
  • Création de sites web
  • Linux
  • Internet
  • Steam Deck
  • Hardware
La vidéo du moment