Pogledajte određenu poruku
Staro 27. 07. 2007.   #13
Vladimir Rodic
Webeloper
Professional
 
Avatar Vladimir Rodic
 
Datum učlanjenja: 19.10.2006
Lokacija: Novi Sad
Poruke: 348
Hvala: 136
33 "Hvala" u 24 poruka
Vladimir Rodic is on a distinguished road
Pošaljite poruku preko Skype™ za Vladimir Rodic
Default

Citat:
Originalno napisao MorenoArdohain Pogledajte poruku
^ Ali nek objasni prvo gde je to primetio da se markira kao SPAM.
Meni na Gmail svaki put stize kao SPAM.

Evo koda za mail sem body-ja mejla jer je predug a poslao sam ga u ranijem postu:

$alphanum = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw xyz0123456789";
$alphanum2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw xyz0123456789";
// generate the verication code
$pass = substr(str_shuffle($alphanum), 0, 10);
$verCode = substr(str_shuffle($alphanum2), 0, 100);
$sql = "INSERT INTO temp_auth_table (mail,pass,ver_code) VALUES ('".$_POST['email']."','".$pass."','".$verCode."')";
$result = mysql_query($sql);

// send mail with verification code

// mail subject
$subject = "www.Culture4Culture.com registration mail";

// The message \n for a new line
$message = "OVDE JE BODY BIO";

// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);

//who receives the mail
$to = $_POST['email'];

$headers = 'From: culture4@culture4culture.com' . "\r\n" . 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Send
$delivered = mail($to, $subject, $message, $headers);
__________________
Before you criticize someone, walk a mile in their shoes.
By the time they get angry you're a mile away and you've got their shoes!
Vladimir Rodic je offline   Odgovorite uz citat