Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP]Pomocy smtp skryptu
Forum PHP.pl > Forum > Przedszkole
damain1960
Problem mam skrypt i nie umiem go skonfigurować (dotyczy smtp) pomoże ktoś oto skrypt:
PS. mam gmaila

  1. <?php
  2. return [
  3.  
  4. /**
  5.   * Email configuration.
  6.   *
  7.   * By defining transports separately from delivery profiles you can easily
  8.   * re-use transport configuration across multiple profiles.
  9.   *
  10.   * You can specify multiple configurations for production, development and
  11.   * testing.
  12.   *
  13.   * Each transport needs a `className`. Valid options are as follows:
  14.   *
  15.   * Mail - Send using PHP mail function
  16.   * Smtp - Send using SMTP
  17.   * Debug - Do not send the email, just return the result
  18.   *
  19.   * You can add custom transports (or override existing transports) by adding the
  20.   * appropriate file to src/Mailer/Transport. Transports should be named
  21.   * 'YourTransport.php', where 'Your' is the name of the transport.
  22.   */
  23. 'EmailTransport' => [
  24. 'default' => [
  25. 'className' => 'Mail',
  26. // The following keys are used in SMTP transports
  27. 'host' => 'localhost',
  28. 'port' => 25,
  29. 'timeout' => 30,
  30. 'username' => 'user',
  31. 'password' => 'secret',
  32. 'client' => null,
  33. 'tls' => null,
  34. 'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
  35. ],
  36. ],
  37. /**
  38.   * Email delivery profiles
  39.   *
  40.   * Delivery profiles allow you to predefine various properties about email
  41.   * messages from your application and give the settings a name. This saves
  42.   * duplication across your application and makes maintenance and development
  43.   * easier. Each profile accepts a number of keys. See `Cake\Mailer\Email`
  44.   * for more information.
  45.   */
  46. 'Email' => [
  47. 'default' => [
  48. 'transport' => 'default',
  49. 'from' => 'you@localhost',
  50. //'charset' => 'utf-8',
  51. //'headerCharset' => 'utf-8',
  52. ],
  53. ],
  54. ];
nospor
czemu uwazasz ze znamy hosta user i haslo twojego smtp?
damain1960
oczekuję że ktoś mi powie gdzie co mam wpisać
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.