Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] problem z e-mail z flasha, wiadomość dochodzi ale bez nagłówków i treści
criss78
post 21.05.2007, 20:21:18
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 4.02.2007

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


Witam!
Mam formularz mail we flashu, pola mają przypisane zmienne, treść pól jest wysyłana po naciśnięciu buttona do pliku :
  1. <?php
  2. mail("adres@odbiorcy.pl", $subject, $message, "From:$fromnX-Mailer: PHP/" . phpversion());
  3. ?>



skrypt z flasha:
w
klatce jest zawarta funkcja:
stop();
function lineAdapt() {
message_send = message;
while (msg_count<length(message)) {
msg_count = msg_count+1;
if ((substring(message_send, msg_count, 2)) eq "\r") {
message_send = (substring(message_send, 1, msg_count-2)) add "\n" add (substring(message_send, msg_count+2, (length(message_send))-msg_count+2));
}
}
message = message_send;
delete msg_count;
delete message_send;
}
Natomiast w guziku:
on (release) {
if (subject eq "" or message eq "" or from eq "") {
stop();
} else {
lineAdapt();
loadVariablesNum("mail.php3", 0, "POST");
gotoAndStop(2);
}
}
Rezultat jest jak w opisie tematu. Wiadomość dociera ale nie ma w niej treści ani nagłówków.
Zwracałem się z tym do admina serwera ale on tylko powiedział, żebym zmienił adres odbiorcy. Nic nie pomogło.
Formularz działa na innym serwerze. Natomiast tutaj nie.
Czy ktoś może wiedzieć w czym leży problem?

Ten post edytował criss78 21.05.2007, 21:03:56
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 Wersja Lo-Fi Aktualny czas: 21.06.2025 - 08:16