Re: [PHP] E-mail injection question

2010-11-21 Thread Adam Richardson
On Sun, Nov 21, 2010 at 12:02 PM, Gary gp...@paulgdesigns.com wrote:

 I have been testing various scripts to kill email injection attacks.  I
 adapted this script and it seems to work well.  Does anyone see any issues
 with this?

 ?php
 $newlinecounter = 0;
 foreach($_POST as $key = $val_newline){
 if(stristr($val_newline, '\r')){$newlinecounter++;}
 if(stristr($val_newline, '\n')){$newlinecounter++;}
 if(stristr($val_newline, '\\r')){$newlinecounter++;}
 if(stristr($val_newline, '\\n')){$newlinecounter++;}
 if(stristr($val_newline, '\r\n')){$newlinecounter++;}
 if(stristr($val_newline, '\\r\\n')){$newlinecounter++;}
 if(stristr($val_newline, 'Bcc')){$newlinecounter++;}
 }
 if ($newlinecounter = 1){ die('die scum die');
 }

 ?

 Thank you,
 Gary


Hi Gary,

There are issues with this approach (one being that checking all POST fields
non-discriminately will lead to false positives, as the body/message of an
email can contain new line characters without issue.)

I'd suggest using Zend's Email capabilities.  You just upload the framework
to your site, add it to your include path, and then you can even use SMTP
email capabilities through an account such as gmail or another email
provider, which is much better than using the general mail() function,
anyway.  And, you have all the security benefits.

Here's a link to Zend's Mail class documentation:
http://framework.zend.com/manual/en/zend.mail.html

Adam

-- 
Nephtali:  PHP web framework that functions beautifully
http://nephtaliproject.com


Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-29 Thread Simon
The SMTP or POP3 protocol (cant remember which) used to support the
ability to connect to the server and verify if a username exists
before delivering the mail.  But this feature was abused and was used
for spamming so it is now disabled on all major servers (it's probably
disabled by default in all servers anyway).

There is no way to verify (without sending an email) if the email will
be received in a mailbox.

Simon

On Tue, Apr 28, 2009 at 11:40 AM, Jay Blanchard jblanch...@pocket.com wrote:
 Our company wants to do e-mail verification and does not want to use the
 requests / response method (clicking a link in the e-mail to verify the
 address), which as we all know is the only way you can be truly sure. I
 found this;

 http://verify-email.org/

 Which seems to be the next best deal and it is written in PHP. Has
 anyone used this? Is anyone doing something similar? How do you handle
 errors? I know that some domains will not accept these requests.

 I think that this method would really work for us and cut down on the
 bogus e-mail addresses we're receiving though. Thoughts?

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



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



RE: [PHP] E-Mail Verification - Yes, I know....

2009-04-29 Thread Bob McConnell
From: Simon
 
 There is no way to verify (without sending an email) if the email will
 be received in a mailbox.

Even that is not a valid test. Most spam filters will discard messages
silently, that is without notifying either sender or recipient. So the
only real verification is when you receive an actual reply from the
recipient.

Bob McConnell

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



Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Stuart
2009/4/28 Jay Blanchard jblanch...@pocket.com:
 Our company wants to do e-mail verification and does not want to use the
 requests / response method (clicking a link in the e-mail to verify the
 address), which as we all know is the only way you can be truly sure. I
 found this;

 http://verify-email.org/

 Which seems to be the next best deal and it is written in PHP. Has
 anyone used this? Is anyone doing something similar? How do you handle
 errors? I know that some domains will not accept these requests.

 I think that this method would really work for us and cut down on the
 bogus e-mail addresses we're receiving though. Thoughts?

Been there, tried that, got blacklisted pretty quickly by most major
ISPs and email providers.

In short do this only if you have a very limited number of accounts,
and only if you can afford to have your IP blacklisted should you hit
individual mail server limits.

Or, to put it another way, don't do it.

There are reasons why the VRFY SMTP command is not implemented by most
servers. Firstly it reveals too much information. Secondly it wastes
server resources. Same goes for this method of checking an address.

Question is why don't you want to ask the user to confirm their email
address? It's a pretty standard requirement these days that most users
are familiar with. I can't think of a single reason why any company
would want to avoid it.

-Stuart

-- 
http://stut.net/

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



Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Daniel Brown
On Tue, Apr 28, 2009 at 11:40, Jay Blanchard jblanch...@pocket.com wrote:
 Our company wants to do e-mail verification and does not want to use the
 requests / response method (clicking a link in the e-mail to verify the
 address), which as we all know is the only way you can be truly sure. I
 found this;

 http://verify-email.org/

It apparently requires the www. CNAME to access it via the web.

 Which seems to be the next best deal and it is written in PHP. Has
 anyone used this? Is anyone doing something similar? How do you handle
 errors? I know that some domains will not accept these requests.

 I think that this method would really work for us and cut down on the
 bogus e-mail addresses we're receiving though. Thoughts?

If it has a good CAPTCHA mechanism in place, maybe.  Otherwise,
it's not too difficult to write a parser to read bounces and
auto-click the link (and even attempt to pass or bypass a challenge).

-- 
/Daniel P. Brown
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1

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



Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Daniel Brown
Top-posting on top of it all.  Disregard *everything* from my
previous email.  I typed it up before checking out the site, since it
wouldn't work from this system when hit without the alias.  Then, when
I did hit it and read it, I meant to click Discard and clicked
Send.

#...@%.



On Tue, Apr 28, 2009 at 11:50, Daniel Brown danbr...@php.net wrote:
 On Tue, Apr 28, 2009 at 11:40, Jay Blanchard jblanch...@pocket.com wrote:
 Our company wants to do e-mail verification and does not want to use the
 requests / response method (clicking a link in the e-mail to verify the
 address), which as we all know is the only way you can be truly sure. I
 found this;

 http://verify-email.org/

    It apparently requires the www. CNAME to access it via the web.

 Which seems to be the next best deal and it is written in PHP. Has
 anyone used this? Is anyone doing something similar? How do you handle
 errors? I know that some domains will not accept these requests.

 I think that this method would really work for us and cut down on the
 bogus e-mail addresses we're receiving though. Thoughts?

    If it has a good CAPTCHA mechanism in place, maybe.  Otherwise,
 it's not too difficult to write a parser to read bounces and
 auto-click the link (and even attempt to pass or bypass a challenge).

 --
 /Daniel P. Brown
 daniel.br...@parasane.net || danbr...@php.net
 http://www.parasane.net/ || http://www.pilotpig.net/
 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1




-- 
/Daniel P. Brown
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1

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



Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Stuart
Btw, if you're thinking of buying it lemme know - I probably have mine
kicking around somewhere.

2009/4/28 Jay Blanchard jblanch...@pocket.com:
 Our company wants to do e-mail verification and does not want to use the
 requests / response method (clicking a link in the e-mail to verify the
 address), which as we all know is the only way you can be truly sure. I
 found this;

 http://verify-email.org/

 Which seems to be the next best deal and it is written in PHP. Has
 anyone used this? Is anyone doing something similar? How do you handle
 errors? I know that some domains will not accept these requests.

 I think that this method would really work for us and cut down on the
 bogus e-mail addresses we're receiving though. Thoughts?

-Stuart

-- 
http://stut.net/

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



Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Jan G.B.
2009/4/28 Jay Blanchard jblanch...@pocket.com:
 Our company wants to do e-mail verification and does not want to use the
 requests / response method (clicking a link in the e-mail to verify the
 address), which as we all know is the only way you can be truly sure. I
 found this;

 http://verify-email.org/

 Which seems to be the next best deal and it is written in PHP. Has
 anyone used this? Is anyone doing something similar? How do you handle
 errors? I know that some domains will not accept these requests.


They don't even detect greylisting!



 I think that this method would really work for us and cut down on the
 bogus e-mail addresses we're receiving though. Thoughts?


There's just one way: let the users confirm with an activation link.
People often insert their addresses wrong without noticing it..
example: www.myal...@mydomain.org instead of myal...@mydomain.org,
aol.DE|UK|NL|FR|etc instead of aol.com and so on.

So ... nothing like insert your mail twice or re-check your address
please actually works. ;)

On the other hand: Douple-opt-In is quite like an industry standard -
why wouldn't your firm use it? It makes customers happy as well as
not-customers because people can't use their addressess to sign-up.
I hate getting other peoples email.


byebye

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



Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Per Jessen
Stuart wrote:

 2009/4/28 Jay Blanchard jblanch...@pocket.com:
 Our company wants to do e-mail verification and does not want to use
 the requests / response method (clicking a link in the e-mail to
 verify the address), which as we all know is the only way you can be
 truly sure. I found this;

 http://verify-email.org/

 Which seems to be the next best deal and it is written in PHP. Has
 anyone used this? Is anyone doing something similar? How do you
 handle errors? I know that some domains will not accept these
 requests.

 I think that this method would really work for us and cut down on the
 bogus e-mail addresses we're receiving though. Thoughts?
 
 Been there, tried that, got blacklisted pretty quickly by most major
 ISPs and email providers.
 
 In short do this only if you have a very limited number of accounts,
 and only if you can afford to have your IP blacklisted should you hit
 individual mail server limits.
 
 Or, to put it another way, don't do it.
 
 There are reasons why the VRFY SMTP command is not implemented by most
 servers. 

verify-email.org doesn't use VRFY anyway.  It just starts an
SMTP-conversation, but terminates after RCPT TO.

/Per


-- 
Per Jessen, Zürich (8.2°C)


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



Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Luke
2009/4/28 Jan G.B. ro0ot.w...@googlemail.com

 2009/4/28 Jay Blanchard jblanch...@pocket.com:
  Our company wants to do e-mail verification and does not want to use the
  requests / response method (clicking a link in the e-mail to verify the
  address), which as we all know is the only way you can be truly sure. I
  found this;
 
  http://verify-email.org/
 
  Which seems to be the next best deal and it is written in PHP. Has
  anyone used this? Is anyone doing something similar? How do you handle
  errors? I know that some domains will not accept these requests.
 

 They don't even detect greylisting!



  I think that this method would really work for us and cut down on the
  bogus e-mail addresses we're receiving though. Thoughts?
 

 There's just one way: let the users confirm with an activation link.
 People often insert their addresses wrong without noticing it..
 example: www.myal...@mydomain.org instead of myal...@mydomain.org,
 aol.DE|UK|NL|FR|etc instead of aol.com and so on.

 So ... nothing like insert your mail twice or re-check your address
 please actually works. ;)

 On the other hand: Douple-opt-In is quite like an industry standard -
 why wouldn't your firm use it? It makes customers happy as well as
 not-customers because people can't use their addressess to sign-up.
 I hate getting other peoples email.


 byebye

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


/**
Validate an email address.
Provide email address (raw input)
Returns true if the email address has the email
address format and the domain exists.

Modified: 06/06/2003
**/
function validEmail($email)
{
   $isValid = true;
   $atIndex = strrpos($email, @);
   if (is_bool($atIndex)  !$atIndex)
   {
  $isValid = false;
   }
   else
   {
  $domain = substr($email, $atIndex+1);
  $local = substr($email, 0, $atIndex);
  $localLen = strlen($local);
  $domainLen = strlen($domain);
  if ($localLen  1 || $localLen  64)
  {
 // local part length exceeded
 $isValid = false;
  }
  else if ($domainLen  1 || $domainLen  255)
  {
// domain part length exceeded
$isValid = false;
  }
  else if ($local[0] == '.' || $local[$localLen-1] == '.')
  {
// local part starts or ends with '.'
 $isValid = false;
  }
  else if (preg_match('/\\.\\./', $local))
  {
// local part has two consecutive dots
 $isValid = false;
  }
  else if (!preg_match('/^[A-Za-z0-9\\-\\.]+$/', $domain))
  {
// character not valid in domain part
 $isValid = false;
  }
  else if (preg_match('/\\.\\./', $domain))
  {
// domain part has two consecutive dots
 $isValid = false;
  }
  else if
(!preg_match('/^(.|[A-Za-z0-9!#%`_=\\/$\'*+?^{}|~.-])+$/',
str_replace(,,$local)))
  {
// character not valid in local part unless
// local part is quoted
 if (!preg_match('/^(|[^])+$/',
str_replace(,,$local)))
 {
$isValid = false;
 }
  }

if ($isValid  !(checkdnsrr($domain,MX) ||
checkdnsrr($domain,A)))
  {
// domain not found in DNS
 $isValid = false;
  }
   }

   return $isValid;
}


-- 
Luke Slater
http://dinosaur-os.com/
:O)


Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Hawx

On Tue, 28 Apr 2009 10:40:31 -0500, Jay Blanchard jblanch...@pocket.com
wrote:
 Our company wants to do e-mail verification and does not want to use the
 requests / response method (clicking a link in the e-mail to verify the
 address), which as we all know is the only way you can be truly sure. I
 found this;
 
 http://verify-email.org/
 
 Which seems to be the next best deal and it is written in PHP. Has
 anyone used this? Is anyone doing something similar? How do you handle
 errors? I know that some domains will not accept these requests.
 
 I think that this method would really work for us and cut down on the
 bogus e-mail addresses we're receiving though. Thoughts?

Just tested this with two of my mailservers and it is not reliable. One
server does say that a mailbox/alias exists while the other doesn't do this
to protect against address harvesting.

However, you could use it in combination with other methods like sending a
confirmation code with a link, a better captcha check like balancing
rotated photos or recognizing objects, MX and SPF records check (if
available) and match against public black/graylists. Define a score for
each method, when the total score gets above a certain threshold you flag
it as invalid.

-- 
Hawx

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



Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Jan G.B.
2009/4/28 Luke l...@blog-thing.com:


 2009/4/28 Jan G.B. ro0ot.w...@googlemail.com

 2009/4/28 Jay Blanchard jblanch...@pocket.com:
  Our company wants to do e-mail verification and does not want to use the
  requests / response method (clicking a link in the e-mail to verify the
  address), which as we all know is the only way you can be truly sure. I
  found this;
 
  http://verify-email.org/
 
  Which seems to be the next best deal and it is written in PHP. Has
  anyone used this? Is anyone doing something similar? How do you handle
  errors? I know that some domains will not accept these requests.
 

 They don't even detect greylisting!



  I think that this method would really work for us and cut down on the
  bogus e-mail addresses we're receiving though. Thoughts?
 

 There's just one way: let the users confirm with an activation link.
 People often insert their addresses wrong without noticing it..
 example: www.myal...@mydomain.org instead of myal...@mydomain.org,
 aol.DE|UK|NL|FR|etc instead of aol.com and so on.

 So ... nothing like insert your mail twice or re-check your address
 please actually works. ;)

 On the other hand: Douple-opt-In is quite like an industry standard -
 why wouldn't your firm use it? It makes customers happy as well as
 not-customers because people can't use their addressess to sign-up.
 I hate getting other peoples email.


 byebye

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


     /**
     Validate an email address.
     Provide email address (raw input)
     Returns true if the email address has the email
     address format and the domain exists.

     Modified: 06/06/2003
     **/
     function validEmail($email)
     {
            $isValid = true;
            $atIndex = strrpos($email, @);
            if (is_bool($atIndex)  !$atIndex)
            {
               $isValid = false;
            }
            else
            {
               $domain = substr($email, $atIndex+1);
               $local = substr($email, 0, $atIndex);
               $localLen = strlen($local);
               $domainLen = strlen($domain);
               if ($localLen  1 || $localLen  64)
               {
              // local part length exceeded
              $isValid = false;
               }
               else if ($domainLen  1 || $domainLen  255)
               {
                 // domain part length exceeded
                 $isValid = false;
               }
               else if ($local[0] == '.' || $local[$localLen-1] == '.')
               {
                 // local part starts or ends with '.'
              $isValid = false;
               }
               else if (preg_match('/\\.\\./', $local))
               {
                 // local part has two consecutive dots
              $isValid = false;
               }
               else if (!preg_match('/^[A-Za-z0-9\\-\\.]+$/', $domain))
               {
                 // character not valid in domain part
              $isValid = false;
               }
               else if (preg_match('/\\.\\./', $domain))
               {
                 // domain part has two consecutive dots
              $isValid = false;
               }
               else if
 (!preg_match('/^(.|[A-Za-z0-9!#%`_=\\/$\'*+?^{}|~.-])+$/',
 str_replace(,,$local)))
               {
                 // character not valid in local part unless
                 // local part is quoted
              if (!preg_match('/^(|[^])+$/',
 str_replace(,,$local)))
              {
                     $isValid = false;
              }
               }

             if ($isValid  !(checkdnsrr($domain,MX) ||
 checkdnsrr($domain,A)))
               {
                 // domain not found in DNS
              $isValid = false;
               }
            }

        return $isValid;
     }


 --
 Luke Slater

I Like the approach of checking the DNS.

But all that regexp matching could be skipped when using
filter_input() or filter_var() with the Filter FILTER_VALIDATE_EMAIL -
or am I wrong?

I'm using the filter in combination with a domain checker which
basically checks for a valid TLD on a high traffic website with great
success - so far.


byebye

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



Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Luke
2009/4/28 Jan G.B. ro0ot.w...@googlemail.com

 2009/4/28 Luke l...@blog-thing.com:
 
 
  2009/4/28 Jan G.B. ro0ot.w...@googlemail.com
 
  2009/4/28 Jay Blanchard jblanch...@pocket.com:
   Our company wants to do e-mail verification and does not want to use
 the
   requests / response method (clicking a link in the e-mail to verify
 the
   address), which as we all know is the only way you can be truly sure.
 I
   found this;
  
   http://verify-email.org/
  
   Which seems to be the next best deal and it is written in PHP. Has
   anyone used this? Is anyone doing something similar? How do you handle
   errors? I know that some domains will not accept these requests.
  
 
  They don't even detect greylisting!
 
 
 
   I think that this method would really work for us and cut down on the
   bogus e-mail addresses we're receiving though. Thoughts?
  
 
  There's just one way: let the users confirm with an activation link.
  People often insert their addresses wrong without noticing it..
  example: www.myal...@mydomain.org instead of myal...@mydomain.org,
  aol.DE|UK|NL|FR|etc instead of aol.com and so on.
 
  So ... nothing like insert your mail twice or re-check your address
  please actually works. ;)
 
  On the other hand: Douple-opt-In is quite like an industry standard -
  why wouldn't your firm use it? It makes customers happy as well as
  not-customers because people can't use their addressess to sign-up.
  I hate getting other peoples email.
 
 
  byebye
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
  /**
  Validate an email address.
  Provide email address (raw input)
  Returns true if the email address has the email
  address format and the domain exists.
 
  Modified: 06/06/2003
  **/
  function validEmail($email)
  {
 $isValid = true;
 $atIndex = strrpos($email, @);
 if (is_bool($atIndex)  !$atIndex)
 {
$isValid = false;
 }
 else
 {
$domain = substr($email, $atIndex+1);
$local = substr($email, 0, $atIndex);
$localLen = strlen($local);
$domainLen = strlen($domain);
if ($localLen  1 || $localLen  64)
{
   // local part length exceeded
   $isValid = false;
}
else if ($domainLen  1 || $domainLen  255)
{
  // domain part length exceeded
  $isValid = false;
}
else if ($local[0] == '.' || $local[$localLen-1] ==
 '.')
{
  // local part starts or ends with '.'
   $isValid = false;
}
else if (preg_match('/\\.\\./', $local))
{
  // local part has two consecutive dots
   $isValid = false;
}
else if (!preg_match('/^[A-Za-z0-9\\-\\.]+$/',
 $domain))
{
  // character not valid in domain part
   $isValid = false;
}
else if (preg_match('/\\.\\./', $domain))
{
  // domain part has two consecutive dots
   $isValid = false;
}
else if
  (!preg_match('/^(.|[A-Za-z0-9!#%`_=\\/$\'*+?^{}|~.-])+$/',
  str_replace(,,$local)))
{
  // character not valid in local part unless
  // local part is quoted
   if (!preg_match('/^(|[^])+$/',
  str_replace(,,$local)))
   {
  $isValid = false;
   }
}
 
  if ($isValid  !(checkdnsrr($domain,MX) ||
  checkdnsrr($domain,A)))
{
  // domain not found in DNS
   $isValid = false;
}
 }
 
 return $isValid;
  }
 
 
  --
  Luke Slater

 I Like the approach of checking the DNS.

 But all that regexp matching could be skipped when using
 filter_input() or filter_var() with the Filter FILTER_VALIDATE_EMAIL -
 or am I wrong?

 I'm using the filter in combination with a domain checker which
 basically checks for a valid TLD on a high traffic website with great
 success - so far.


 byebye

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


That's very possible, the reason for that not being in there I think is down
to the fact that the code is so old.

It would certainly simplify the code using filter_input();

Anyway, I think this kind of approach is probably 

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Stuart
2009/4/28 Per Jessen p...@computer.org:
 Stuart wrote:

 2009/4/28 Jay Blanchard jblanch...@pocket.com:
 Our company wants to do e-mail verification and does not want to use
 the requests / response method (clicking a link in the e-mail to
 verify the address), which as we all know is the only way you can be
 truly sure. I found this;

 http://verify-email.org/

 Which seems to be the next best deal and it is written in PHP. Has
 anyone used this? Is anyone doing something similar? How do you
 handle errors? I know that some domains will not accept these
 requests.

 I think that this method would really work for us and cut down on the
 bogus e-mail addresses we're receiving though. Thoughts?

 Been there, tried that, got blacklisted pretty quickly by most major
 ISPs and email providers.

 In short do this only if you have a very limited number of accounts,
 and only if you can afford to have your IP blacklisted should you hit
 individual mail server limits.

 Or, to put it another way, don't do it.

 There are reasons why the VRFY SMTP command is not implemented by most
 servers.

 verify-email.org doesn't use VRFY anyway.  It just starts an
 SMTP-conversation, but terminates after RCPT TO.

I never said they did. I compared use of that method to the VRFY
command in an effort to explain why mail servers detect and block IPs
that make repeated connections but don't actually send anything.

To fully quote the paragraph you cut off...

There are reasons why the VRFY SMTP command is not implemented by
most servers. Firstly it reveals too much information. Secondly it
wastes server resources. Same goes for this method of checking an
address.

Pay special attention to the last sentence.

-Stuart

-- 
http://stut.net/

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



Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Manuel Lemos
on 02/17/2009 03:44 AM Edmund Hertle said the following:
 2009/2/16 Richard Heyes rich...@php.net
 
 I'm already using pear Mail_Mime.
 [Ducks and runs off]

 --
 Richard Heyes

 HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
 http://www.rgraph.org (Updated February 14th)

 
 Can someone explain to me why pear mail_mime is not a good idea to use? I
 noticed some comments like that a few times but no explanation

The PHP world is very pragmatic. If it works for you, it should be good
enough. Otherwise, you may need to look for something else.

-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

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



Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Richard Heyes
 The *other* white meat?

Sorry, no idea what that means.

-- 
Richard Heyes

HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.org (Updated February 14th)

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



Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Paul Scott

On Tue, 2009-02-17 at 10:30 +, Richard Heyes wrote:
  The *other* white meat?
 
 Sorry, no idea what that means.
 

Cats are the other white meat. Sorry have flu, may be delirious

-- Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 

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

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Paul Scott

On Tue, 2009-02-17 at 10:19 +, Richard Heyes wrote:
 There's no reason not to use it - it works for a good many people. And
 a few cats too.

The *other* white meat?

-- Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 

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

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Richard Heyes
 Can someone explain to me why pear mail_mime is not a good idea to use? I
 noticed some comments like that a few times but no explanation

There's no reason not to use it - it works for a good many people. And
a few cats too.

-- 
Richard Heyes

HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.org (Updated February 14th)

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



Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Richard Heyes
 Cats are the other white meat. Sorry have flu, may be delirious

You haven't been around any birds recently have you?

-- 
(A concerned) Richard Heyes

HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.org (Updated February 14th)

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



Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Bastien Koert
On Tue, Feb 17, 2009 at 7:28 AM, Richard Heyes rich...@php.net wrote:

  Cats are the other white meat. Sorry have flu, may be delirious

 You haven't been around any birds recently have you?

 --
 (A concerned) Richard Heyes

 HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
 http://www.rgraph.org (Updated February 14th)

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


Never met a pussy I didn't like :-P

-- 

Bastien

Cat, the other other white meat


Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Richard Heyes
Hi,

 my problem is that I send an e-mail with an attachment (pdf file). I get the
 filename out of a mysql table. While using echo or downloading the file, the
 filename is showed as expected but as an attachment it is not properly
 encoded:
 Should be: PC-Beschaffung 2008 (nur für Lehre)
 Will be: US-ASCII''PC-Beschaffung%202008%20(nur%20f%C3%BCr%20Lehre)

 I think I have to encode the file name and already tried utf8encode but this
 didn't help.

This may help:

http://www.phpguru.org/static/mime.mail.html

-- 
Richard Heyes

HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.org (Updated February 14th)

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



Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Edmund Hertle
2009/2/16 Richard Heyes rich...@php.net

 Hi,

  my problem is that I send an e-mail with an attachment (pdf file). I get
 the
  filename out of a mysql table. While using echo or downloading the file,
 the
  filename is showed as expected but as an attachment it is not properly
  encoded:
  Should be: PC-Beschaffung 2008 (nur für Lehre)
  Will be: US-ASCII''PC-Beschaffung%202008%20(nur%20f%C3%BCr%20Lehre)
 
  I think I have to encode the file name and already tried utf8encode but
 this
  didn't help.

 This may help:

 http://www.phpguru.org/static/mime.mail.html


Hi.
I'm already using pear Mail_Mime.
-eddy


Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Per Jessen
Edmund Hertle wrote:

 my problem is that I send an e-mail with an attachment (pdf file). I
 get the filename out of a mysql table. While using echo or downloading
 the file, the filename is showed as expected but as an attachment it
 is not properly encoded:
 Should be: PC-Beschaffung 2008 (nur für Lehre)
 Will be: US-ASCII''PC-Beschaffung%202008%20(nur%20f%C3%BCr%20Lehre)
 
 I think I have to encode the file name and already tried utf8encode
 but this didn't help.

I think you need to mime-encode it - mb_encode_mimeheader().  I haven't
tried it with attachments though.


/Per


-- 
Per Jessen, Zürich (0.7°C)


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



Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Carl-Fredrik Gustafsson

Per Jessen schrieb:

Edmund Hertle wrote:


my problem is that I send an e-mail with an attachment (pdf file). I
get the filename out of a mysql table. While using echo or downloading
the file, the filename is showed as expected but as an attachment it
is not properly encoded:
Should be: PC-Beschaffung 2008 (nur für Lehre)
Will be: US-ASCII''PC-Beschaffung%202008%20(nur%20f%C3%BCr%20Lehre)

I think I have to encode the file name and already tried utf8encode
but this didn't help.


I think you need to mime-encode it - mb_encode_mimeheader().  I haven't
tried it with attachments though.


/Per





To me it looks like he only wants the spaces and special-chars in the 
filename to be readable again.
I guess you submit the filename over the url, by doing that it 
automatically gets url-encoded (spaces and special chars are converted 
to entities).
If that's all you want (convert the entities to chars again), you need 
to apply a urldecode() on the filename, then I think you should be fine.


Greets Calle

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



Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Per Jessen
Carl-Fredrik Gustafsson wrote:

 To me it looks like he only wants the spaces and special-chars in the
 filename to be readable again.

Yep, I think so too.  Spaces are no problem, but 8-bit characters need
to be encoded. 


/Per

-- 
Per Jessen, Zürich (1.2°C)


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



Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Richard Heyes
 I'm already using pear Mail_Mime.

[Ducks and runs off]

-- 
Richard Heyes

HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.org (Updated February 14th)

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



Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Edmund Hertle
2009/2/16 Richard Heyes rich...@php.net

  I'm already using pear Mail_Mime.

 [Ducks and runs off]

 --
 Richard Heyes

 HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
 http://www.rgraph.org (Updated February 14th)


Can someone explain to me why pear mail_mime is not a good idea to use? I
noticed some comments like that a few times but no explanation


Re: [PHP] e-mail code

2007-10-26 Thread Jochem Maas
arash moosavi wrote:
 First: how can I write php code that alert me when I have new mail?
 such as Gmail

first you read lots about php and programming, whilst your doing that
you you try out lots of code to see what it does ... eventually your
understanding gets to a level where you are capable of writing some code
to do something you want.

easy really.

this mailing list is not here to turn whatever idea you happen
to have today into working code.

 
 Second:Where can I find libgmailer sample code?

google for libgmailer

 for example reading new mail or sending mail and more..
 
 Thank You
 

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



Re: [PHP] E-Mail Filter/Parser

2006-01-25 Thread Sascha Braun - immosky AG
But how can i get the next key in a foreach loop?

Can't see how i can use a continue statement in that circumstance?

Am Mittwoch, den 25.01.2006, 11:28 +0200 schrieb Geoff:
 Possibly the continue statement would help you?
 
 Geoff.
 
 
 On 25 Jan 2006 at 10:12, Sascha Braun - immosky AG wrote:
 
  Hi,
  
  I started to write an E-Mail Parser so E-Mails from different Internet
  Plattforms can be sorted automatically into an customer database.
  
  Everything is working pretty fine, but only if all expected fields
  appear in the Mail from the sending plattform.
  
  But sometimes the Mails send out by a plattform doesnt contain all
  fields the filter expects. And i dont know how to write the foreach
  loop I am using to walk over the current field to check if the start
  element of the next needed field occours so the parsing for the needed
  element can stop somewhere and start reading the next field element.
  
  A Filter looks like that, at the moment:
  
  Array
  (
  [attribute] = Array
  (
  [plattform] = plattform.com
  )
  
  [firstname] = Array
  (
  [attribute] = Array
  (
  [read_init] = Name: 
  [read_from] = Name: 
  [read_to] =  
  )
  
  )
  
  [name] = Array
  (
  [attribute] = Array
  (
  [read_init] =  
  [read_from] =  
  [read_to] = Anschrift: 
  )
  
  )
  
  [adress] = Array
  (
  [attribute] = Array
  (
  [read_init] = Anschrift:
  [read_from] = Anschrift:
  [read_to] = ,
  )
  
  )
  
  [plz] = Array
  (
  [attribute] = Array
  (
  [read_init] = ,
  [read_from] = , 
  [read_to] =  
  )
  
  )
  
  [city] = Array
  (
  [attribute] = Array
  (
  [read_init] =  
  [read_from] =  
  [read_to] = E-Mail:
  )
  
  )
  
  [email] = Array
  (
  [attribute] = Array
  (
  [read_init] = E-Mail: 
  [read_from] = E-Mail: 
  [read_to] = Telefon:
  )
  
  )
  
  [phone] = Array
  (
  [attribute] = Array
  (
  [read_init] = Telefon: 
  [read_from] = Telefon: 
  [read_to] = Folgender
  )
  
  )
  
  [comment1] = Array
  (
  [attribute] = Array
  (
  [read_init] = ussert:
  [read_from] = ussert:
  [read_to] = Kommentar: 
  )
  
  )
  
  [comment2] = Array
  (
  [attribute] = Array
  (
  [read_init] = Kommentar: 
  [read_from] = Kommentar: 
  [read_to] = ===
  )
  
  )
  
  [headline] = Array
  (
  [attribute] = Array
  (
  [read_init] = berschrift: 
  [read_from] = berschrift: 
  [read_to] = Anzeige 
  )
  
  )
  
  [object] = Array
  (
  [attribute] = Array
  (
  [read_init] = Objekt Nr: 
  [read_from] = Objekt Nr: 
  [read_to] = )
  )
  
  )
  
  )
  
  And the filter funltion looks like that, at the moment:
  
  private function filter_email($message)
  // Filter upcomming email messages into the immetix database
  {
  
  if (is_dir($this - filter_folder)) {
  
  if ($filters = opendir($this - filter_folder)) {
  
  while(($filter = readdir($filters)) !== false) {
  
  if ($filter != .  $filter != ..) {
  
  $xml = new xml_mm($this - 
  filter_folder.$filter);
  
  if (!empty($xml - 
  email_filter['attribute']['plattform']) 
  substr_count(strtolower($message), $xml -
  email_filter['attribute']['plattform'])) {
  
  unset($xml - 
  email_filter['attribute']);
  

Re: [PHP] E-Mail

2005-09-18 Thread darren kirby
quoth the All PTC:
 Hi,

 Ive recently installed the php script on my website. It all works perfectly
 well except e-mails don't get through. E-mails don't ever get sent to new
 members, and when I try sending messages from my admin section they don't
 send either. Ive set-up the correct e-mail accounts and all details were
 entered correctly when I set-up the database.

 Have you any ideas how I could fix this. Thanks Alot.

 Regards, Chris Satchwell.

Do you have an MTA installed and configured? PHP just passes the mail on...
You also need software to actually transport the mail.

-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972


pgpvlZiWL0lEE.pgp
Description: PGP signature


Re: [PHP] E-mail account disabling warning.

2004-03-19 Thread Rasmus Lerdorf
On Fri, 19 Mar 2004 [EMAIL PROTECTED] wrote:

  Dear user  of  e-mail server  Php.net,
 
  We warn you about some  attacks on  your e-mail account. Your computer
  may contain viruses, in order to keep  your computer and e-mail account
   safe, please,  follow the instructions.
 
  Pay  attention on attached file.
 
  For security purposes the attached file is password  protected.
  Password is 86855.
 
  Have a good day,
 The Php.net team   http://www.php.net

 Wtf, why am i receiving a virus ? Please admins can you prevent this, looks
 generic, add domain to title say its from domain, fuckkers.

We would love to prevent this.  You can help us out.  Here are the steps
we need everyone in the world to take to prevent this from happening:

 1. Everyone needs to stop using Windows
 2. Everyone has to grow a brain

A simple 2-step cure to most of the problems we face today.

-Rasmus

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



Re: [PHP] E-mail account disabling warning.

2004-03-19 Thread Firman Wandayandi
1) +0
2) +1

Firman

- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, March 19, 2004 9:42 PM
Subject: Re: [PHP] E-mail account disabling warning.


 On Fri, 19 Mar 2004 [EMAIL PROTECTED] wrote:

   Dear user  of  e-mail server  Php.net,
  
   We warn you about some  attacks on  your e-mail account. Your computer
   may contain viruses, in order to keep  your computer and e-mail
account
safe, please,  follow the instructions.
  
   Pay  attention on attached file.
  
   For security purposes the attached file is password  protected.
   Password is 86855.
  
   Have a good day,
  The Php.net team   http://www.php.net
 
  Wtf, why am i receiving a virus ? Please admins can you prevent this,
looks
  generic, add domain to title say its from domain, fuckkers.

 We would love to prevent this.  You can help us out.  Here are the steps
 we need everyone in the world to take to prevent this from happening:

  1. Everyone needs to stop using Windows
  2. Everyone has to grow a brain

 A simple 2-step cure to most of the problems we face today.

 -Rasmus

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



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



Re: [PHP] E-mail account disabling warning.

2004-03-18 Thread daniel
 Dear user  of  e-mail server  Php.net,

 We warn you about some  attacks on  your e-mail account. Your computer
 may contain viruses, in order to keep  your computer and e-mail account
  safe, please,  follow the instructions.

 Pay  attention on attached file.

 For security purposes the attached file is password  protected.
 Password is 86855.

 Have a good day,
The Php.net team   http://www.php.net

Wtf, why am i receiving a virus ? Please admins can you prevent this, looks
generic, add domain to title say its from domain, fuckkers.

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



RE: [PHP] E-mail account disabling warning.

2004-03-18 Thread Jeffrey Shaw
There seems to be a lot of these going around.

Remember:

Don't open attachments unless you are sure of what you are getting!

Keep your Virus Scan program up to date.  Any database over 14 days old
should be updated.

Many times, the Headers and addresses of the messages are faked.  This is
easy to do.  So if there is any doubt, send an e-mail to an address listed
at the website the email originates from and ask for more information.

These virus writers are relying on people to unwittingly open their
attachments so they may go through with their evil plans.

Is there any Php.net official on this list that can shed more light on this
please

JL Shaw
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.620 / Virus Database: 399 - Release Date: 3/11/2004

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



RE: [PHP] E-mail account disabling warning.

2004-03-18 Thread Chris W. Parker
Jeffrey Shaw mailto:[EMAIL PROTECTED]
on Thursday, March 18, 2004 3:20 PM said:

 Is there any Php.net official on this list that can shed more light
 on this please

nothing to shed light on really... (unless i've missed something.)

it's not from the people at php.net so your best bet is to just ignore
it.



chris.

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



RE: [PHP] E-mail account disabling warning.

2004-03-18 Thread Ryan A

On 3/19/2004 12:20:17 AM, Jeffrey Shaw ([EMAIL PROTECTED]) wrote:
 There seems to be a lot of these going around.

 Remember:

 Don't open attachments unless you are sure of what you are getting!

 Keep your Virus Scan program up to date.  Any database over 14 days old
 should be updated.

 Many times, the Headers and addresses of the messages are faked.  This is
 easy to do.  So if there is any doubt, send an e-mail to an address listed
 at the website the email originates from and ask for more information.

 These virus writers are relying on people to unwittingly open their
 attachments so they may go through with their evil plans.

 Is there any Php.net official on this list that can shed more light on
this
 please

This is not just from the php.net site, I've gotten this email from a number
of our sites and had to
email all our members informing them not to open any attachments even if it
seems we sent it, if
we require them to download anything it will be AT our site and not
attached.

They ARE getting sneakier arnt they?

-Ryan

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



Re: [PHP] E-mail Gateway

2003-11-18 Thread Henrik Hudson
On Tuesday 18 November 2003 01:21,
Jason Williard [EMAIL PROTECTED] sent a missive stating:

 1) Use a cron job to execute a php script every x minutes.
 2) Create a script where mail can be piped to.  This is a method that I
 have used previously with a cgi app called PerlDesk.

 While I could develop the first option, the second option is the method
 of choice, but I have no clue how to implement that.  Would anyone
 happen to have any suggestions on where to start?  Perhaps, someplace
 where I could go for further research?

Although you could use CLI PHP for this, I would use Perl or even better, C. 
PHP is really meant to run via a web browser and what you're talking about is 
all backend code. Look into playing with procmail and Perl or C.


Henrik
-- 
Henrik Hudson
[EMAIL PROTECTED]

`If there's anything more important than my ego
around, I want it caught and shot now.' 
--Hitchhikers Guide to the Galaxy

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



Re: [PHP] E-mail Gateway

2003-11-18 Thread Jason Wong
On Tuesday 18 November 2003 15:21, Jason Williard wrote:
 I am in the beginning phases of developing a support system.  I would
 like the program to be able to receiving and process e-mails.  However,
 I am at a loss as to where to start.

[snip]

 2) Create a script where mail can be piped to.  This is a method that I
 have used previously with a cgi app called PerlDesk.

 While I could develop the first option, the second option is the method
 of choice, but I have no clue how to implement that.  Would anyone
 happen to have any suggestions on where to start?  Perhaps, someplace
 where I could go for further research?

As usual, if you can think of a question, chances are it has already been 
asked and answered before. So your first port of call is either google or the 
list archives. php process mail would be an obviously good search term.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Money cannot buy love, nor even friendship.
*/

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



Re: [PHP] E-mail Gateway

2003-11-18 Thread Robert Cummings
On Tue, 2003-11-18 at 02:19, Henrik Hudson wrote:
 On Tuesday 18 November 2003 01:21,
 Jason Williard [EMAIL PROTECTED] sent a missive stating:
 
  1) Use a cron job to execute a php script every x minutes.
  2) Create a script where mail can be piped to.  This is a method that I
  have used previously with a cgi app called PerlDesk.
 
  While I could develop the first option, the second option is the method
  of choice, but I have no clue how to implement that.  Would anyone
  happen to have any suggestions on where to start?  Perhaps, someplace
  where I could go for further research?
 
 Although you could use CLI PHP for this, I would use Perl or even better, C. 
 PHP is really meant to run via a web browser and what you're talking about is 
 all backend code. Look into playing with procmail and Perl or C.

Ummm, I've been using PHP for shell based scripts for years now. Are you
telling me all the re-usable power of my InterJinn web scripts is
foolish and that I should recode them as Perl or C? Eeeek, I though the
whole point of CLI was to empower non-web application programming with
PHP.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] E-mail redirection....?

2003-01-10 Thread Marek Kilimajer
Your php scripts (or something else that will be called by your php 
script) needs to modify your smtp server (sendmail, qmail ...) 
configuration files. What needs to be actually done depends on the 
server used, and you should ask at the apropriate mailing list.
If you are on a shared host, I doubt your hosting company will let you 
do it.

Michal Stankoviansky wrote:

Hi

I'm totally confused. What I need is the following:

User registers and I need to create an e-mail alias for him, something 
like [EMAIL PROTECTED] If someone sends an e-mail to the above 
address, I need to redirect it to the user's real e-mail address. I'm 
totally lost...can this be done in PHP?

Thanx for help, please save me :)

Michal




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




Re: [PHP] e-mail

2002-12-26 Thread Paul Roberts
try this

mail($form['recipient'], $form['sublect'],$mailbody, From:Web User 
[EMAIL PROTECTED]');

Best Wishes  Happy New Year

Paul Roberts
[EMAIL PROTECTED]

- Original Message - 
From: Anil Garg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 26, 2002 7:06 PM
Subject: [PHP] e-mail


hi
i found a 'formmail' scripts from somewhere..
the problem isthe email which i get from this scripts has 'unprivilaged
user' in the 'from' field.

mail($form['recipient'], $form['sublect'],$mailbody, From:Web User);

if i use this...in the from field..it says '[EMAIL PROTECTED]'

I just need the from field to show 'Web User' (instead of 'unprivilaged
user')
Can i do this!!
plz help

thanks and regards
anil


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





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




RE: [PHP] e-mail

2002-12-26 Thread James E Hicks III
Maybe you need to add the -f to your sendmail command?

James

-Original Message-
From: Anil Garg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 26, 2002 2:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] e-mail


hi
i found a 'formmail' scripts from somewhere..
the problem isthe email which i get from this scripts has 'unprivilaged
user' in the 'from' field.

mail($form['recipient'], $form['sublect'],$mailbody, From:Web User);

if i use this...in the from field..it says '[EMAIL PROTECTED]'

I just need the from field to show 'Web User' (instead of 'unprivilaged
user')
Can i do this!!
plz help

thanks and regards
anil


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


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




Re: [PHP] e-mail to mysql database?

2002-08-12 Thread Justin French

YOu need to contact your host first.  What you need is for the server to
detect emails coming into a certain address, or with a certain subject line,
and pass them over to a free-standing (ie not a browser-run) PHP script.

The trick will NOT be the parsing of the text and inserting it into the DB,
the trick be getting the email piped into the PHP script -- and this is very
dependent on which server/mail/OS they're running.


Justin French




on 12/08/02 11:36 PM, Frank Schellenberg ([EMAIL PROTECTED]) wrote:

 In Short: What I need is a php script that reads an email file and split its
 data to a mysql file.
 A bit longer if you are still interested
 
 For the following project:
 http://www.crossing-africa.com, a journey I am going to make on a bike.
 What are the plans:
 
 I am taking a satilite phone and SMS my possition with GPS coordinates like:
 N50.34.234 E006.45.34 on 23-feb-2003
 I already have a script that translates that sms to an e-mail that looks the
 same.
 Then what:
 This e-mail needs to be split up like this:
 N50.34.234
 E006.45.34
 23-feb-2003
 and then be insterted into a mysql database.
 The result then is that my exact location is know everyday and will be
 plotted on the web.
 
 The website runs on a cobalt server
 
 As my php knowledge is very limited and I searched the web for a script to
 do so I havent found it, could any of you help, as it must be out there!
 Thanks for any helpfull contribution.
 
 Frank Schellenberg
 
 


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




RE: [PHP] E-mail Confirmation script?

2002-05-12 Thread SP

I would suggest just sending them an email with a
link like this and telling them to click on it to
confirm their membership.

http://www.mysite.com/confirm.php?uniqueid=2i3k238
s9sd0s99d

The confirm.php page would look up the uniqueid
and try to find it in your database.  If it's
there then that means the email address they gave
you exists and they have access to that email
account cuz they know that uniqueid.

After confirming, you could send a welcome user
email and include another link that they can use
for all other account management like
unsubscribing, changing password, changing
personal info ...

http://www.mysite.com/account.php




-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: May 12, 2002 4:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] E-mail Confirmation script?


I've looked about for an 'Email Confirmation'
script that many sites use for
verifcation of wannabee new members. That is, the
person subscribes, is sent
a 'confirmation' number to which they must have in
the 'Subject' area of
their reply.

I would like to implement this on my site, but I
haven't discovered a source
for a script, or how to go about doing it. That
is, how do you retrieve items
from an incoming e-mail, and is it possible to
parse the same?

If anyone who has seen such a script could point
me to where I could find
one, I would greatly appreciate it, or in the
Manual, what it would be listed
under. The 'mail()' function doesn't seem to
include how to access received
e-mails, and to parse individual copmponents of a
message.

Btw, does anyone know what's up with the 'Search'
function of the PHP-general
lst? It always seems to be 'offline'. Rather hard
to search the archives for
previously asked questions.

Tia,
Andre


--
Please pray the Holy Rosary to end the holocaust
of abortion.
Remember in your prayers the Holy Souls in
Purgatory.

May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet:
http://www.webhart.net/csrb/

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



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




Re: [PHP] E-mail Confirmation script?

2002-05-12 Thread Andre Dubuc

Thanks,

Now why didn't that ever occur to me? It's simple and very effective.
Thanks for the idea! 

Regards,
Andre


On Sunday 12 May 2002 04:51 pm, you wrote:
 I would suggest just sending them an email with a
 link like this and telling them to click on it to
 confirm their membership.

 http://www.mysite.com/confirm.php?uniqueid=2i3k238
 s9sd0s99d

 The confirm.php page would look up the uniqueid
 and try to find it in your database.  If it's
 there then that means the email address they gave
 you exists and they have access to that email
 account cuz they know that uniqueid.

 After confirming, you could send a welcome user
 email and include another link that they can use
 for all other account management like
 unsubscribing, changing password, changing
 personal info ...

 http://www.mysite.com/account.php




 -Original Message-
 From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
 Sent: May 12, 2002 4:36 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] E-mail Confirmation script?


 I've looked about for an 'Email Confirmation'
 script that many sites use for
 verifcation of wannabee new members. That is, the
 person subscribes, is sent
 a 'confirmation' number to which they must have in
 the 'Subject' area of
 their reply.

 I would like to implement this on my site, but I
 haven't discovered a source
 for a script, or how to go about doing it. That
 is, how do you retrieve items
 from an incoming e-mail, and is it possible to
 parse the same?

 If anyone who has seen such a script could point
 me to where I could find
 one, I would greatly appreciate it, or in the
 Manual, what it would be listed
 under. The 'mail()' function doesn't seem to
 include how to access received
 e-mails, and to parse individual copmponents of a
 message.

 Btw, does anyone know what's up with the 'Search'
 function of the PHP-general
 lst? It always seems to be 'offline'. Rather hard
 to search the archives for
 previously asked questions.

 Tia,
 Andre

-- 
Please pray the Holy Rosary to end the holocaust of abortion.
Remember in your prayers the Holy Souls in Purgatory.

May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/

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




Re: [PHP] E-mail Confirmation script?

2002-05-12 Thread r

Hey,
Why dont you just add a link to a script and validate it like that?
eg:
Click below to confirm you email id
**
http://yoursite.tld/confirm.php?[EMAIL PROTECTED]confirmno=5675678
**

Once you get the confirm id and no just check it within your database and
flag it as true.
Simple.

I have been using the above example for yearsthough not in PHP, but i'm
sure it will work.

Cheers,
-Ryan

/*A conclusion is the place where you got tired of thinking.*/








- Original Message -
From: Andre Dubuc [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, May 12, 2002 1:36 PM
Subject: [PHP] E-mail Confirmation script?


 I've looked about for an 'Email Confirmation' script that many sites use
for
 verifcation of wannabee new members. That is, the person subscribes, is
sent
 a 'confirmation' number to which they must have in the 'Subject' area of
 their reply.

 I would like to implement this on my site, but I haven't discovered a
source
 for a script, or how to go about doing it. That is, how do you retrieve
items
 from an incoming e-mail, and is it possible to parse the same?

 If anyone who has seen such a script could point me to where I could find
 one, I would greatly appreciate it, or in the Manual, what it would be
listed
 under. The 'mail()' function doesn't seem to include how to access
received
 e-mails, and to parse individual copmponents of a message.

 Btw, does anyone know what's up with the 'Search' function of the
PHP-general
 lst? It always seems to be 'offline'. Rather hard to search the archives
for
 previously asked questions.

 Tia,
 Andre


 --
 Please pray the Holy Rosary to end the holocaust of abortion.
 Remember in your prayers the Holy Souls in Purgatory.

 May God bless you abundantly in His love!
 For a free Cenacle Scriptural Rosary Booklet: http://www.webhart.net/csrb/

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



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




RE: [PHP] E-mail Confirmation script?

2002-05-12 Thread SP

Just make sure the url fits on one line in the
email which mine doesn't.

-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: May 12, 2002 5:06 PM
To: SP
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] E-mail Confirmation script?


Thanks,

Now why didn't that ever occur to me? It's simple
and very effective.
Thanks for the idea!

Regards,
Andre


On Sunday 12 May 2002 04:51 pm, you wrote:
 I would suggest just sending them an email with
a
 link like this and telling them to click on it
to
 confirm their membership.


http://www.mysite.com/confirm.php?uniqueid=2i3k238
 s9sd0s99d

 The confirm.php page would look up the uniqueid
 and try to find it in your database.  If it's
 there then that means the email address they
gave
 you exists and they have access to that email
 account cuz they know that uniqueid.

 After confirming, you could send a welcome
user
 email and include another link that they can use
 for all other account management like
 unsubscribing, changing password, changing
 personal info ...

 http://www.mysite.com/account.php




 -Original Message-
 From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
 Sent: May 12, 2002 4:36 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] E-mail Confirmation script?


 I've looked about for an 'Email Confirmation'
 script that many sites use for
 verifcation of wannabee new members. That is,
the
 person subscribes, is sent
 a 'confirmation' number to which they must have
in
 the 'Subject' area of
 their reply.

 I would like to implement this on my site, but I
 haven't discovered a source
 for a script, or how to go about doing it. That
 is, how do you retrieve items
 from an incoming e-mail, and is it possible to
 parse the same?

 If anyone who has seen such a script could point
 me to where I could find
 one, I would greatly appreciate it, or in the
 Manual, what it would be listed
 under. The 'mail()' function doesn't seem to
 include how to access received
 e-mails, and to parse individual copmponents of
a
 message.

 Btw, does anyone know what's up with the
'Search'
 function of the PHP-general
 lst? It always seems to be 'offline'. Rather
hard
 to search the archives for
 previously asked questions.

 Tia,
 Andre

--
Please pray the Holy Rosary to end the holocaust
of abortion.
Remember in your prayers the Holy Souls in
Purgatory.

May God bless you abundantly in His love!
For a free Cenacle Scriptural Rosary Booklet:
http://www.webhart.net/csrb/


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




Re: [PHP] e-mail list app

2002-03-25 Thread Dan Harrelson


Check out Ciao EmailList Manager:
http://www.technobreeze.com/php/emaillist/

-Dan


--- Michael A. Peters [EMAIL PROTECTED] wrote:
 Anyone know of a free app that allows users to submit-
 
 name, nickname, e-mail addy
 
 app sends a url confirm to e-mail addy.
 upon confirm, the info gets stored in a mysql database with the email
 encrypted.
 
 addresses should only be decryptable with a key that does not need to
 be
 stored on the machine.
 Thanks.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

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




RE: [PHP] E-mail Uploaded File

2001-12-11 Thread Jason Murray

 Is there a short easy mail script that can take an uploaded 
 file from a form and have it e-mailed to me?

http://planetkiller.shadow.net.au/mime-php.txt

This will show you how to send an attachment in an email
without messing around with classes (which I could never
get to work, hence I rolled my own solution).

Jason

-- 
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
Work now, freak later!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] e-mail confirmation #76215525

2001-07-27 Thread Michael Geier, CDM Systems Admin

hahahaha...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 9:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] e-mail confirmation #76215525


This is a confirmation e-mail for your request.

You can come anytime and claim your FREE Sex Toys at
http://www.freevibrator.com

All Free Sex Toys we feature are absolutly free with no purchase necessary
whatsoever.
(Small reasonable shipping charges apply)


Thank You for subscribing to FreeSexToys updates list.
This Is OPT-IN list.
To make sure that we won't send anything to you in ERROR - You HAVE TO
CONFIRM that you would like to be added to our list.

To confirm that you want to be added send e-mail to: [EMAIL PROTECTED]

If you received this e-mail in error (my apologies) or do not wish to be
added to our list DO NOTHING. You will NOT be added to our list without Your
Confirmation.

Freely Yours
Julie Aston

[EMAIL PROTECTED]
message confirmation ID#1312076215525118128826213

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] E-mail Validation Question

2001-02-18 Thread Nuno Silva

Jeff Oien wrote:

 Just a curiosity. I installed and tested Manuel Lemos's 
 PHP E-mail validation class. When I entered an address
 at the @wi.rr.com domain, no matter what I put before
 the domain, it would come back as valid. (That's the
 Wisconsin domain for Road Runner cable service.) But
 when I tried it for @earthlink.net only real addresses 
 came back as valid. Does anyone know what it is about
 some mail servers at certain domains that it would return
 everything as valid? 
 Jeff Oien
 
 so [EMAIL PROTECTED] would show as a valid address.
 [EMAIL PROTECTED] wouldn't but [EMAIL PROTECTED] would
 
hi,
this happens because some MTA's don't allow certain commands to be 
issued (security feature), qmail for instance...

the class acts like it should: it tells you that the email is valid.
(it's better than refusing a valid email...)

regards,
Nuno Silva






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] E-mail Validation Question

2001-02-17 Thread Manuel Lemos

Hello Jeff,

On 17-Feb-01 21:49:42, you wrote:

Just a curiosity. I installed and tested Manuel Lemos's 
PHP E-mail validation class. When I entered an address
at the @wi.rr.com domain, no matter what I put before
the domain, it would come back as valid. (That's the
Wisconsin domain for Road Runner cable service.) But
when I tried it for @earthlink.net only real addresses 
came back as valid. Does anyone know what it is about
some mail servers at certain domains that it would return
everything as valid? 
Jeff Oien

so [EMAIL PROTECTED] would show as a valid address.
[EMAIL PROTECTED] wouldn't but [EMAIL PROTECTED] would

Newer SMTP servers tend to not verify if a recipient address is valid when
the message is submitted to the server but rather later when the message is
attempted to be delivered.

I suppose that is because it takes less time to queue a message for
delivery and it sort of protects the privacy of addresses that correspond
to valid accounts so it makes it harder for people that keep spam lists to
verify if the addresses they have are valid or not.


Regards,
Manuel Lemos

Web Programming Components using PHP Classes.
Look at: http://phpclasses.UpperDesign.com/?[EMAIL PROTECTED]
--
E-mail: [EMAIL PROTECTED]
URL: http://www.mlemos.e-na.net/
PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
--


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] E-mail valid

2001-02-01 Thread Chris Aitken



Does anyone have, or know of a script which simulates what Apache gives out 
when it shows the entire contents of a directory ?

I find it very handy to use the directory listing of say graphics 
directories and the like, but I dont want others looking into them.

What I thought would be a good system is to have an index.php file which 
asks for a password. If the password is accepted, it shoots them off to a 
php script which displays the contents of the DIR just as apache would.

This way I can bar viewing of the directories contents, only viewable to 
the owners of the password.


Ive seen a couple of scripts which claim to show the directory listing, but 
none of them seem to work any good with a decent layout and amount of file 
info. So im looking for a script which can display the listing properly. 
Does one exist, or am I just relieving myself into the wind ?


Thanks

Chris

--
   Chris Aitken - Webmaster/Database Designer - IDEAL Internet
email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
 

   Unix -- because a computer's a terrible thing to waste!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] E-mail valid

2001-02-01 Thread Sean Cazzell

 Does anyone have a function that tells you weather a variable holds a valid
 e-mail address or not?

It depends on what you mean by "valid email address".  For example, I can
enter "[EMAIL PROTECTED]" which looks valid, but doesn't exist.  You can
take things a step further and lookup the domain and make sure it
exists.  Even then, I can enter "[EMAIL PROTECTED]" which will pass the
lookup check.  You can go even further and send me an email message with a
"key" which I must enter in order to prove that the email address I gave
is valid.  Even so, it is easy to create a throw-away account at hotmail
or another free email provider.

Anyway, there is a class on phpclasses.upperdesign.com that does a good
job of checking an address.


Regards,

Sean Cazzell


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] E-mail valid

2001-01-31 Thread Josh G

haven't seen one, but it'd take 10 minutes to write. if i had a php install
here at work I'd do it for you :)

Gfunk -  http://www.gfunk007.com/

I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.


- Original Message -
From: "Chris Aitken" [EMAIL PROTECTED]
To: "PHP User Group" [EMAIL PROTECTED]
Sent: Thursday, February 01, 2001 4:03 PM
Subject: Re: [PHP] E-mail valid




 Does anyone have, or know of a script which simulates what Apache gives
out
 when it shows the entire contents of a directory ?

 I find it very handy to use the directory listing of say graphics
 directories and the like, but I dont want others looking into them.

 What I thought would be a good system is to have an index.php file which
 asks for a password. If the password is accepted, it shoots them off to a
 php script which displays the contents of the DIR just as apache would.

 This way I can bar viewing of the directories contents, only viewable to
 the owners of the password.


 Ive seen a couple of scripts which claim to show the directory listing,
but
 none of them seem to work any good with a decent layout and amount of file
 info. So im looking for a script which can display the listing properly.
 Does one exist, or am I just relieving myself into the wind ?


 Thanks

 Chris

 --
Chris Aitken - Webmaster/Database Designer - IDEAL Internet
 email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
  

Unix -- because a computer's a terrible thing to waste!


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]