Poslao: 18 Nov 2007 17:39
|
offline
- m4rk0
- Administrator
- Administrator tech foruma
- Marko Vasić
- Gladijator - Maximus Decimus Meridius
- Pridružio: 14 Jan 2005
- Poruke: 15766
- Gde živiš: Majur (Colosseum)
|
Od provajdera sam dobio sledecu skriptu koja navodno omogucava upotrebu SMTP Authenticationa u okviru php baziranih portala.
https://www.mycity.rs/must-login.png
Posto posedujem phpnuke sajt, gornji fajl sam preimenovao u authSendEmail.php i uploadovao ga u includes folder (prethodno sam ubacio sve potrebne podatke u fajl). Zatim sam u Your_Account/index.php fajl ubacio umesto:
mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
ovo
include_once('includes/authSendEmail.php');
saljimail($from, "MY NAME" , $user_email, $user_email, $subject, $message);
Ali korisnici i dalje ne dobijaju aktivacioni kod.
|
|
|
Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
|
|
Poslao: 18 Nov 2007 18:20
|
offline
- Bone Collector
- Legendarni građanin
- Pridružio: 18 Apr 2003
- Poruke: 5001
- Gde živiš: Beograd
|
Koliko ja vidim
function saljimail($from, $to, $subject, $message)
funkcija saljimail prima samo cetiri parametra a ti saljes sest komada...
|
|
|
|
Poslao: 18 Nov 2007 19:11
|
offline
- m4rk0
- Administrator
- Administrator tech foruma
- Marko Vasić
- Gladijator - Maximus Decimus Meridius
- Pridružio: 14 Jan 2005
- Poruke: 15766
- Gde živiš: Majur (Colosseum)
|
Znaci ova skripta sto su mi dali ne valja ?
|
|
|
|
Poslao: 18 Nov 2007 19:32
|
offline
- bocke
- Moderator foruma
- Glavni moderator Linux foruma
- Pridružio: 16 Dec 2005
- Poruke: 12520
- Gde živiš: Južni pol
|
Pazi. Na ovo je mislio Bone... U ovom skriptu ti je funkcija definisana ovako:
function saljimail($from, $to, $subject, $message)
A ti je pozivas sa:
saljimail($from, "MY NAME" , $user_email, $user_email, $subject, $message);
Tj. Parametri u skriptu su $from, $to, $subject i $message.
Recimo mogao bi ovako da ga pozoves (ukoliko su $from, $subject i $message definisani).
saljimail($from, $subject, $user_email, $message);
|
|
|
|
|
Poslao: 18 Nov 2007 19:39
|
offline
- bocke
- Moderator foruma
- Glavni moderator Linux foruma
- Pridružio: 16 Dec 2005
- Poruke: 12520
- Gde živiš: Južni pol
|
Brz na okidacu.
|
|
|
|
Poslao: 18 Nov 2007 19:41
|
offline
- m4rk0
- Administrator
- Administrator tech foruma
- Marko Vasić
- Gladijator - Maximus Decimus Meridius
- Pridružio: 14 Jan 2005
- Poruke: 15766
- Gde živiš: Majur (Colosseum)
|
Pretpostavio sam da je u tome greska, ali kad to stavim onda mi ne radi "dugme" za registraciju, tj izlazi potpuno prazna stranica
|
|
|
|
Poslao: 18 Nov 2007 19:43
|
offline
- Bone Collector
- Legendarni građanin
- Pridružio: 18 Apr 2003
- Poruke: 5001
- Gde živiš: Beograd
|
A podesio si ova tri parametra?
$smtpServer = "mail.vasdomen.com";
$username = "emailadresa";
$password = "sifra";
|
|
|
|
Poslao: 11 Dec 2007 18:18
|
offline
- m4rk0
- Administrator
- Administrator tech foruma
- Marko Vasić
- Gladijator - Maximus Decimus Meridius
- Pridružio: 14 Jan 2005
- Poruke: 15766
- Gde živiš: Majur (Colosseum)
|
Ups, ipak nisam bio dobro ispravio. Sad je sve ok.
@Bone Collector & bocke
Hvala obojici, zivi bili
Dopuna: 11 Dec 2007 18:18
Evo jos jednog (manjeg) problema.
Nakon sto sam podesio SMTP, uspesno se registrovalo oko 500 novih korisnika, ali je na moj (admin) mail stiglo 4 MAILER-DAEMON povratnih poruka i 2 Mail Delivery System greske. Jest, da je to mali broj u odnosu na uspesno regovane korisnike, ali zelim da se svi koji pokusaju da se reguju, to i ucine bez problema.
Evo sta stoji u zaglavlju:
Mail Delivery System <MAILER-DAEMON@data-2.beotel.net> to me
show details Dec 1
The following message to <*****@beotel.rs> was undeliverable.
The reason for the problem:
5.1.0 - Unknown address error 554-'Failure Probable loop 32 recipient lines'
Final-Recipient: rfc822;******@beotel.rs
Action: failed
Status: 5.0.0 (permanent failure)
Remote-MTA: dns; [194.106.***.**]
Diagnostic-Code: smtp; 5.1.0 - Unknown address error 554-'Failure Probable loop 32 recipient lines' (delivery attempts: 0)
drugi oblik:
Hi. This is the qmail-send program at stormbreaker.pttrs.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<******@spinter.net>:
81.**.*.* does not like recipient.
Remote host said: 550 5.1.1 <******@spinter.net>... User unknown
Giving up on 81.**.*.*
treci oblik:
Hi. This is the qmail-send program at ogre.blic.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<*******@blic.net>:
The users mailfolder is over the allowed quota (size). (#5.2.2)
i cetvrti oblik:
----- The following addresses had permanent fatal errors -----
<******@krstarica.com>
(reason: 550-Mailbox unknown. Either there is no mailbox associated with this)
|
|
|
|
Poslao: 12 Dec 2007 12:20
|
offline
- Bone Collector
- Legendarni građanin
- Pridružio: 18 Apr 2003
- Poruke: 5001
- Gde živiš: Beograd
|
Rekao bi da su sve greske osim ove trece posledica pogresno upisane email adrese. A treca greska "The users mailfolder is over the allowed quota" oznacava da taj ciji je mail ima prepun inbox, sto znaci da ili ne cita uopste poruke sa tog maila ili ima neki program koji mu ne brise poruke sa servera.
Nijedna greska nije do tebe i ne mozes nista da uradis.
|
|
|
|