Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z wysyłaniem maila[inne][PHP]
tomi1985
post
Post #1





Grupa: Zarejestrowani
Postów: 192
Pomógł: 12
Dołączył: 23.09.2010
Skąd: Warszawa

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


Witam,

tak jak w temacie....

mam sobie skrypcik przypisany do formularza na podstawie którego wysyłam z stronki maila.

wszystko było by jak należy gdyby nie to, że w temacie maila jest dodany następujący komunikat "login@nazwa serwera; w imieniu; strona_www'@nazwa serwera"

  1. $to = 'office@strona www';
  2. $subject = 'E-mail dnia '.$this->dates.' z serwisu strona www';
  3. $message = '
  4. Wiadomość wysłana z serwisu strona www dnia '.$this->dates.'<br /><br />
  5. '.$_POST[nameSurname].'<br />
  6. '.$_POST[phone].'<br />
  7. '.$_POST[mail].'<br />
  8. '.$_POST[temat].'<br />
  9. '.$_POST[text].'<br /><br />
  10. .............................................<br />
  11. Pozdrawiamy <br />zespół<br /><a href="http://strona www/">strona www</a>
  12. ';
  13.  
  14. $headers = 'From: strona www' . "\r\n" ;
  15. $headers .='Reply-To: '. $to . "\r\n" ;
  16. $headers .='X-Mailer: PHP/' . phpversion();
  17. $headers .= "MIME-Version: 1.0\r\n";
  18. $headers .= "Content-type: text/html; charset=utf-8\r\n";
  19. mail($to,$subject,$message,$headers);


próbowałem również na takim skrypcie

  1. $to = 'office@strona www';
  2. $subject = 'E-mail dnia '.$this->dates.' z serwisu strona www';
  3. $message = '
  4. Wiadomość wysłana z serwisu strona www dnia '.$this->dates.'<br /><br />
  5. '.$_POST[nameSurname].'<br />
  6. '.$_POST[phone].'<br />
  7. '.$_POST[mail].'<br />
  8. '.$_POST[temat].'<br />
  9. '.$_POST[text].'<br /><br />
  10. .............................................<br />
  11. Pozdrawiamy <br />zespół<br /><a href="http://strona www/">strona www</a>
  12. ';
  13. $from = "strona www'";
  14. $headers = "From: $from \r\nContent-type: text/html; charset=utf-8";
  15. mail($to,$subject,$message,$headers);
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
tomi1985
post
Post #2





Grupa: Zarejestrowani
Postów: 192
Pomógł: 12
Dołączył: 23.09.2010
Skąd: Warszawa

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


wiem, że nigdzie nie ma "w imieniu"... i dlatego tu napisałem aby poznać tego przyczynę ponieważ nie mam zielonego pojęcia dlaczego tak się dzieje. Tym bardziej, że na innej domenie podpiętej pod ten sam serwer ten sam skrypt działa idealnie...

Nawet pisałem już do pomocy techniczej serwera ale odpowiedzieli, że serwer to wyłączna wina skryptu.

Nie wiem... byc może coś w htaccess'ie mam coś nie tak

  1. AddType x-mapp-php5 .php
  2. AddHandler x-mapp-php5 .php
  3. RewriteEngine On
  4.  
  5. <IfModule mod_deflate.c>
  6. #The following line is enough for .js and .css
  7. AddOutputFilter DEFLATE js css
  8. AddOutputFilterByType DEFLATE text/plain text/xml application/xhtml+xml text/css application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp text/html
  9.  
  10. #The following lines are to avoid bugs with some browsers
  11. BrowserMatch ^Mozilla/4 gzip-only-text/html
  12. BrowserMatch ^Mozilla/4\.0[678] no-gzip
  13. BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  14. </IfModule>
  15.  
  16. # BEGIN EXPIRES
  17. <IfModule mod_expires.c>
  18. ExpiresActive On
  19. ExpiresDefault "access plus 10 days"
  20. ExpiresByType text/css "access plus 1 week"
  21. ExpiresByType text/plain "access plus 1 month"
  22. ExpiresByType image/gif "access plus 1 month"
  23. ExpiresByType image/png "access plus 1 month"
  24. ExpiresByType image/jpeg "access plus 1 month"
  25. ExpiresByType application/x-javascript "access plus 1 month"
  26. ExpiresByType application/javascript "access plus 1 week"
  27. ExpiresByType application/x-icon "access plus 1 year"
  28. </IfModule>
  29. # END EXPIRES
  30.  
  31. <IfModule mod_headers.c>
  32. <FilesMatch "\.(js|css|xml|gz)$">
  33. Header append Vary Accept-Encoding
  34. </FilesMatch>
  35. <FilesMatch "\.(ico|jpe?g|png|gif|swf)$">
  36. Header set Cache-Control "public"
  37. </FilesMatch>
  38. <FilesMatch "\.(css)$">
  39. Header set Cache-Control "public"
  40. </FilesMatch>
  41. <FilesMatch "\.(js)$">
  42. Header set Cache-Control "private"
  43. </FilesMatch>
  44. <FilesMatch "\.(x?html?|php)$">
  45. Header set Cache-Control "private, must-revalidate"
  46. </FilesMatch>
  47. </IfModule>
  48.  
  49. RewriteBase /
  50.  
  51. # przekierowanie dla przykladu bez www -> www
  52. RewriteCond %{HTTP_HOST} !^www.
  53. RewriteRule ^(.*)$ <a href="http://www.%{HTTP_HOST}/$1" target="_blank">http://www.%{HTTP_HOST}/$1</a> [R=301,L]
  54.  
  55. # Protect application and system files from being viewed
  56. RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
  57.  
  58. # Allow any files or directories that exist to be displayed directly
  59. RewriteCond ${REQUEST_URI} ^.+$
  60. RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|JPE?G|JPG|jpg|png|js|css|swf|php|ico|txt|pdf|xml)$ [OR]
  61. RewriteCond %{REQUEST_FILENAME} -f [OR]
  62. RewriteCond %{REQUEST_FILENAME} -d [OR]
  63. RewriteCond %{REQUEST_FILENAME} -l
  64. RewriteRule ^ - [L]
  65.  
  66.  
  67. RewriteRule ^/?([^/]*)/([^/]*)/([^/]*)$ index.tpl?id=$1&i=$2&view=$3 [L]
  68. RewriteRule ^/?([^/]*)/([^/]*)$ search.tpl?idSearch=$1&page=$2 [L]
  69.  
  70. # Rewrite all other URLs to index.php/URL
  71. RewriteRule .* index.php/$0 [PT]
  72.  
Go to the top of the page
+Quote Post

Posty w temacie


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: 7.10.2025 - 16:54