473,386 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

php mail() change header to remove unrequired information

Hi there,

I have used php mail script to send mail() to send email. The script works well

However in the email I also get some following information in the header

============================
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server.server.com
X-AntiAbuse: Original Domain - yahoo.com
X-AntiAbuse: Originator/Caller UID/GID - [37049 5555] / [47 12]
X-AntiAbuse: Sender Address Domain - abc.com
============================

How can I remove or change all X values

Thanks
Aug 22 '07 #1
5 4764
pbmods
5,821 Expert 4TB
Heya, Yogesh.

Are you using mail() or PHPMailer?
Aug 22 '07 #2
Hi,

Thanks for responding
I am using mail()



Heya, Yogesh.

Are you using mail() or PHPMailer?
Aug 22 '07 #3
pbmods
5,821 Expert 4TB
Heya, Yogesh.

In that case, somewhere in your script, these headers are getting set.

Post the code that sends the email (we don't need to see the entire script; just the part that sends the email).
Aug 22 '07 #4
Here u go

==========================
Expand|Select|Wrap|Line Numbers
  1. $headers = '';
  2. // To send HTML mail, the Content-type header must be set
  3. //$headers  = 'MIME-Version: 1.0' . "\r\n";
  4. $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  5.  
  6. // Additional headers
  7. $headers .= 'To: My Company name <email@id.com>' . "\r\n";
  8. $headers .= 'From: Name of the sender <emailid@id.com>' . "\r\n";
  9.  
  10. mail($to, $subject, $mailBody, $headers);
==========================
Heya, Yogesh.

In that case, somewhere in your script, these headers are getting set.

Post the code that sends the email (we don't need to see the entire script; just the part that sends the email).
Aug 22 '07 #5
pbmods
5,821 Expert 4TB
Heya, Yogesh.

Check with your hosting provider. They may be inserting these headers while sending the email, and there may be nothing you can do about that except switch providers.
Aug 22 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Web Master | last post by:
Hi, I am having a little issue with Jacks Form mail php script. I have installed it and configured the form to get it to work, but for some bizarre reason I have 2 issues I can't seem to debug....
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
6
by: chris | last post by:
My code <?php $name = "freddie"; $message.="Hi Joe,\n"; $message.="\t $name has Filled out the form on the Website,\n"; $message.="The information from the form is listed below:\n";...
2
by: clevrmnkey | last post by:
I've had nothing but trouble from the System.Net.Mail objects, but I finally need to make them work, and I can't for the life of me see what I'm doing wrong. I pared back my mail transaction to...
2
by: Tim Ferguson | last post by:
Dear all I have a script (below) that for a long time has been sending out to an opt-in distribution list, about 100 members. Today it has stopped working and I am not quite sure what I have...
11
by: shror | last post by:
Hi every body, Please I need your help solving my php mail() function problem that the code is appearing in the view source and I dont know whats the problem where I am using another page tto test...
3
by: shybe | last post by:
I have a send mail script on my site that. The emails are recieved by gmail, and yahoo, but not to mail clients like Outlook, Mail, etc...) Is this a problem with the script, or is it...
7
by: undbund | last post by:
Hi I am creating a newsletter system. The software should run from desktop computer (localhost) but be able to send email to anyone on the internet. Can you guys give me some ideas on how to...
7
by: mukeshrasm | last post by:
Hi I am no able to send mail and it is giving this error Warning: mail(): SMTP server response: 530 5.7.3 Client was not authenticated in c:\inetpub\wwwroot\eshop\includes\classes\email.php on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.