All emails send but example@student.bradford.ac.uk

the mail() function

Moderators: macek, egami, gesf

bobeyuno
New php-forum User
New php-forum User
Posts: 1
Joined: Thu Jan 16, 2014 6:07 am

All emails send but example@student.bradford.ac.uk

Postby bobeyuno » Thu Jan 16, 2014 7:01 am

Hi
Im building up a PHP application to deal with logins everything works fine apart from sending to one type of email address example@student.bradford.ac.uk, example@bradfod.ac.uk works fine, they are both email addresses at the university.

<?php
$email = $_POST['email'];
$subject = "new test message";
$message = "successful message";
$from = "**************"; //email removed
$headers = "From:" . $from." \r\n";
$headers .= "Content-type: text/html\r\n";
$headers .= "Return-Path: ". $from ." \r\n";
$headers .= "Return-Receipt-To: ".$from."\r\n ";
$headers .= "Reply-To: ". $from;
mail($email,$subject, $message, $headers, " $from" );



any other infomation you need just ask

Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest

cron