Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Nadawca z formularza w phpMailer
adamantd
post
Post #1





Grupa: Zarejestrowani
Postów: 228
Pomógł: 7
Dołączył: 15.08.2012
Skąd: Rzeszów

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


Witam! Mam problem z $mail->From = 'nadawca@asd.pl';

jeżeli wpiszę tak jak jest w powyższym przykładzie to wszystko działa. Maile docierają a w polu Od: widnieje mail, który wpisałem na sztywno w stringu powyżej.
jeżeli jednak zapiszę go do zmiennej np: $nadawca, i tą zmienną przypiszę do $mail->From to nie wysyłają się maile.

Przy czym $mail->send(); zwraca true ale nigdzie one nie docierają. Sprawdzałem bezpośrednio przed utworzeniem obiektu new phpMailer(); i w zmiennej $nadawca znajduje się adres e-mail. Starałem sie go czyścić na wszelki wypadek stripslashes i trim a oprócz tego wywaliłem wszystko co go wcześniej waliduje w ramach testu i nic nie pomaga.

Dla pewności, wymusiłem na nim że ma być stringiem (string)$nadawca choć i tak nim był i nie pomaga...

Co może być powodem?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
adamantd
post
Post #2





Grupa: Zarejestrowani
Postów: 228
Pomógł: 7
Dołączył: 15.08.2012
Skąd: Rzeszów

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


chwilke mnie nie było

to wszystkie notice po wysąniu wiadomości, którą udaje się wysłąć ale nie dociera bez headera przerzucającego na inną stronę po wysłaniu wiadomości

  1.  
  2. Notice: A session had already been started - ignoring session_start() in /home/users/xxxxxxxx/public_html/scripts/get_link.php on line 2
  3.  
  4. Notice: Use of undefined constant xxxxxxx- assumed 'xxxxxxxxxxx' in /home/users/xxxxxxxxxxx/public_html/scripts/define_scr.php on line 4
  5.  
  6. Notice: Use of undefined constant xxxxxxxxx- assumed 'xxxxxxxxxxx' in /home/users/xxxxxxxxxx/public_html/scripts/define_scr.php on line 5
  7.  
  8. Notice: Use of undefined constant xxxxxxxxx- assumed 'xxxxxxxxxx' in /home/users/xxxxxxxxxxx/public_html/scripts/define_scr.php on line 6
  9.  
  10. Notice: Use of undefined constant xxxxxxxxx- assumed 'xxxxxxxxxx' in /home/users/xxxxxxxxxxxx/public_html/scripts/define_scr.php on line 7
  11.  
  12. Notice: Use of undefined constant xxxxxxxxxxxx- assumed 'xxxxxxxxxxx' in /home/users/xxxxxxxxxxxx/public_html/scripts/define_scr.php on line 9
  13.  
  14. Notice: Use of undefined constant xxxxxxxxxxx- assumed 'xxxxxxxxx' in /home/users/xxxxxxxxxxxx/public_html/scripts/define_scr.php on line 16
  15.  
  16. Notice: Use of undefined constant xxxxxxxxx- assumed 'xxxxxxxxxx' in /home/users/xxxxxxxxxxxx/public_html/scripts/define_scr.php on line 17
  17.  
  18. Notice: Use of undefined constant xxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 18
  19.  
  20. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 19
  21.  
  22. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 20
  23.  
  24. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 21
  25.  
  26. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 22
  27.  
  28. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 23
  29.  
  30. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 24
  31.  
  32. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 25
  33.  
  34. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 29
  35.  
  36. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 30
  37.  
  38. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 31
  39.  
  40. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 32
  41.  
  42. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 33
  43.  
  44. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 34
  45.  
  46. Notice: Use of undefined constant xxxxxxxxxxxxxxxx - assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 35
  47.  
  48. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 36
  49.  
  50. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 37
  51.  
  52. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 38
  53.  
  54. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 39
  55.  
  56. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 40
  57.  
  58. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 41
  59.  
  60. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 42
  61.  
  62. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 43
  63.  
  64. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 44
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  


trochę ją zaiksowałem (IMG:style_emoticons/default/wink.gif)

a to reszta bo nie udało się w jednej wiadomości


  1.  
  2. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 45
  3.  
  4. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 46
  5.  
  6. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 47
  7.  
  8. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 48
  9.  
  10. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 49
  11.  
  12. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 50
  13.  
  14. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 51
  15.  
  16. Notice: Use of undefined constant xxxxxxxxxxxxxxxx - assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 52
  17.  
  18. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 53
  19.  
  20. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 54
  21.  
  22. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 55
  23.  
  24. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 56
  25.  
  26. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 57
  27.  
  28. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 58
  29.  
  30. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 59
  31.  
  32. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 60
  33.  
  34. Notice: Use of undefined constant xxxxxxxxxxxxxxxx- assumed 'xxxxxxxxxxxxxxxx' in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/define_scr.php on line 61
  35.  
  36. Notice: A session had already been started - ignoring session_start() in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/kontakt_scr.php on line 2
  37.  
  38. Notice: A session had already been started - ignoring session_start() in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/Captcha/Captcha.class.php on line 2
  39.  
  40. Notice: Undefined index: mail_log in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/kontakt_scr.php on line 34
  41.  
  42. Notice: Undefined index: mail_log in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/kontakt_scr.php on line 42
  43.  
  44. Notice: Undefined variable: blad in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/kontakt_scr.php on line 44
  45.  
  46. Notice: Undefined variable: capCode in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/Captcha/Captcha.class.php on line 49
  47.  
  48. Notice: Undefined index: mail_log in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/body.class.php on line 383
  49.  
  50. Notice: Undefined variable: classMyNeutral in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/body.class.php on line 407
  51.  
  52. Notice: Undefined variable: nickMyKont in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/body.class.php on line 407
  53.  
  54. Notice: Undefined variable: classMyOks in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/body.class.php on line 409
  55.  
  56. Notice: Undefined variable: mailMyKont in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/body.class.php on line 409
  57.  
  58. Notice: Undefined index: weryfikacja in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/get_link.php on line 375
  59.  
  60. Notice: A session had already been started - ignoring session_start() in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/licznik_odw.php on line 2
  61.  
  62. Notice: Undefined index: mail_log in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/szablon.class.php on line 126
  63.  
  64. Notice: Undefined index: avatar_name in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/szablon.class.php on line 155
  65.  
  66. Notice: Undefined index: nick in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/szablon.class.php on line 157
  67.  
  68. Notice: Undefined variable: imgWiadOdbr in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/szablon.class.php on line 158
  69.  
  70. Notice: Undefined variable: countMess in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/szablon.class.php on line 158
  71.  
  72. Notice: Undefined index: date_show_propo in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/szablon.class.php on line 239
  73.  
  74. Notice: Undefined variable: resAraDatepick in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/szablon.class.php on line 260
  75.  
  76. Notice: Undefined index: mail_log in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/szablon.class.php on line 285
  77.  
  78. Notice: A session had already been started - ignoring session_start() in /home/users/xxxxxxxxxxxxxxxx/public_html/scripts/rejestracja_scr.php on line 2
  79.  
  80. Notice: Undefined variable: style_hardcore in /home/users/xxxxxxxxxxxxxxxx/public_html/CLASS/MODULS/szablon.class.php on line 386
  81.  
  82.  
Go to the top of the page
+Quote Post

Posty w temacie
- adamantd   Nadawca z formularza w phpMailer   28.03.2013, 13:44:29
- - Konochamaru   Mógł Bys wkleić kod ?   28.03.2013, 13:48:01
- - adamantd   fragment klasy wykorzystującej phpMailer wszystki...   28.03.2013, 13:58:02
- - nospor   1) Jesteś pewien, ze pokazałeś nam dokładnie kod j...   28.03.2013, 14:02:45
- - adamantd   Zaraz wszystko posprawdzam dokładnie i przyglądne ...   28.03.2013, 14:21:29
- - nospor   Cytatstandardowo pokazało jakieś pierdoły "no...   28.03.2013, 14:22:03
- - adamantd   chwilke mnie nie było to wszystkie notice po wysą...   28.03.2013, 15:09:13
- - nospor   Prosiłem jeszcze o kod, w którym przypisujesz dane...   28.03.2013, 15:13:50
- - adamantd   [PHP] pobierz, plaintext  <?phpsession_sta...   28.03.2013, 15:17:23
- - nospor   Nie widzę jeszcze kodu, gdzie przypisujesz coś do ...   28.03.2013, 15:19:45
- - adamantd   [PHP] pobierz, plaintext  class sendMailTo ...   28.03.2013, 15:27:13
- - nospor   Przy tej linii: $mail->From = $mailNa...   28.03.2013, 15:29:19
- - adamantd   wyświetliło się: string(10) "test@wp.pl...   28.03.2013, 15:36:59
- - nospor   I twierdzisz, że jak z palca tę wartość wpiszesz, ...   28.03.2013, 15:37:55
- - adamantd   Dokładnie tak jest to dla mnie dziwne -minutę te...   28.03.2013, 15:41:46
- - nospor   Nie mówimy teraz o żadnym asd..... tylko o konkret...   28.03.2013, 15:44:18
- - adamantd   chwila zrobię jeszcze ze dwa bardzo dokładne testy   28.03.2013, 15:45:23
- - nospor   Cytatdoszedł mi mail na outlockaPoza tym, maili ni...   28.03.2013, 15:45:38
- - adamantd   Już wszystko wiem Po kilkunastu testach: [PHP] ...   28.03.2013, 16:00:39
- - nospor   I naprawde trzeba było aż tylu postów by do tego d...   28.03.2013, 16:08:45
- - adamantd   Wiesz jak to jest -szukasz na mapie miasta zaznacz...   28.03.2013, 16:10:54
- - nospor   I że niby co tutaj było tym miastem z dużą czcionk...   28.03.2013, 16:20:43
- - adamantd   Już nie musisz się naśmiewać hehe Wiele problem...   28.03.2013, 16:35:05
- - nospor   Nie naśmiewam się z Ciebie. Próbuję Cię czegoś nau...   28.03.2013, 16:40:58
- - adamantd   Ok jeszcze raz dzięki za wszystko, tak jak mówiłem...   28.03.2013, 16:48:46
- - nospor   Cytata później w skryptach odnosić się również bez...   28.03.2013, 16:51:26
- - adamantd   No i muszę odświeżyć posta.. Z poprzednim proble...   29.03.2013, 13:24:49
- - nospor   Z kodu wynika, ze ty host, user i hasl podajesz za...   29.03.2013, 16:45:34
- - adamantd   Już sobie poradziłem w inny sposób.. Jeżeli User w...   29.03.2013, 19:55:07
- - nospor   Cytata userowi pod wiadomością wyświetlam informac...   30.03.2013, 12:43:06
- - adamantd   Kombinowałem przed chwilą z tym AddReplyTo, ReplyT...   30.03.2013, 22:30:55
- - nospor   Ja tego używam od lat i kurcze.... jakoś działa   1.04.2013, 11:06:30
- - adamantd   Już szczerze mówiąc nie chce mi się tego szukać U...   3.04.2013, 23:40:57


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

 



RSS Aktualny czas: 27.12.2025 - 22:27