Poslao: 10 Jun 2008 08:26
|
|
Imam 2 fajla, sta treba da izmenim da mogu da primam mail?
contact.php
<?
Error_Reporting(E_ALL & ~E_NOTICE);
while ($request = current($_REQUEST)) {
if (key($_REQUEST)!='recipient') {
$pre_array=split ("&777&", $request);
$post_vars[key($_REQUEST)][0]=$pre_array[0];
$post_vars[key($_REQUEST)][1]=$pre_array[1];
}
next($_REQUEST);
}
reset($post_vars);
$subject="From ".$post_vars['your_name'][0] ;
$headers= "From: ".$post_vars['your_email'][0] ."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
$message='';
while ($mess = current($post_vars)) {
if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {
$message.="<strong>".$mess[1]."</strong> ".$mess[0]."<br>";
}
next($post_vars);
}
mail($_REQUEST['recipient'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$message."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>
<script>
resizeTo(300, 300);
</script>
contact.asp
<%
for i=1 to 7
message=Request("message")
next
message=message + Request("message")
smtpServer = "enter your SMTP SERVER HERE"
smtpPort = 25
name = Request("Your_Name:")
Set myMail = CreateObject("CDO.Message")
myMail.Subject = "from " & name
myMail.From = Request("Your_Email:")
myMail.To = Request("recipient")
myMail.HTMLBody = "<html><head><title>Contact letter</title></head><body><br>" & message & "</body></html>"
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = smtpPort
myMail.Configuration.Fields.Update
myMail.Send
%>
pokusavao sam al..
evo recite mi konkretno imam:
POP3: pop3.verat.net
SMTP: smtp.sbb.rs
outgoingmail(SMTP): 25
incomingmail(POP3): 995
HVALA puno!
|
|
|
Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
|
|
Poslao: 10 Jun 2008 14:32
|
offline
- igor86
- Stručni saradnik
Web programiranje
- Pridružio: 24 Maj 2006
- Poruke: 1633
|
hehe kakvo je ovo smece, mjesa ti se ovdje php i asp, nista problematicno, ali jesi siguran da imas podrsku za oba script jezika?
|
|
|
|
|
Poslao: 10 Jun 2008 16:43
|
offline
- lnenad
- Stručni saradnik
Web
- Pridružio: 16 Jan 2007
- Poruke: 2860
- Gde živiš: Bijeljina
|
Pa prema onome sto ti host podrzava koristis PHP fajl ili ASP ...
|
|
|
|
Poslao: 10 Jun 2008 17:15
|
offline
- Svemirko
- Legendarni građanin
- Pridružio: 24 Mar 2004
- Poruke: 3962
- Gde živiš: Zemun
|
95% dajem glas da imas samo php
stoga probaj sam da koristis .php fajl
|
|
|
|
|
Poslao: 11 Jun 2008 09:21
|
offline
- lnenad
- Stručni saradnik
Web
- Pridružio: 16 Jan 2007
- Poruke: 2860
- Gde živiš: Bijeljina
|
Ovdje
mail($_REQUEST['recipient']
promjeni ono $_REQUEST['recipient'] u "tvoj mail" (sa navodnicima).
|
|
|
|
Poslao: 11 Jun 2008 19:52
|
|
pokusao nece..
mail("office@pravnici.net"], $subject, "
to mi recimo treba i nece..
Parse error: syntax error, unexpected ']' in /home/zzplocom/public_html/contact.php on line 28
|
|
|
|
Poslao: 11 Jun 2008 19:57
|
offline
- Crazy Wiking
- Legendarni građanin
- Pridružio: 13 Jan 2008
- Poruke: 3657
- Gde živiš: Stara Pazova
|
Za početak imaš jednu ovalnu ( i jednu četvrtastu ] zagradu. To su dva različita pojma u php-u.
|
|
|
|
|