Php

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.
Joined
Jul 28, 2008
Messages
1,899
Do you have a mail server set up for php as trying to send a mail without one is a lost cause :D
 

bharanikumarphp

Thread Starter
Joined
Sep 17, 2008
Messages
2
$to='lover_ganesh@yahoo.co.in';
$to.='ganeshfriends@gmail.com';
$message='testmail';
$subject='test subject';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'To:ganesh<lover_ganes@yahoo.co.in>' . "\r\n";
$headers .= 'From: bharani<bharaniphp@yahoo.com>' . "\r\n";

// Mail it
mail($to, $subject, $message, $headers);


am getting mail in gmail, but am not getting mail in yahoo..any guess
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Top