Re: [PHP] Fwd: Mail delivery failed: returning message to sender

2010-11-01 Thread Ben Brentlinger
it could be that the person whom you tried email has reached the quota 
on their inbox.  It's also possible that the person you tried emailing 
gave you a fake email address and it's also possible that your domain 
might be hosted on a cheap hosting account with a company that has been 
known for other people using their service to host websites that have a 
bulk mailing script meant for sending spam.  The possibility to what 
could be going on are endless, but out of all the possibilities I can 
think of, I can't imagine a spammer hijacking your site to send malware 
from it being one of the more likely possibilities especially if you 
have a hosting account with cpanel, which is harder to gain unauthorized 
access to a cpanel hosting account than it is to gain access to a web 
server's FTP, especially if you allow public FTP uploads to the site, 
that can be a breading ground for hackers to upload a password sniffing 
script onto your site via FTP that would track back to their server, 
which would allow them to hack into your website.  Cheap, no name 
webhosting companies are more likely breading grounds for those kinds of 
shady charachters.  If you have an account with one of those no name 
companies, I'd recommend changing webhosts immediately, otherwise, you 
should be ok.  If you do, though, and you're not sure who to switch to, 
I'd recommend hostgator 
http://secure.hostgator.com/%7Eaffiliat/cgi-bin/affiliates/clickthru.cgi?id=BenBrent. 



They're not as big as 11 or Godaddy, but there one of the biggest 
webhosting companies that use cpanel.  I wouldn't recommend any 
webhosting company that doesn't use cpanel because anything else is 
either harder to use, not as secure or both.


On 11/1/2010 3:56, Ashley Sheridan wrote:

On Sun, 2010-10-31 at 20:06 -0500, Tamara Temple wrote:


Is this something I need to worry about?? Is my mail sending some
malware??

Begin forwarded message:


From: Mail Delivery Subsystemmailer-dae...@immosky.ch
Date: October 31, 2010 7:37:54 PM CDT
To: Tamara Templetamouse.li...@gmail.com
Subject: Mail delivery failed: returning message to sender

This message was created automatically by mail delivery software.

A message sent by

  php-general-return-309188-sascha.braun=immosky...@lists.php.net

could not be delivered to all of its recipients.
The following address(es) failed:

  sascha.br...@immosky.ch

The following text was generated during the delivery attempt(s):

sascha.br...@immosky.ch
(reason: 550 This message contains malware
(winnow.malware.wa.webinjection.1450.UNOFFICIAL))

-- This is a copy of the message, including all the headers.

Received: from [192.168.1.110] (helo=mailin01.ims-firmen.de)
by mail01.ims-firmen.de with esmtp (Exim 4.69)

(envelope-fromphp-general-return-309188-sascha.braun=immosky...@lists.php.net

)

id 1PCiPJ-0001i7-R8
for sascha.br...@immosky.ch; Mon, 01 Nov 2010 01:37:53 +0100
Received: from pb1.pair.com ([76.75.200.58] helo=lists.php.net)
by mailin01.ims-firmen.de with esmtp (Exim 4.72)

(envelope-fromphp-general-return-309188-sascha.braun=immosky...@lists.php.net

)

id 1PCiPs-00047o-Sb
for sascha.br...@immosky.ch; Mon, 01 Nov 2010 01:38:29 +0100
Authentication-Results: pb1.pair.com header.from=tamouse.li...@gmail.com
; domainkeys=bad
DomainKey-Status: bad
X-DomainKeys: Ecelerity dk_validate implementing draft-delany-
domainkeys-base-01
X-Host-Fingerprint: 76.75.200.58 pb1.pair.com
Received: from [76.75.200.58] ([76.75.200.58:2084] helo=lists.php.net)
by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP
id EF/73-24094-FDB0ECC4 forsascha.br...@immosky.ch; Sun, 31 Oct
2010 19:37:51 -0500
Received: (qmail 51732 invoked by uid 1010); 1 Nov 2010 00:37:02 -
Mailing-List: contact php-general-h...@lists.php.net; run by ezmlm
Precedence: bulk
list-help:mailto:php-general-h...@lists.php.net
list-unsubscribe:mailto:php-general-unsubscr...@lists.php.net
list-post:mailto:php-general@lists.php.net
List-Id: php-general.lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Received: (qmail 51725 invoked from network); 1 Nov 2010 00:37:02
-
Authentication-Results: pb1.pair.com header.from=tamouse.li...@gmail.com
; sender-id=pass; domainkeys=bad
Authentication-Results: pb1.pair.com
smtp.mail=tamouse.li...@gmail.com; spf=pass; sender-id=pass
Received-SPF: pass (pb1.pair.com: domain gmail.com designates
209.85.214.170 as permitted sender)
X-DomainKeys: Ecelerity dk_validate implementing draft-delany-
domainkeys-base-01
X-PHP-List-Original-Sender: tamouse.li...@gmail.com
X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:received:received:message-id:from:to
 :in-reply-to:content-type:content-transfer-encoding:mime-
version
 :subject:x-priority:date:references:x-mailer;

Re: [PHP] Fwd: Mail delivery failed: returning message to sender

2010-11-01 Thread Ben Brentlinger

her inbox is probably full than

On 11/1/2010 5:30, a...@ashleysheridan.co.uk wrote:
It's not to do with hosting, its an auto reply when you email 
sascha.braun which gave the same aware reply to me, and I'm on a Linux 
box at home!


Thanks,
Ash
http://www.ashleysheridan.co.uk

- Reply message -
From: Ben Brentlinger b...@benbrent.com
Date: Mon, Nov 1, 2010 08:29
Subject: [PHP] Fwd: Mail delivery failed: returning message to sender
To: php-general@lists.php.net

it could be that the person whom you tried email has reached the quota
on their inbox.  It's also possible that the person you tried emailing
gave you a fake email address and it's also possible that your domain
might be hosted on a cheap hosting account with a company that has been
known for other people using their service to host websites that have a
bulk mailing script meant for sending spam.  The possibility to what
could be going on are endless, but out of all the possibilities I can
think of, I can't imagine a spammer hijacking your site to send malware
from it being one of the more likely possibilities especially if you
have a hosting account with cpanel, which is harder to gain unauthorized
access to a cpanel hosting account than it is to gain access to a web
server's FTP, especially if you allow public FTP uploads to the site,
that can be a breading ground for hackers to upload a password sniffing
script onto your site via FTP that would track back to their server,
which would allow them to hack into your website.  Cheap, no name
webhosting companies are more likely breading grounds for those kinds of
shady charachters.  If you have an account with one of those no name
companies, I'd recommend changing webhosts immediately, otherwise, you
should be ok.  If you do, though, and you're not sure who to switch to,
I'd recommend hostgator
http://secure.hostgator.com/%7Eaffiliat/cgi-bin/affiliates/clickthru.cgi?id=BenBrent. 




They're not as big as 11 or Godaddy, but there one of the biggest
webhosting companies that use cpanel.  I wouldn't recommend any
webhosting company that doesn't use cpanel because anything else is
either harder to use, not as secure or both.

On 11/1/2010 3:56, Ashley Sheridan wrote:
 On Sun, 2010-10-31 at 20:06 -0500, Tamara Temple wrote:

 Is this something I need to worry about?? Is my mail sending some
 malware??

 Begin forwarded message:

 From: Mail Delivery Subsystemmailer-dae...@immosky.ch
 Date: October 31, 2010 7:37:54 PM CDT
 To: Tamara Templetamouse.li...@gmail.com
 Subject: Mail delivery failed: returning message to sender

 This message was created automatically by mail delivery software.

 A message sent by

 php-general-return-309188-sascha.braun=immosky...@lists.php.net

 could not be delivered to all of its recipients.
 The following address(es) failed:

 sascha.br...@immosky.ch

 The following text was generated during the delivery attempt(s):

 sascha.br...@immosky.ch
 (reason: 550 This message contains malware
 (winnow.malware.wa.webinjection.1450.UNOFFICIAL))

 -- This is a copy of the message, including all the headers.

 Received: from [192.168.1.110] (helo=mailin01.ims-firmen.de)
 by mail01.ims-firmen.de with esmtp (Exim 4.69)
 
(envelope-fromphp-general-return-309188-sascha.braun=immosky...@lists.php.net

 )
 id 1PCiPJ-0001i7-R8
 for sascha.br...@immosky.ch; Mon, 01 Nov 2010 01:37:53 +0100
 Received: from pb1.pair.com ([76.75.200.58] helo=lists.php.net)
 by mailin01.ims-firmen.de with esmtp (Exim 4.72)
 
(envelope-fromphp-general-return-309188-sascha.braun=immosky...@lists.php.net

 )
 id 1PCiPs-00047o-Sb
 for sascha.br...@immosky.ch; Mon, 01 Nov 2010 01:38:29 +0100
 Authentication-Results: pb1.pair.com 
header.from=tamouse.li...@gmail.com

 ; domainkeys=bad
 DomainKey-Status: bad
 X-DomainKeys: Ecelerity dk_validate implementing draft-delany-
 domainkeys-base-01
 X-Host-Fingerprint: 76.75.200.58 pb1.pair.com
 Received: from [76.75.200.58] ([76.75.200.58:2084] helo=lists.php.net)
 by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP
 id EF/73-24094-FDB0ECC4 forsascha.br...@immosky.ch; Sun, 31 Oct
 2010 19:37:51 -0500
 Received: (qmail 51732 invoked by uid 1010); 1 Nov 2010 00:37:02 -
 Mailing-List: contact php-general-h...@lists.php.net; run by ezmlm
 Precedence: bulk
 list-help:mailto:php-general-h...@lists.php.net
 list-unsubscribe:mailto:php-general-unsubscr...@lists.php.net
 list-post:mailto:php-general@lists.php.net
 List-Id: php-general.lists.php.net
 Delivered-To: mailing list php-general@lists.php.net
 Received: (qmail 51725 invoked from network); 1 Nov 2010 00:37:02
 -
 Authentication-Results: pb1.pair.com 
header.from=tamouse.li...@gmail.com

 ; sender-id=pass; domainkeys=bad
 Authentication-Results: pb1.pair.com
 smtp.mail=tamouse.li...@gmail.com; spf=pass; sender-id=pass
 Received-SPF: pass (pb1.pair.com: domain gmail.com designates
 209.85.214.170 as permitted sender)
 X-DomainKeys: Ecelerity dk_validate implementing draft-delany-
 domainkeys

Re: [PHP] questions about if statements regarding a checkbox

2010-10-31 Thread Ben Brentlinger
Here's the code I'm using with the exception of the php tags and the 
redirect script that redirects to another page once the form is 
submitted.  This is just a test script I'm working on in order to teach 
myself php.  The php portion will be posted first, than the html form 
related to the php.  I've got the code inside tags similar to the code 
tag which only serves to serarate the php code from the html form.


[php_code]
$name = $_POST['firstname'] . ' ' . $_POST['lastname'];
$email = $_POST['email'];

if($_POST['reallife'] == on)
{
$to = 'b...@benbrent.com';
$subject ='test email one';
$msg = $name has filled out the test form. \n .
this is just a test message;
mail ($to, $subject, $msg, 'From:' . $email);

} else {

$to = 'b...@benbrent.com';
$subject ='test email two';
$msg = $name has filled out the test form. ;
mail ($to, $subject, $msg, 'From:' . $email);
}

if($_POST['reallife'] == on) {

$to = '$email';
$subject = Thank you email number one;
$msg = hello $name, \n .
thank you for filling out the form. \n .
This is the first of two test emails \n .
The second would have been sent \n .
if you had left the checkbox unchecked \n;
mail ($to, $subject, $msg, 'From:' . $...@benbrent.com);
}

header (location:thankyoupage)
[/php_code]



[html_code]
div align=center
table border=0
  cellpadding=3 cellspacing=0 width=59%
tr
td colspan=2
h2 align=centernbsp;/h2
h2 align=centerfont color=blue face=ArialContact Form/font/h2
p align=centernbsp;/p
td width=51% align=right
p align=leftfont face=ArialEmail/fontfont face=Times New 
Roman:/fontfont face=Arial /font/td

td width=49% align=leftinput type=text name=email size=20/td
/tr

tr
td width=51% align=right
p align=leftfont face=ArialFirst Name: /font/td
td width=49% align=leftinput type=text name=firstname 
size=20/td

/tr
tr
td width=51% align=right
p align=leftfont face=ArialLast Name: /font/td
td width=49% align=leftinput type=text name=lastname 
size=20/td

/tr
tr
td width=51% align=right
p align=leftfont face=ArialI know you in real life/font/td
td width=49% align=leftinput type=checkbox name=reallife 
size=20/td

/tr
/table
pinput type=submit value=contact me
  name=B1/p

/center/div
/form
/td
tdnbsp;/td
/tr
/table
[/html_code]


This actual code that is on the portion of my hosting account which I 
use as my test server.  In my opinion, it's much cheaper to pay for a 
hosting account to use as a test server to teach myself php than it is 
to pay some collage professor to teach it to you only to be slapped in 
the face by having him assume you're learning php to be a freelance 
coder working for a company that does freelance work.  The truth is, I 
only have an interest in learning php to use in my own business and when 
I get good enough, I may do some freelancing on the side on sites like 
Scriptlance, but my main focus will be my own business and for anyone to 
have the audacity that I plan on working for someone else my whole life 
pisses me off, so that's why I'd much rather teach myself than to take a 
college class on php.


Thanks,

Ben

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] questions about if statements regarding a checkbox

2010-10-31 Thread Ben Brentlinger
thanks for your help.  I just retested my code and even though it didn't 
work, I found the reason it wasn't working was because I had an unneeded 
space between the if and the rest of the if statement.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] questions about if statements regarding a checkbox

2010-10-31 Thread Ben Brentlinger
Also, as far as the form is concerned, I actually did have the form in a 
separate .htm file, I just put the two together, separating them with 
the those tags to make them easier to read in the email.


On 10/31/2010 10:36, ad...@buskirkgraphics.com wrote:

I tested your code and besides adding a form to the beginning it works.

If you want to see the results of the posted for try.

print_r($_POST);

you can see every position of the array passed and validate they are passing as 
intended.

Try this.

//if reallife is not set (Checked it will not pass)
// I am pretty sure I read where someone had responded with the isset


if(isset($_POST['reallife']))
{

print_r($_POST);

}



Richard L. Buskirk


-Original Message-
From: Ben Brentlinger [mailto:b...@benbrent.com]
Sent: Sunday, October 31, 2010 8:26 AM
To: php-general@lists.php.net
Subject: Re: [PHP] questions about if statements regarding a checkbox

Here's the code I'm using with the exception of the php tags and the
redirect script that redirects to another page once the form is
submitted.  This is just a test script I'm working on in order to teach
myself php.  The php portion will be posted first, than the html form
related to the php.  I've got the code inside tags similar to the code
tag which only serves to serarate the php code from the html form.

[php_code]
$name = $_POST['firstname'] . ' ' . $_POST['lastname'];
$email = $_POST['email'];

if($_POST['reallife'] == on)
{
$to = 'b...@benbrent.com';
$subject ='test email one';
$msg = $name has filled out the test form. \n .
this is just a test message;
mail ($to, $subject, $msg, 'From:' . $email);

} else {

$to = 'b...@benbrent.com';
$subject ='test email two';
$msg = $name has filled out the test form. ;
mail ($to, $subject, $msg, 'From:' . $email);
}

if($_POST['reallife'] == on) {

$to = '$email';
$subject = Thank you email number one;
$msg = hello $name, \n .
thank you for filling out the form. \n .
This is the first of two test emails \n .
The second would have been sent \n .
if you had left the checkbox unchecked \n;
mail ($to, $subject, $msg, 'From:' . $...@benbrent.com);
}

header (location:thankyoupage)
[/php_code]



[html_code]
div align=center
table border=0
cellpadding=3 cellspacing=0 width=59%
tr
td colspan=2
h2 align=centernbsp;/h2
h2 align=centerfont color=blue face=ArialContact Form/font/h2
p align=centernbsp;/p
td width=51% align=right
p align=leftfont face=ArialEmail/fontfont face=Times New
Roman:/fontfont face=Arial  /font/td
td width=49% align=leftinput type=text name=email size=20/td
/tr

tr
td width=51% align=right
p align=leftfont face=ArialFirst Name:/font/td
td width=49% align=leftinput type=text name=firstname
size=20/td
/tr
tr
td width=51% align=right
p align=leftfont face=ArialLast Name:/font/td
td width=49% align=leftinput type=text name=lastname
size=20/td
/tr
tr
td width=51% align=right
p align=leftfont face=ArialI know you in real life/font/td
td width=49% align=leftinput type=checkbox name=reallife
size=20/td
/tr
/table
pinput type=submit value=contact me
name=B1/p

/center/div
/form
/td
tdnbsp;/td
/tr
/table
[/html_code]


This actual code that is on the portion of my hosting account which I
use as my test server.  In my opinion, it's much cheaper to pay for a
hosting account to use as a test server to teach myself php than it is
to pay some collage professor to teach it to you only to be slapped in
the face by having him assume you're learning php to be a freelance
coder working for a company that does freelance work.  The truth is, I
only have an interest in learning php to use in my own business and when
I get good enough, I may do some freelancing on the side on sites like
Scriptlance, but my main focus will be my own business and for anyone to
have the audacity that I plan on working for someone else my whole life
pisses me off, so that's why I'd much rather teach myself than to take a
college class on php.

Thanks,

Ben



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] questions about if statements regarding a checkbox

2010-10-30 Thread Ben Brentlinger

hello,

I'd like to know the proper code to use in a php script that processes a 
form with a checkbox in order to send one email if the checkbox has been 
checked and another email if the checkbox hasn't.  I tried if($check == 
true) and I tried putting the word true in double quotes, and both of 
them caused the unexpected variable syntax error.  The only problem 
is, all I could think to use was that line of code I just used, I'm not 
sure what the proper syntax is for checkbox when using the if statement 
to send one email when the checkbox is checked and a different email 
when it's not checked.  I'm wanting to send an email to the site admin 
with the information given by the person who filled out the form that 
contains the checkbox.



Thanks,

Ben

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] questions about if statements regarding a checkbox

2010-10-30 Thread Ben Brentlinger
I tried that, but I'm getting the syntax error that says unexpected 
T_IF.  Probably because I'm trying to process this information directly 
in an email rather letting a mysql database handle the data, which I 
find harder to set up when writing a script from scratch than it would 
be to code a php script to send the data in an email.


On 10/30/2010 22:28, ad...@buskirkgraphics.com wrote:


input type=checkbox name=test

If check it will submit the value of 'on'

So

If($_POST['test'] == on')
{
Do this
}else{
Do this
}


Richard L. Buskirk


-Original Message-
From: Ben Brentlinger [mailto:b...@benbrent.com]
Sent: Saturday, October 30, 2010 10:05 PM
To: php-general@lists.php.net
Subject: [PHP] questions about if statements regarding a checkbox

hello,

I'd like to know the proper code to use in a php script that processes a
form with a checkbox in order to send one email if the checkbox has been
checked and another email if the checkbox hasn't.  I tried if($check ==
true) and I tried putting the word true in double quotes, and both of
them caused the unexpected variable syntax error.  The only problem
is, all I could think to use was that line of code I just used, I'm not
sure what the proper syntax is for checkbox when using the if statement
to send one email when the checkbox is checked and a different email
when it's not checked.  I'm wanting to send an email to the site admin
with the information given by the person who filled out the form that
contains the checkbox.


Thanks,

Ben



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php