473,387 Members | 3,781 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,387 software developers and data experts.

PHPMailer security

I have been using PHPMailer to send a contact form.
But one of the users told me that he had received a response to his question from another person.

I sent a question using the form and, effectively, someone answered me.
So, how can they be capturing that information? Any help? :(
May 30 '07 #1
4 2577
pbmods
5,821 Expert 4TB
I have been using PHPMailer to send a contact form.
But one of the users told me that he had received a response to his question from another person.
  • Check to make sure that the address you're sending the email to is correct.
  • Is the email being sent to more than one address?
  • Is it being CC'd or BCC'd?
  • Are you setting your own headers or just using the defaults?
  • If you set headers, is it possible (even if not intended) for the User to modify these headers (are you getting hit by header injection attacks)?
  • Is the response coming from the same email address every time, or does it vary?
May 30 '07 #2
  • Check to make sure that the address you're sending the email to is correct.
  • Is the email being sent to more than one address?
  • Is it being CC'd or BCC'd?
  • Are you setting your own headers or just using the defaults?
  • If you set headers, is it possible (even if not intended) for the User to modify these headers (are you getting hit by header injection attacks)?
  • Is the response coming from the same email address every time, or does it vary?
Actually, the form wasn't developed by me, the only thing I did was switch from an old sciprt (using mail) to phpMailer to avoid header injection. What I hadn't realized was that the form was being sent to two adresses, so that was probably the problem. Right now we're discussing this with the website owner to check if the second address was intentional or was put there by the former developer to catch all the emails sent through it.

Thanks for answering!
May 31 '07 #3
pbmods
5,821 Expert 4TB
Thanks for answering!
No problem. Keep 'em comin'!
May 31 '07 #4
thanks man good answer i need this
Jun 2 '07 #5

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

Similar topics

1
by: Daniel Loose | last post by:
Hi, a friend was so kind to host my php scripts. but when they use phpmailer (or other PHP mail facilities) to email e.g. to an invalid address, the returning error message appears in *my...
1
by: Leszek | last post by:
Hi. I have problem with phpMailer 1.73 (windows version) After copying both class.phpmailer and class.smtp and also language file phpmailer.lang-pl to my php include directory im getting this...
3
by: Leszek | last post by:
Hi. I have problem with phpMailer 1.73 (windows version) After copying both class.phpmailer and class.smtp and also language file phpmailer.lang-pl to my php include directory im getting this...
0
by: SirShurf | last post by:
Hi, I am using a phpmailer class to send some forms over the email... And the problem is, that some ppl (especially problematic for me is the buyer....) getting the email as rough data (sorce...)...
2
by: prasenjit2007 | last post by:
Hello, can u help me sending Email with attachments using the Class phpMailer. On the website I have a link to an html form in which I input the parameters with the names 1)from(textbox name)...
9
by: Lucanos | last post by:
Hi All, I am currently using PHPMailer to send out a set of emails on the execution of a PHP Script (obviously). My problem is that the PHPMailer action is returning a "true" result each time...
5
by: Gilles Ganault | last post by:
Hello To handle an occasionnal flaky ADSL connection, I updated the database that handles incoming calls to have a column that is set to NULL, and then updated to either Y or N depending on...
4
by: mukeshrasm | last post by:
Hi! I want to use phpmailer class to send mail using smtp.I have downloaded the phpmailer and then i followed it's README file where it is mentioned that "Copy class.phpmailer.php into your php.ini...
0
by: mukeshrasm | last post by:
Hi! I want to use phpmailer class to send mail using smtp.I have downloaded the phpmailer and then i followed it's README file where it is mentioned that "Copy class.phpmailer.php into your php.ini...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.