Current location: Hot Scripts Forums » Programming Languages » PHP » PHP Mailing Spam issue


PHP Mailing Spam issue

Reply
  #1 (permalink)  
Old 08-13-08, 11:13 PM
creativeartist creativeartist is offline
Newbie Coder
 
Join Date: Jul 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Mailing Spam issue

Hello

The software I am using to scan for spam is called BoxTrapper...it is on cpanel on the server.I am having problems with email, its saying that headers not present or not in format.I am using mail() to send mails to my email from a contact form.I have included most of the headers used in php.net mailing help file.

I have did a lot of search on this and how can I solve the issue?.Is there any additional header needed for solving the issue?.Please help me.
Reply With Quote
  #2 (permalink)  
Old 08-14-08, 01:29 AM
speedospeedo speedospeedo is offline
Newbie Coder
 
Join Date: May 2006
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
AFAIK Boxtrapper is a whitlist/blacklist funtion on WHM/Cpanel based hosting enviroment.

So surely not Boxtrapper rejecting your mails, probably spamassasin or simply malformed itself.


From, To, Subject, Reply-Address, Return-Path,.... usually necessary but not all mandatory.

Can your post an example header?
Reply With Quote
  #3 (permalink)  
Old 08-14-08, 06:58 AM
creativeartist creativeartist is offline
Newbie Coder
 
Join Date: Jul 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
See it here

$headers = "Return-Path: ";

$headers .= "info@site.com\n";

$headers .= "From:". $first_name." ".$last_name."<".$email.">"."\n";

$headers .= "X-Sender: site.com\n";

$headers .= "X-Mailer: site.com\n";

$headers .= "X-Priority: 3\n";

$headers .= "MIME-Version: 1.0\r\n";

$headers .= "Content-Type: text/html; charset=iso-8859-1\r\n";
Reply With Quote
Reply

Bookmarks


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SPAM via PHP contact form. seroxatmad PHP 6 11-28-06 01:24 AM
SolidPHP, Inc hiring experienced PHP developers tickedon Job Offers & Assistance 5 05-04-05 02:06 PM
Upgrading my site to PHP? ExoticCarSite Job Offers & Assistance 3 04-24-05 05:47 AM
php chatscript colour issue Bantam PHP 13 09-21-04 10:41 AM
php or apache issue? lokey PHP 7 03-08-04 11:55 PM


All times are GMT -5. The time now is 07:53 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.