Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Php formu da posaljem na mail, NECE.....

[es] :: PHP :: Php formu da posaljem na mail, NECE.....

[ Pregleda: 3625 | Odgovora: 10 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

disko

Član broj: 550
Poruke: 164
*.static.beocity.net.

ICQ: 84032332


+3 Profil

icon Php formu da posaljem na mail, NECE.....25.10.2006. u 09:14 - pre 212 meseci
Imam jedan upitnik koji se popuni a zatim hocu da mi posalje na mail posle toga, sledeci kod mi ne radi, gde gresim?
inace LOOPIA hostujem sledece.....


HVALA UNAPRED





$imapserver = "imap.mojdomen.com";
$cc = '';
$username = 'moj user name';
$password = 'moj password';
$to = '[email protected]';
$to = '[email protected]';
$subject = 'Questioner Answers';

$from = "From:".$username."@mojdomen.com";


$stream = imap_open("{".$imapserver."}",$username,$password)


or die("ERROR");

imap_mail($to,$subject,$message,$from,$cc);
echo "Thank you for filling the questioner!!!";
imap_close($stream);
 
Odgovor na temu

Nebojsa_S
Nebojsa Stankovic
projektant baza podataka
Novi Beograd

Član broj: 38157
Poruke: 46
*.ptt.yu.

ICQ: 309
Sajt: www.oglasiplus.com


Profil

icon Re: Php formu da posaljem na mail, NECE.....25.10.2006. u 11:05 - pre 212 meseci
Daj da vidimo gresku koju ti prijavljuje
 
Odgovor na temu

disko

Član broj: 550
Poruke: 164
*.static.beocity.net.

ICQ: 84032332


+3 Profil

icon Re: Php formu da posaljem na mail, NECE.....25.10.2006. u 13:10 - pre 212 meseci


Evo ovo mi da nakon SUBMIT.............



Parse error: syntax error, unexpected T_LOGICAL_OR in /home/FA06-06-03-09_jgbnwbtbfqzdcrt2ae38/mobile.quadralabs.com/public_html/send.php on line 106
 
Odgovor na temu

Nebojsa_S
Nebojsa Stankovic
projektant baza podataka
Novi Beograd

Član broj: 38157
Poruke: 46
*.ptt.yu.

ICQ: 309
Sajt: www.oglasiplus.com


Profil

icon Re: Php formu da posaljem na mail, NECE.....25.10.2006. u 13:27 - pre 212 meseci
Pretpostavljam da ti je 106. linija
Code:
 or die("ERROR");


Probaj da taj deo obrises ili stavi
Code:
or die("Connection failed :".imap_last_error())
 
Odgovor na temu

disko

Član broj: 550
Poruke: 164
*.static.beocity.net.

ICQ: 84032332


+3 Profil

icon Re: Php formu da posaljem na mail, NECE.....25.10.2006. u 13:54 - pre 212 meseci
$imapserver = "imap.mojdomen.com";
$cc = '';
$username = '[email protected]';
$password = 'pass';
$to = '[email protected]';
// $to = '[email protected]';
$subject = 'Questioner Answers';

$from = "From:".$username."@mojdomen.com";


$stream = imap_open("{".$imapserver."}",$username,$password)
//or die("ERROR");

106 linija: or die("Connection failed :".imap_last_error())


//$numMessages = imap_num_msg($stream);
//$numMessages = $numMessages++;

//$mesage = $from. "<BR> ". "To: ".$to."<BR>"." Subject: ".$subject."<BR>".$message;
e sad je ovde greska: imap_mail($to,$subject,$message,$from,$cc);
//$app = imap_append($stream, "{".$imapserver."}INBOX.Drafts", "xx");


//$app = imap_append($mailbox,"{".$imapserver."} INBOX.Sent","$from\r\n"."$to\r\n"."$subject\r\n"."$message\r\n");
// imap_append($mailbox1, "{".$imapserver."}Sent Items", $mesage);

//imap_mail_move($mailbox, $numMessages , 'Sent Items');
echo "Thank you for filling the questioner!!!";
imap_close($stream);

?>
 
Odgovor na temu

Nebojsa_S
Nebojsa Stankovic
projektant baza podataka
Novi Beograd

Član broj: 38157
Poruke: 46
*.ptt.yu.

ICQ: 309
Sajt: www.oglasiplus.com


Profil

icon Re: Php formu da posaljem na mail, NECE.....25.10.2006. u 14:28 - pre 212 meseci
Je l' ovo sto si poslao kopirano direktno iz fajla send.php? Ako jeste , onda opet imas sintaksne greske. Npr , nemas ";" posle
Code:
or die("Connection failed :".imap_last_error())

Mozda je najbolje da okacis ceo send.php kao attachement , pa da vidimo tacno sta je.
 
Odgovor na temu

disko

Član broj: 550
Poruke: 164
*.adsl.beocity.net.

ICQ: 84032332


+3 Profil

icon Re: Php formu da posaljem na mail, NECE.....25.10.2006. u 17:47 - pre 212 meseci
Evo dajem ceo send.php

<?php

$message = '';

$message.= "Questioner Answers:"."\n";
$message.= "SECTION A: WORK PRACTICES"."\n\n";
$message.= "Question 1:"."\n";
$message.= "Field Research: ".$_POST['fieldResearch']."\n";
$message.= "Personal Contacts: ".$_POST['personaContact']."\n";
$message.= "Press Releases : ".$_POST['pressReleases']."\n";
$message.= "Newsgroups: ".$_POST['newsgroup']."\n";
$message.= "Newspapers: ".$_POST['newspaper']."\n";
$message.= "Internet: ".$_POST['internet']."\n";
$message.= "Other( ".$_POST['otherQuestion1text']."): ".$_POST['other']."\n";

$message.= "SECTION B: INTERNET USAGE"."\n\n";

$message.= "Question 2:"."\n";
$message.= "Home :".$_POST['home']."\n";
$message.= "Work/Office: ".$_POST['work']."\n";
$message.= "Internet Cafe: ".$_POST['internetCafe']."\n";
$message.= "Mobile phone,pda's: ".$_POST['mobile']."\n";
$message.= "Other(".$_POST['otherQuestion2text']."): ".$_POST['otherQuestion2']."\n";

$message.= "Question 3:".$_POST['question3']."\n";

$message.= "Question 4: ".$_POST['question4']."\n";

$message.= "Question 5: ".$_POST['question5']."\n";

$message.= "SECTION C: CONCEPT TESTING"."\n\n";

$message.= "Question 6: ".$_POST['question6']."\n";

$message.= "Question 7: "."\n";
$message.= "Reliability: ".$_POST['reliability']."\n";
$message.= "Ease of Use: ".$_POST['easeofuse']."\n";
$message.= "Currency: ".$_POST['currency']."\n";
$message.= "Ease of Access: ".$_POST['easeofaccess']."\n";
$message.= "Scope of Coverage: ".$_POST['scopeofcoverage']."\n";
$message.= "Cost: ".$_POST['cost']."\n";
$message.= "Speed of Use: ".$_POST['speedofuse']."\n";

$message.= "Question 8: ".$_POST['question8']."\n";

$message.= "Question 9: ".$_POST['question9']."\n";

$message.= "Question 10: ".$_POST['question10']."\n";

$message.= "Question 11: ".$_POST['question11']."\n";

$message.= "Question 12: ".$_POST['question12']."\n";
$message.= "\n\n\n";
$message.= "SECTION D: DEMOGRAPHIC DETAILS"."\n";

$message.= "Gender: ".$_POST['gender']."\n";
$message.= "Age: ".$_POST['age']."\n";
$message.= "Education: ".$_POST['education']."\n";
$message.= "Media: ";
if($_POST['media'])
$message.= $_POST['media']." ";

if($_POST['media1'])
$message.= $_POST['media1']." ";

if($_POST['media2'])
$message.= $_POST['media2']." ";

if($_POST['media3'])
$message.= $_POST['media3']." "."\n";

else
$message.= "\n";

$message.= "Occupation: ".$_POST['occupation']."\n";

$message.= "email: ".$_POST['email']."\n";






$imapserver = "imap.mojdomen.com";
$cc = '';
$username = 'user';
$password = 'pass';
$to = '[email protected]';
// $to = '[email protected]';
$subject = 'Questioner Answers';

$from = "From:".$username."@mojdomen.com";


$stream = imap_open("{".$imapserver."}",$username,$password)
//or die("ERROR");

or die("Connection failed :".imap_last_error())


//$numMessages = imap_num_msg($stream);
//$numMessages = $numMessages++;

//$mesage = $from. "<BR> ". "To: ".$to."<BR>"." Subject: ".$subject."<BR>".$message;
imap_mail($to,$subject,$message,$from,$cc);
//$app = imap_append($stream, "{".$imapserver."}INBOX.Drafts", "xx");


//$app = imap_append($mailbox,"{".$imapserver."} INBOX.Sent","$from\r\n"."$to\r\n"."$subject\r\n"."$message\r\n");
// imap_append($mailbox1, "{".$imapserver."}Sent Items", $mesage);

//imap_mail_move($mailbox, $numMessages , 'Sent Items');
echo "Thank you for filling the questioner!!!";
imap_close($stream);

?>
 
Odgovor na temu

sanjinz
Mostar

Član broj: 76329
Poruke: 31
*.dlp140.bih.net.ba.



Profil

icon Re: Php formu da posaljem na mail, NECE.....30.10.2006. u 22:50 - pre 212 meseci
uopste ti nije do send.php file-a nego u postavkama na serveru (777)
100%


Inšpektor u penzija
 
Odgovor na temu

zikaa
Zivorad Antonijevic
Beograd

Član broj: 10078
Poruke: 107
195.252.90.*

Sajt: zantonijevic.com


+1 Profil

icon Re: Php formu da posaljem na mail, NECE.....05.11.2006. u 18:44 - pre 212 meseci
Fali ti ; iza or die("Connection failed :".imap_last_error())

a za ovakve greske mislim da je malo glupo da postavljas pitanje na forumu , instaliraj neko razvojno okruzenje,
ili jos bolje otvori shell(ako si u linux-u ) ili dos prompt (za windows ) i ukucaj
Code:
php -l /putanja/do/fajla
i videces i sam gde gresis
 
Odgovor na temu

adi356
Adorjan Cizmadia
CEO of BidUno
BidUno
Novi Sad

Član broj: 65311
Poruke: 22

Sajt: www.biduno.com


Profil

icon Re: Php formu da posaljem na mail, NECE.....10.11.2006. u 21:42 - pre 212 meseci
Postovani disko,

Ako ti ne radi imap_mail() funkcija probaj mail(). Jednostavnije je i lakse.

Na sajtu http://www.php.net/ mozes da procitas o ovoj funkciji a tamo mozes da pogledas i kako radi. Nisam koristio imap_mail() ali vidim da je mail() mnogo jednostavniji.


Sve najbolje,
Adi

Biduno, aukcijski sajt na kome, pored postavljanja aukcija i kupi odmah predmeta, možeš da otvoriš i svoju virtuelnu prodavnicu i poboljšaš prodaju i vidljivost svojih predmeta.

Poseti nas i postavi svoj predmet besplatno ili potraži predmet koji ti se sviđa i kupi ga ili nudi.
 
Odgovor na temu

Jezdimir Lončar
Aka Blazeme
PHP/jQuery Dev, BildStudio
Crna Gora / Pljevlja

Član broj: 74833
Poruke: 674
*.reqwireless.com.

Jabber: jezdonet@gmail.com


+4 Profil

icon Re: Php formu da posaljem na mail, NECE.....16.11.2006. u 08:00 - pre 212 meseci
Apsulutno si upravu.
mail(); je 100 puta jednostavniji za korišćenje.
“I never think of the future - it comes soon enough.” - Albert Anštajn (Albert Einstein)
 
Odgovor na temu

[es] :: PHP :: Php formu da posaljem na mail, NECE.....

[ Pregleda: 3625 | Odgovora: 10 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.