Jump to content

Jaya

New Members
  • Posts

    5
  • Joined

  • Last visited

Jaya's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you so much for help now i got to know about where problem is
  2. yes No i am using PHP mail function only not gmail mail server
  3. mac_gyver-I am using web hosting server to send mail there also facing same issue. But it happens only in outlook and Hotmail.
  4. I try our code, i get mail in inbox in Gmail but not in outlook i got in junk folder. Is any restriction in outlook that sends PHP mail() to junk?
  5. I am try o send PHP mail through forms mail is getting in inbox in Gmail and yahoo except outlook and Hotmail. In outlook and Hotmail mail is received in junk but i need to got in inbox. Code part is below. <?php if(isset($_POST['submit'])) { //post function is used to get html form data $to=$_POST['to']; $subject = $_POST['subject']; $text_editor=$_POST['text_editor']; $from = 'abc@gmail.com'; $sign=$_REQUEST['sign']; $sname='<div><b>'.$sign.'</b><br>Resource Manager, SHIRO Technologies Llc<br>IT, ITeS & Automation Services - Resource Management<br><b>P:</b> 469-941-9530<br><a href="https://www.chandru@shirotechnologies.com"><b>E:</b> chandru@shirotechnologies.com</a><br><b>a:</b> 5080 Specutrum Drive Addison TX 75001<br><a href="https://www.shirotechnologies.com"><b>w:</b> shirotechnologies.com</a></div>'; $headers[] = 'MIME-Version: 1.0'; $headers[] = 'Content-type: text/html; charset=iso-8859-1'; $headers[] .= "Organization: Sender Organization"; $headers[] .= "X-Priority: 3"; $headers[] .= "X-Mailer: PHP". phpversion(); // Additional headers //$headers[] = 'To:'.$to; $headers[] = 'From:'.$from; $headers[] = 'Cc: abc@gmail.com'; // Mail it $message ='<b>'.$text_editor.'<b><br> <p>'.$sname.'</p>'; if(mail($to, $subject, $message, implode("\r\n", $headers),"-f$from")){ echo 'Your mail has been sent successfully.'; echo "\n\n".$message; } else{ echo 'Unable to send email. Please try again.'; } } ?>
×
×
  • 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.