Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2009 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

contacts not sending

Thread title: contacts not sending
Closed Thread    
    Thread tools Search this thread Display Modes  
08-17-2008, 04:04 AM
#1
jasonm56 is offline jasonm56
jasonm56's Avatar
Status: I love this place
Join date: Jun 2007
Location: Minneapolis
Expertise: xhtml/css, jquery, php, mysql
Software:
 
Posts: 533
iTrader: 1 / 100%
 

jasonm56 is on a distinguished road

Send a message via MSN to jasonm56

  Old  contacts not sending

im not getting any emails and I dont know why...

Code:
<?php
// Contact subject
$subject ="$subject";
// Details
$message="$detail";

// Mail of sender
$mail_from="$customer_mail";
// From
$header="from: $name <$mail_from>";
$to ='admin@spotfindr.com';

$send_contact=mail($to,$subject,$message,$header);
if($send_contact){
echo "Thank you, your message has been sent!";
}
else {
echo "ERROR";
}
?>
I also tried using a few emails...hotmail, gmail and then my own domain email.

08-17-2008, 12:45 PM
#2
Jeff Andersen is offline Jeff Andersen
Status: Superstar
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 4,449
iTrader: 10 / 100%
 

Jeff Andersen is on a distinguished road

  Old

Considering the headers are essentially nonexistent.. I can definitely see them blocking this as spam. I suggest reading up @ http://ca3.php.net/manual/en/function.mail.php

08-17-2008, 08:04 PM
#3
creativejen is offline creativejen
Status: Paladin
Join date: Jul 2006
Location: Sheffield, UK
Expertise: design, front-end markup
Software: Photoshop
 
Posts: 2,353
iTrader: 25 / 96%
 

creativejen is an unknown quantity at this point

Send a message via MSN to creativejen

  Old

The first 2 variables are incorrect also.

$subject = "$subject"; ???

Should be, $subject = $_POST['fieldname'];

And you will need to do the same to define $customer_email

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed