Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> (rozwiązany) [PHP] swift_mailer. symfony. Nie wysyła maili chociaż get('mailer')->send zwraca '1'
porzeczki
post
Post #1





Grupa: Zarejestrowani
Postów: 144
Pomógł: 0
Dołączył: 15.09.2016
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


  1. //parameters.yml
  2. parameters:
  3. mailer_transport: gmail
  4. mailer_host: null
  5. mailer_user: ##
  6. mailer_password: ##
  7.  
  8. //config.yml
  9. swiftmailer:
  10. transport: gmail
  11. host: null
  12. username: ##
  13. password: ##
  14. spool: { type: memory } //bez tego też nie wysyła.
  15.  
  16. //controller
  17. $message = \Swift_Message::newInstance()
  18. ->setSubject('foo')
  19. ->setFrom('foo')
  20. ->setTo(foo)
  21. ->setBody(foo),'text/html')
  22. ;
  23. $wyslal = $this->get('mailer')->send($message);

w debugerze $wyslal == 1

Ten post edytował porzeczki 15.10.2016, 20:33:16
Go to the top of the page
+Quote Post
kpt_lucek
post
Post #2





Grupa: Zarejestrowani
Postów: 428
Pomógł: 77
Dołączył: 10.07.2011
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Pewnie dlatego, że w SF masz spool dla maili
1wszy link w google


--------------------


Cytat
There is a Bundle for that
Lukas Kahwe Smith - October 31th, 2014
Go to the top of the page
+Quote Post
porzeczki
post
Post #3





Grupa: Zarejestrowani
Postów: 144
Pomógł: 0
Dołączył: 15.09.2016
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


winny Avast Antivirus.

Ten post edytował porzeczki 15.10.2016, 16:03:19
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 09:18