Citat:
Originalno napisao MorenoArdohain
^ 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);