Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
mail headers

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
BS
Guest





PostPosted: 18.10.2005 19:52    Post subject: mail headers Reply with quote

ukoliko je mail poslan na nepostojeću adresu, vraća se na server? Ako da, na koji način bi mogao podesit da mi se vraća na moju adresu, a ne da neku nobody adresu hostinga?

jel ide to sa mail() funkcijom?
Back to top
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 18.10.2005 20:52    Post subject: Add user to your forum ignore list Reply with quote

Da. Podesi FROM headere u mail() funkciji. Ako ne znaš kako bi to napravio pogledaj headere u svojem inboxu i pročitaj dokumentaciju mail() funkcije, sve je objašnjeno. Ne zaboravi više headera u istom stringu odvojiti sa \r\n
Back to top
View user's profile Send private message Send e-mail Visit poster's website
BS
Guest





PostPosted: 18.10.2005 21:21    Post subject: Reply with quote

riješeno

još jedna sitnica, zašto u From: Š<mail@mail.com> ne priznaje Š ?
Back to top
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 18.10.2005 22:36    Post subject: Add user to your forum ignore list Reply with quote

Ime pošiljatelja bi trebalo biti u navodnicima, vjerujem
Back to top
View user's profile Send private message Send e-mail Visit poster's website
BS
Guest





PostPosted: 18.10.2005 23:02    Post subject: Reply with quote

Code:
$headers = "MIME-Version: 1.0 \n" ;
$headers = "Content-Type: text/html; charset=windows-1250 \r\n";
$headers .= "From: $kontakt_osoba<$email> \r\n";
$headers .= 'To: ' . $moj_email . "\r\n"; 
mail("a@mail.com","Naslov", "$poruka","$headers");


i koja je fora sa:
Return-path:
Envelope-to:
Back to top
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 18.10.2005 23:33    Post subject: Add user to your forum ignore list Reply with quote

BS wrote:
i koja je fora sa:
Return-path:
Envelope-to:

ne treba ti Wink

ja bi ovako rađe nego ono tvoje:
Code:
$headers = "Content-Type: text/html; charset=windows-1250\r\n";
$headers .= "From: $moje_ime <$moj_email>\r\n";
$headers .= "Reply-To: <$moj_email>\r\n";
mail($target_email, "Subject", $poruka, $headers);
Back to top
View user's profile Send private message Send e-mail Visit poster's website
BS
Guest





PostPosted: 18.10.2005 23:38    Post subject: Reply with quote

guglam previše pa pokupim sve i svašta, tnx Smile
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group