Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][PHPMailer] Maile nie dochodzą
peter13135
post
Post #1





Grupa: Zarejestrowani
Postów: 1 447
Pomógł: 191
Dołączył: 26.03.2008

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


Mam problem z wysyłaniem maila. Maile dochodzą na gmail, nie dochodza na wp.pl. W czym może tkwić problem ? To wina serwera z którego został wystałny (proserwer.pl) czy może tego skryptu ?
  1. {
  2. $phpmailer = new PHPMailer(true);
  3. $phpmailer->AddReplyTo($this->conf->get('email'), 'Administrator');
  4. $phpmailer->Subject = $_POST['title'];
  5. $phpmailer->MsgHTML($_POST['message']);
  6. $phpmailer->SetFrom($this->conf->get('email'), 'Administrator');
  7.  
  8. $users = $this->getUsers($_POST['newsletter_group']);
  9. foreach ($users as $user) //odbiorcy
  10. {
  11. $phpmailer->AddAddress($user['email'], $user['name'] . ' ' . $user['surname']);
  12. }
  13. $files = $this->getFiles();
  14. foreach ($files as $file)
  15. {
  16. $phpmailer->AddAttachment('tmp/' . $file); // dodaje załączniki
  17. }
  18. $phpmailer->Send();
  19. }
  20. catch (phpmailerException $e)
  21. {
  22. echo $e->errorMessage(); //Pretty error messages from PHPMailer
  23. }
  24. catch (exception $e)
  25. {
  26. echo $e->getMessage(); //Boring error messages from anything else!
  27. }



--------------------
:)
Go to the top of the page
+Quote Post

Posty w temacie


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: 19.08.2025 - 18:29