Re: [PHP] php mail function vs smtp server

2005-10-31 Thread Richard Lynch
On Mon, October 31, 2005 5:22 am, Paul Waring wrote:
 On Mon, Oct 31, 2005 at 12:56:01PM +0200, Clive wrote:
 Thanks I actually want to send 24 000 emails with 2 meg attachments.

Woof.

mail() is DEFINITELY the wrong answer!

Firing up an SMTP connection and spewing 24,000 emails with 2 meg
attachments at it is *ALSO* a wrong answer, almost for sure.

You will probably have a very unhappy SysAdmin behind that SMTP
server, and odds are really really really good they'll have a long
line of VERY unhappy SysAdmins behind them.

You can pretty much count on being labeled (hopefully mis-labeled) as
a spammer almost immediately.

2 meg attachments are your first biggest problem.  Lose them.  Include
a link to whatever it is for the user to download the 2 meg at their
leisure.  This is non-negotiable.  You WILL regret the 2 meg
attachment long before the 24,000th user gets it.

Queue up the emails and send them out over a controlled time.

If there's ANY question that somebody might not want this email, don't
send it.  Get them to opt-in first, if you haven't already.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] mail() with port authentication

2005-10-07 Thread Richard Lynch
On Wed, October 5, 2005 11:59 pm, Brian Dunning wrote:
 Do I need to use Pear to specify port 587 and authentication when
 sending mail? I could not find any way to do it using mail().

If you have access to sendmail.cf on your box, you can probably do it
there...

Or, put it this way:

On MY box at home, I had to do this so the silly cable-modem provider
wouldn't block my outdoing emails, and I'm NOT a Sendmail expert by
any stretch of the imagination.

In this case, I wanted ALL outgoing email to go to a different port,
which my web/mail host has open for this very purpose.

I dunno how tricky it would be to make it only happen for specific
sender/recipient combinations etc...

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] mail() with port authentication

2005-10-05 Thread Brian Dunning
Do I need to use Pear to specify port 587 and authentication when  
sending mail? I could not find any way to do it using mail(). 


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



Re: [PHP] mail function-new line-security

2005-09-29 Thread Torgny Bjers
Peppy wrote:
 AJ,
 
 So what your reply means is that I should not have a new line character in 
 any variable on my page???

Of course you can have newlines in your email message, just make sure
that any user input is received through POST, and that you run a regular
expression to validate that only one email has been specified in the
recipient field (whatever you call that on your form I don't know) to
ensure that it is only sent to one person.

Other than that you ought to be pretty secure. Make sure that the user
cannot enter any type of header information in the beginning of their
message, so, for instance you could do what you did:

$usermailmsg = This is the information you submitted.\n // ...

It will ensure that other text appears before the user submitted data.
Hope that helps.

Regards,
Torgny

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



Re: [PHP] mail function-new line-security

2005-09-28 Thread Peppy
AJ,

So what your reply means is that I should not have a new line character in any 
variable on my page???

Then is there any way to format the email so it is readable?

Thanks.


[PHP] mail function-new line-security

2005-09-27 Thread Peppy
I have been working on making my contact forms more secure.  In my research, 
the occurence of the new line character \n at the end of the $headers variable 
in the  mail function seems to be a security risk and opens one up to injection 
of spam email.  This part I understand.  I have been unable to find out this 
same information about the message variable.

If I have a variable defining the message like this, can I use the new line 
character or am I opening myself up to more spam injection.

$usermailmsg = 
This is the information you submitted.\n
If this is not correct, please contact us at mailto:$my_email.\n\n
Name: $name\n
Phone: $phone\n
...
Please feel free to write us with any comments or suggestions so that we may 
better serve you.\n
mailto:$my_email\n\n;;

mail($user_mail, $subject, $usermailmsg, $headers);

Thanks in advance for any help.


Re: [PHP] Mail-format...

2005-09-19 Thread David Tulloh
It looks like somebody is trying to launch an e-mail injection attack.  
Looking at your code, I don't think you are vulnerable.


You can read more about e-mail injection at 
http://securephp.damonkohler.com/index.php/Email_Injection
You could also send nasty e-mails to [EMAIL PROTECTED], telling them 
to stop trying to hack your website.



David


Gustav Wiberg wrote:


Hi there!

I wonder why I get get these kind of mails (look down below in this 
mail) I recieve them sometimes...

...I have a code like this...

$name = $_POST[frmNamn];
$email = $_POST[frmEpost];

//Send mail that there is a new member
//
mail([EMAIL PROTECTED],Ny medlem - Stammis Internet,Namn: $name, 
Epost:$email);




/G
http://www.varupiraten.se/


Namn: [EMAIL PROTECTED]
Content-Type: multipart/mixed; boundary=\===0158601545==\
MIME-Version: 1.0
Subject: c1805938
To: [EMAIL PROTECTED]
bcc: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]

This is a multi-part message in MIME format.

--===0158601545==
Content-Type: text/plain; charset=\us-ascii\
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

aienglpcm
--===0158601545==--
, Epost:[EMAIL PROTECTED]




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



Re: [PHP] Mail-format...

2005-09-19 Thread Gustav Wiberg


- Original Message - 
From: David Tulloh [EMAIL PROTECTED]

To: Gustav Wiberg [EMAIL PROTECTED]
Cc: PHP General php-general@lists.php.net
Sent: Monday, September 19, 2005 8:19 AM
Subject: Re: [PHP] Mail-format...


It looks like somebody is trying to launch an e-mail injection attack. 
Looking at your code, I don't think you are vulnerable.


You can read more about e-mail injection at 
http://securephp.damonkohler.com/index.php/Email_Injection
You could also send nasty e-mails to [EMAIL PROTECTED], telling them to 
stop trying to hack your website.



David


Gustav Wiberg wrote:


Hi there!

I wonder why I get get these kind of mails (look down below in this mail) 
I recieve them sometimes...

...I have a code like this...

$name = $_POST[frmNamn];
$email = $_POST[frmEpost];

//Send mail that there is a new member
//
mail([EMAIL PROTECTED],Ny medlem - Stammis Internet,Namn: $name, 
Epost:$email);




/G
http://www.varupiraten.se/


Namn: [EMAIL PROTECTED]
Content-Type: multipart/mixed; boundary=\===0158601545==\
MIME-Version: 1.0
Subject: c1805938
To: [EMAIL PROTECTED]
bcc: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]

This is a multi-part message in MIME format.

--===0158601545==
Content-Type: text/plain; charset=\us-ascii\
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

aienglpcm
--===0158601545==--
, Epost:[EMAIL PROTECTED]






--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.1/104 - Release Date: 2005-09-16



Ok, thanx!

/G
http://www.varupiraten.se/

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



[PHP] Mail-format...

2005-09-18 Thread Gustav Wiberg

Hi there!

I wonder why I get get these kind of mails (look down below in this mail) I 
recieve them sometimes...

...I have a code like this...

$name = $_POST[frmNamn];
$email = $_POST[frmEpost];

//Send mail that there is a new member
//
mail([EMAIL PROTECTED],Ny medlem - Stammis Internet,Namn: $name, 
Epost:$email);




/G
http://www.varupiraten.se/


Namn: [EMAIL PROTECTED]
Content-Type: multipart/mixed; boundary=\===0158601545==\
MIME-Version: 1.0
Subject: c1805938
To: [EMAIL PROTECTED]
bcc: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]

This is a multi-part message in MIME format.

--===0158601545==
Content-Type: text/plain; charset=\us-ascii\
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

aienglpcm
--===0158601545==--
, Epost:[EMAIL PROTECTED]


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.0/103 - Release Date: 2005-09-15 


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



[PHP] [Mail]mb_encode_mimeheader

2005-09-07 Thread Sylvain Gourvil

Hi !

I need some help for mail's encoding structure.
I use this code for encoding french character like 'é' or 'è':

   mb_language('uni');
   mb_internal_encoding(mb_detect_encoding($this-subject));
   $res = mail('[EMAIL PROTECTED]', 
mb_encode_mimeheader($this-subject), $this-msgTxt.$this-msgHTML, 
$this-entete, '[EMAIL PROTECTED]');


It is working fine unless if my first word is not containing one of 
those multi-bites characters!


For example :
Subject : êtes vous francais ou étranger ? = It is well encode and all 
is fine on differents mail software and webmail
Subject : Bonjour, êtes vous francais ? = It is encode at the 
beginnning of the second word. So it is not well written on some softwre 
like Incredimail for example.


Does someone know where i am wrong ?
Thanks a lot for your help

Sylvain Gourvil






___ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com



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



[PHP] mail list test - ignore!

2005-08-18 Thread Paul Nicholson

Hey guys!
Just testing...

Paul

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



[PHP] mail()

2005-08-17 Thread George B
Warning: mail() [function.mail]: Failed to connect to mailserver at 
localhost port 25, verify your SMTP and smtp_port setting in 
php.ini or use ini_set()


I checked php.ini and everything is open

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

SO why does it not work?

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



Re: [PHP] mail()

2005-08-17 Thread John Nichel

George B wrote:
Warning: mail() [function.mail]: Failed to connect to mailserver at 
localhost port 25, verify your SMTP and smtp_port setting in 
php.ini or use ini_set()


I checked php.ini and everything is open

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

SO why does it not work?


Do you have a MTA running on localhost?

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



Re: [PHP] mail()

2005-08-17 Thread Jordan Miller

Did you install sendmail?



http://www.php.net/mail

Requirements

For the Mail functions to be available, PHP must have access to the  
sendmail binary on your system during compile time. If you use  
another mail program, such as qmail or postfix, be sure to use the  
appropriate sendmail wrappers that come with them. PHP will first  
look for sendmail in your PATH, and then in the following: /usr/bin:/ 
usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended  
to have sendmail available from your PATH. Also, the user that  
compiled PHP must have permission to access the sendmail binary.



On Aug 17, 2005, at 11:48 AM, George B wrote:


Warning: mail() [function.mail]: Failed to connect to mailserver at  
localhost port 25, verify your SMTP and smtp_port setting in  
php.ini or use ini_set()


I checked php.ini and everything is open

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

SO why does it not work?

--
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] mail()

2005-08-17 Thread André Medeiros
Do you have a mail server running?

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



Re: [PHP] mail()

2005-08-17 Thread John Nichel

Jordan Miller wrote:

Did you install sendmail?


No sendmail for Windows.  He either has to have a Microsoft MTA running 
on localhost, or use an upstream SMTP account.


--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



Re: [PHP] mail()

2005-08-17 Thread George B

John Nichel wrote:

George B wrote:

Warning: mail() [function.mail]: Failed to connect to mailserver at 
localhost port 25, verify your SMTP and smtp_port setting in 
php.ini or use ini_set()


I checked php.ini and everything is open

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

SO why does it not work?



Do you have a MTA running on localhost?


No,whats an MTA?

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



Re: [PHP] mail()

2005-08-17 Thread George B

André Medeiros wrote:

Do you have a mail server running?
No, how do I get a mail server running? And does it allow me to receive 
e-mails, or only send?


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



Re: [PHP] mail()

2005-08-17 Thread John Nichel

George B wrote:

John Nichel wrote:

snip

Do you have a MTA running on localhost?


No,whats an MTA?



Mail Transfer Agent. A mail server.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



Re: [PHP] mail()

2005-08-17 Thread John Nichel

George B wrote:

André Medeiros wrote:


Do you have a mail server running?


No, how do I get a mail server running? And does it allow me to receive 
e-mails, or only send?




That is way beyond the scope of this list.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



Re: [PHP] mail()

2005-08-17 Thread George B

John Nichel wrote:

Jordan Miller wrote:


Did you install sendmail?



No sendmail for Windows.  He either has to have a Microsoft MTA running 
on localhost, or use an upstream SMTP account.



There is no Microsoft MTA, I searched google couldnt find anything.
so.
Anyway, im screwed and I cant send mail.
I have a program B1Gmail and its like online mail, but it dosent work 
because I dont have a mail server and Im using windows. So I cant do 
anything about it right?


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



RE: [PHP] mail()

2005-08-17 Thread Shaw, Chris - Accenture

Can you send to a smtp server provided by your isp?

-Original Message-
From: George B [mailto:[EMAIL PROTECTED]
Sent: 17 August 2005 18:11
To: php-general@lists.php.net
Subject: Re: [PHP] mail()


*

This e-mail has been received by the Revenue Internet e-mail service.

*

John Nichel wrote:
 Jordan Miller wrote:

 Did you install sendmail?


 No sendmail for Windows.  He either has to have a Microsoft MTA running
 on localhost, or use an upstream SMTP account.

There is no Microsoft MTA, I searched google couldnt find anything.
so.
Anyway, im screwed and I cant send mail.
I have a program B1Gmail and its like online mail, but it dosent work
because I dont have a mail server and Im using windows. So I cant do
anything about it right?

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







This message has been delivered to the Internet by the Revenue Internet e-mail 
service

*

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



Re: [PHP] mail()

2005-08-17 Thread John Nichel

George B wrote:

John Nichel wrote:


Jordan Miller wrote:


Did you install sendmail?




No sendmail for Windows.  He either has to have a Microsoft MTA 
running on localhost, or use an upstream SMTP account.



There is no Microsoft MTA, I searched google couldnt find anything.
so.


MTA is a mail server.  There *are* MTA's for Microsoft.


Anyway, im screwed and I cant send mail.
I have a program B1Gmail and its like online mail, but it dosent work 
because I dont have a mail server and Im using windows. So I cant do 
anything about it right?


You could a) install a MTA, b) use an upstream SMTP provider, or c) 
setup a *nix box with sendmail|qmail|postfix|etc.



--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



RE: [PHP] mail()

2005-08-17 Thread Jay Blanchard
[snip]
There is no Microsoft MTA, I searched google couldnt find anything.
so.
[/snip]

http://www.google.com/search?hl=enq=windows+mail+transfer+agent

Lots of options...

http://www.google.com/search?hl=enlr=q=Microsoft+MTA

Actually turned up a lot of stuff.

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



Re: [PHP] mail()

2005-08-17 Thread George B

Shaw, Chris - Accenture wrote:

Can you send to a smtp server provided by your isp?

-Original Message-
From: George B [mailto:[EMAIL PROTECTED]
Sent: 17 August 2005 18:11
To: php-general@lists.php.net
Subject: Re: [PHP] mail()


*

This e-mail has been received by the Revenue Internet e-mail service.

*

John Nichel wrote:


Jordan Miller wrote:





Did you install sendmail?






No sendmail for Windows.  He either has to have a Microsoft MTA running




on localhost, or use an upstream SMTP account.




There is no Microsoft MTA, I searched google couldnt find anything.
so.
Anyway, im screwed and I cant send mail.
I have a program B1Gmail and its like online mail, but it dosent work

because I dont have a mail server and Im using windows. So I cant do

anything about it right?

--

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







This message has been delivered to the Internet by the Revenue Internet e-mail 
service

*

yeah I can send to the SMTP server of my ISP, but no where else.

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



RE: [PHP] mail()

2005-08-17 Thread Shaw, Chris - Accenture

snip
yeah I can send to the SMTP server of my ISP, but no where else.
/snip

If you can send to the smtp server then your ISP should deliver the email.

If you have not filled in the sendmail_from var in the php.ini correctly,
they cannot send back a mail saying there was a problem with the delivery.






This message has been delivered to the Internet by the Revenue Internet e-mail 
service

*

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



Re: [PHP] mail()

2005-08-17 Thread George B

Shaw, Chris - Accenture wrote:

snip
yeah I can send to the SMTP server of my ISP, but no where else.
/snip

If you can send to the smtp server then your ISP should deliver the email.

If you have not filled in the sendmail_from var in the php.ini correctly,
they cannot send back a mail saying there was a problem with the delivery.






This message has been delivered to the Internet by the Revenue Internet e-mail 
service

*
Ok guys! It has sent the mail succesfully everywhere! Now one more 
thing. How do I make it so I can receive mail? I am using my ISP's POP 
server but I dosent send back because my e-mail is [EMAIL PROTECTED] How 
do I setup my own domain and does it cost money for an e-mail?


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



Re: [PHP] mail()

2005-08-17 Thread Stephen Johnson

Why not change the email address to be a valid one and receive through your
ISP.


On 8/17/05 11:28 AM, George B [EMAIL PROTECTED] wrote:

 Shaw, Chris - Accenture wrote:
 snip
 yeah I can send to the SMTP server of my ISP, but no where else.
 /snip
 
 If you can send to the smtp server then your ISP should deliver the email.
 
 If you have not filled in the sendmail_from var in the php.ini correctly,
 they cannot send back a mail saying there was a problem with the delivery.
 
 
 
 
 
 
 This message has been delivered to the Internet by the Revenue Internet
 e-mail service
 
 *
 Ok guys! It has sent the mail succesfully everywhere! Now one more
 thing. How do I make it so I can receive mail? I am using my ISP's POP
 server but I dosent send back because my e-mail is [EMAIL PROTECTED] How
 do I setup my own domain and does it cost money for an e-mail?

-- 
Stephen Johnson
The Lone Coder

[EMAIL PROTECTED]
http://www.thelonecoder.com

*Continuing the struggle against bad code*
--

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



Re: [PHP] mail()

2005-08-17 Thread John Nichel

George B wrote:
snip
Ok guys! It has sent the mail succesfully everywhere! Now one more 
thing. How do I make it so I can receive mail? I am using my ISP's POP 
server but I dosent send back because my e-mail is [EMAIL PROTECTED] How 
do I setup my own domain and does it cost money for an e-mail?




Read the manual about the mail function to set who the mail is coming from.

http://us2.php.net/manual/en/function.mail.php

Setting up your own domain is beyond the scope of this mailing list.

Google is your friend.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



RE: [PHP] mail()

2005-08-17 Thread Shaw, Chris - Accenture

snip
Ok guys! It has sent the mail succesfully everywhere! Now one more
thing. How do I make it so I can receive mail? I am using my ISP's POP
server but I dosent send back because my e-mail is [EMAIL PROTECTED] How
do I setup my own domain and does it cost money for an e-mail?
/snip

I suggest you contact your isp or consult a FAQ on your isp website in
setting up your mail client on your machine, they will also tell you what
your *real* email address is.

If you want to set up your own domain, there are plenty of companies on the
web offering this service.

But this isn't php talk and you'll get flamed by the self proclaimed php
police.





This message has been delivered to the Internet by the Revenue Internet e-mail 
service

*

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



Re: [PHP] mail()

2005-08-17 Thread André Medeiros
If you want to receive e-mails from the outside, yes, you'll have to
register a domain, configure an MTA to work on windows and all that
jazz.

Besides, if you want to manage pop, you might as well start looking at
the php4-imap / php5-imap module to be able to work with POP more
easily.

I might be mistaken, but I believe that installing an MTA on your PC
will allow you to send/receive e-mails locally. Not sure if that
suffices for your sittuation though.

Either way, check Jay's google queries. They might give you an insight
on some MTA servers you can use (I had to code a webmail application
once and I found a few free MTA servers, so I believe you'll be able
to do that to without breaking a swet :)

Good luck with your project!

On 8/17/05, George B [EMAIL PROTECTED] wrote:
 Shaw, Chris - Accenture wrote:
  snip
  yeah I can send to the SMTP server of my ISP, but no where else.
  /snip
 
  If you can send to the smtp server then your ISP should deliver the email.
 
  If you have not filled in the sendmail_from var in the php.ini correctly,
  they cannot send back a mail saying there was a problem with the delivery.
 
 
 
 
  
 
  This message has been delivered to the Internet by the Revenue Internet 
  e-mail service
 
  *
 Ok guys! It has sent the mail succesfully everywhere! Now one more
 thing. How do I make it so I can receive mail? I am using my ISP's POP
 server but I dosent send back because my e-mail is [EMAIL PROTECTED] How
 do I setup my own domain and does it cost money for an e-mail?
 
 --
 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] mail()

2005-08-17 Thread George B

André Medeiros wrote:

If you want to receive e-mails from the outside, yes, you'll have to
register a domain, configure an MTA to work on windows and all that
jazz.

Besides, if you want to manage pop, you might as well start looking at
the php4-imap / php5-imap module to be able to work with POP more
easily.

I might be mistaken, but I believe that installing an MTA on your PC
will allow you to send/receive e-mails locally. Not sure if that
suffices for your sittuation though.

Either way, check Jay's google queries. They might give you an insight
on some MTA servers you can use (I had to code a webmail application
once and I found a few free MTA servers, so I believe you'll be able
to do that to without breaking a swet :)

Good luck with your project!

On 8/17/05, George B [EMAIL PROTECTED] wrote:


Shaw, Chris - Accenture wrote:


snip
yeah I can send to the SMTP server of my ISP, but no where else.
/snip

If you can send to the smtp server then your ISP should deliver the email.

If you have not filled in the sendmail_from var in the php.ini correctly,
they cannot send back a mail saying there was a problem with the delivery.






This message has been delivered to the Internet by the Revenue Internet e-mail 
service

*


Ok guys! It has sent the mail succesfully everywhere! Now one more
thing. How do I make it so I can receive mail? I am using my ISP's POP
server but I dosent send back because my e-mail is [EMAIL PROTECTED] How
do I setup my own domain and does it cost money for an e-mail?

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



Can you send a link to a free MTA server please??

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



Re: [PHP] mail()

2005-08-17 Thread Jasper Bryant-Greene

George B wrote:

Can you send a link to a free MTA server please??


I don't mean to be rude, but this is getting beyond a joke. This is a 
PHP mailing list, not a 
PHP-and-MTAs-and-domains-and-everything-in-between mailing list. Google 
is your friend:


http://www.google.com/search?q=free+MTA+server

Now surely you could have managed that?

Jasper

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



Re[2]: [PHP] mail()

2005-08-17 Thread Tom Rogers
Hi,

Thursday, August 18, 2005, 3:02:40 AM, you wrote:
GB André Medeiros wrote:
 Do you have a mail server running?
GB No, how do I get a mail server running? And does it allow me to receive
GB e-mails, or only send?


Try this, they have a free version which will do what you want.
If you have a fixed IP you can even receive your own mail.

http://mailenable.com/

-- 
regards,
Tom

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



[PHP] Mail-id validation script

2005-08-12 Thread Nahalingam Kanakavel
Hai all, 

This is naha, I am very new to PHP as well as this group, I am in need of 
your guidence all my way.

Now I am doing a project using PHP, in that I created a form.
That form has a field called e-mailid, to validate that I need a script 
(function), whether I have to write it in the server side or client side, 
which one is better?. I need your suggestions, If any script is there plz 
send it to me.


-- 
with regds,
Nahalingam.


Re: [PHP] Mail-id validation script

2005-08-12 Thread Jasper Bryant-Greene

Nahalingam Kanakavel wrote:

Now I am doing a project using PHP, in that I created a form.
That form has a field called e-mailid, to validate that I need a script 
(function), whether I have to write it in the server side or client side, 
which one is better?. I need your suggestions, If any script is there plz 
send it to me.


If I was creating such a script I would validate it both on the 
client-side and the server-side. The reason for this is that client-side 
validation can be fooled, but server-side validation requires a 
round-trip to the server.


If you validate on the client-side you will save your users time as 
errors will be detected without a trip to the server, but you still need 
to validate on the server-side to ensure that they haven't bypassed the 
client-side validation in any way.


As far as an actual script goes, either read the relevant RFC for email 
addresses at [1], or just Google for PHP email validation [2].


Jasper

[1] http://www.ietf.org/rfc.html
[2] http://www.google.com/search?q=php+email+validation

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



Re: [PHP] Including Check box ifo in PHP mail

2005-07-29 Thread Chirantan Ghosh

Hi Everybody,

The reference PHP is http://www.primarywave.com/BrokerOutpost_Contact.php.
I want it have Checkbox like 
http://www.primarywave.com/BrokerOutpost_Contact.htm  have it sent vis POST 
form action like the PHP sited before.


My ignorace is getting the best of me do help please.

The PHP code that I have ( Form post method Printing info in email part)
=
?
foreach($HTTP_GET_VARS as $indx = $value) {
   ${$indx}=$value;
}
foreach($HTTP_POST_VARS as $indx = $value) {
   ${$indx}=$value;
}
if($sendmessage == yes){

$todaytime = date(F j, Y, g:i a);

$mailTo = [EMAIL PROTECTED];
//This is where I want it to be mailed when form is submitted

$mailSubject = Primary Wave Media Contact BrokerOutpost Ref :: 
$todaytime;


$mailBody = Information:\n\n;
if($number){
 $mailBody .= Number:   $number\n\n;
}
$mailBody .= Full Name:   $name\n;
$mailBody .= Company:  $company\n;
$mailBody .= State:$state\n;
$mailBody .= Email:$email\n;
$mailBody .= Phone:$phone\n\n;
$mailBody .= Main Activities:  $activities\n\n;
/This is where I want to add the Check box like( 
http://www.primarywave.com/BrokerOutpost_Contact.htm )

$mailBody .= SelectedNumber:  $SelectedNumber\n;
$mailBody .= Comments:  $comments\n\n\n;
$mailBody .= $todaytime;


$mailHeaders = From: [EMAIL PROTECTED];

mail($mailTo, $mailSubject, $mailBody, $mailHeaders);

print CENTERH2Thank You/H2/CENTER;


}else{

$_num = new number();
$_num-init();

$number = $_num-num_info[number];

?
==
I tried putting in labeled Checkbox  included the names in
$mailBody .= CheckBox name:  $CheckBoxname\n;
I tried the NAME, LABLE all same to avoid confusion


Thanks a lot,
C

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



Re: [PHP] Mail Function

2005-07-22 Thread Richard Lynch
On Tue, July 19, 2005 4:31 pm, Cabbar Duzayak said:
 I have a web site that is going to have around total of 10-20 thousand
 unique users, about 1000 unique hits per day on shared hosting.

 I have been using PHP's internal mail mechanism with the local smtp
 server on my hosting company, but it is more like a hit-and-miss kind
 of thing. And, there are users complaining that they are not getting
 any e-mail.

I think there are several things to look at here...

First and foremost:  When you say PHP's internal mail mechanism with the
local smtp server I'm not sure what you mean.

If you use http://php.net/mail then you are invoking the sendmail (or
qmail or postfix or whatever) program on *EACH* and *EVERY* email you
attempt to send out.

sendmail (or qmail or postfix or whatever) are *NOT* small programs.

If you are sending out a *LOT* of email, this is going to fail miserably,
because you are simply trying to run TOO MANY processes on the box.

In theory, PHP would return FALSE when it failed, and you could just keep
calling mail() with the same args until it worked but this is incredibly
inefficient.

You should probably investigate using the Mail class at
http://phpclasses.org or something similar that will let you open *ONE*
SMTP connection and then you can churn out email after email through that
one connection.  *MUCH* more efficient than firing up sendmail (or
equivalent) for every piece of eamil to go out.

The other thing to investigate is the users' spam filtering.  Odds are
pretty good your PHP email is getting tagged as spam by somebody
somewhere.

You can improve your odds by:
  Making it come From:  a person with First Last [EMAIL PROTECTED]
instead of just [EMAIL PROTECTED]
  Use From, Reply-to and Return-Path headers, all the same.
  Don't send attachments or HTML enhanced (cough, cough) email.

 Can you guys please provide advise as to what the problem might be? I
 don't think it is the local SMTP, because the way SMTP is configured
 is pretty solid, and once you submit internally (not via port 25), it
 should retry till it delivers it. So, I am thinking it might be
 because of headers or something else.

If it's what I outlined initially above, you're not even getting as far as
submitting it internally.  The OS isn't letting PHP run 2,000 copies of
sendmail at once, and it shouldn't.

 So, should I use a more sophisticated mail library? Can you recommend any?

You'll have to understand what's going wrong now, no matter what mail
library you choose, or you won't know what options to set to configure
that more sophisticated email package.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] mail will not send attachment

2005-07-21 Thread Ross
Please help,

I need the body of this email to be sent as HTML and have the attachment go 
with it (a pdf from my HD) but it doesn't want to send.



R.



?php


 include ('connect.php');
   global $mail_to, $mail_cc, $mail_bcc, $mail_from, $mail_reply_to;
   global $mail_body, $mail_subject;
   global $userfile, $userfile_type, $userfile_name, $userfile_size;
   global $mail_type, $mail_headers, $mail_charset, $mail_encoding, $people;



if (isset($people)) {

if ($people == everyone){

   $query = SELECT * FROM $table_name;
 $result= mysql_query($query);
 while ($row=mysql_fetch_array($result)) {
 $email_addresses[] = $row['email'];
 //$mail_to = [EMAIL PROTECTED];
  }
  }
 //$count = count($email_addresses);
//$mail_to = implode(', ', $email_addresses);
 /*this counts the number of entries

 echo $count;
 echo $recipients;*/

  if ($people == 2){

  //echo by location;
  }

 if ($people == byjob){
  $mail_to = [EMAIL PROTECTED];

  }

  }

 if (isset($SUBMIT)) {

  if (empty($mail_to)){
?
script
  alert ('You have not entered the recipients email address')
  /script
  ?
  }
  else { // send the mail

$headers  = 'MIME-Version: 1.0' . \r\n;
$headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n;



   $mail_body = str_replace(\r\n, BR, $mail_text);



   if(!empty($mail_from)) $mail_headers .= From: $mail_from\n;
   if(!empty($mail_reply_to)) $mail_headers .= Reply-to: $mail_reply_to\n;
   if(!empty($mail_cc))
$mail_headers .= Cc:  . str_replace(;, ,, $mail_cc) . 
\n;
   if(!empty($mail_bcc))
$mail_headers .= Bcc:  . str_replace(;, ,, $mail_bcc) . 
\n;

   $mail_subject = stripslashes($mail_subject);
   $mail_body = stripslashes($mail_body);




  $fp = fopen($userfile, r);
  $file = fread($fp, filesize($userfile));
  $file = chunk_split(base64_encode($file));



 $mail_body =  trtd width=\314\div align=\center\img 
src=\http://www.scottishsocialnetworks.org/ssn_logo3.gif\; width=\100\ 
height=\139\/div/td/tr;
 $mail_body .= BRBRBRBR;
$mail_body .= font size=\2\ face=\Verdana, Arial, Helvetica, 
sans-serif\$mail_text /font;
$mail_body .= BRBRBRBRBR;
$mail_body .= tr
td width=\662\div align=\center\font size=\1\ face=\Verdana, 
Arial, Helvetica, sans-serif\55 Albany Street, Edinburgh, EH1 3QY, t: 0131 
524 9869, EXC 0131 557 4059, f: 0131 524 9860/font/div/td
  /tr
  tr
td width=\662\div align=\center\font size=\1\ face=\Verdana, 
Arial, Helvetica, sans-serif\e: [EMAIL PROTECTED], Web: 
scottishsocialnetworks.org/font/div/td
  /tr;
  $mail_body .= BR;
  $mail_body .= tr
td width=\662\div align=\center\font size=\2\ face=\Verdana, 
Arial, Helvetica, sans-serif\A project managed by the Rock Trust Charity 
No. SC018708 and supported by Communities Scotland/span/div/td
  /tr;



 mail( $mail_to, $mail_subject, $mail_body, $headers);
?
  script
  alert ('Your email has been sucessfully sent')
  /script
 ?
 }
 }












  ?


HTML
HEADTITLEE-mailer/TITLE
script
function ddd() {
document.ross.submit()
}
/script
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
html!-- InstanceBegin template=Templates/ssn.dwt 
codeOutsideHTMLIsLocked=false --
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
!-- InstanceBeginEditable name=doctitle --
titleUntitled Document/title
!-- InstanceEndEditable --
!-- InstanceBeginEditable name=head --
style type=text/css
!--
.style6 {font-family: Arial, Helvetica, sans-serif; font-size: 12px;}
--
/style
!-- InstanceEndEditable --
style type=text/css
!--
.style1 {font-size: 12px}
.style7 {font-size: 10; }
.style8 {font-size: 9px; }
--
/style
link href=ssn.css rel=stylesheet type=text/css
style type=text/css
!--
body,td,th {
 font-family: Arial, Helvetica, sans-serif;
 font-size: 12px;
 color: #00;
}
body {
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
--
/style/head

body
table width=950 height=506 border=0 align=center cellpadding=0 
cellspacing=0
  tr
td width=126 height=355 align=left valign=toptable 
width=126 border=0 align=center cellpadding=5
tr
  tdimg src=ssn_logo3.gif width=100 height=139/td
/tr
tr
  td width=116div align=centera href=mailer.phpMail a 
newsletter /a/div/td
/tr
tr
  tddiv align=centera href=add_contact.phpAdd a new 
contact/a /div/td
/tr
tr
  tddiv align=centera href=editor.phpEdit Database/a 
/div/td
/tr
tr
  tdnbsp;/td
/tr
tr
  tdnbsp;/td
/tr
/table/td
td width=894 valign=topdiv align=center
!-- InstanceBeginEditable name=EditRegion3 --
FORM ACTION=?php $PHP_SELF; ? METHOD=POST 
ENCTYPE=MULTIPART/FORM-DATA name=ross id=ross
  div align=left
p
  INPUT TYPE=HIDDEN NAME=action VALUE=send_mail
/p
pnbsp; /p

Re: [PHP] mail will not send attachment

2005-07-21 Thread André Medeiros
Try http://phpmailer.sourceforge.net/

Works awesomelly great. I've been using it for quite some time now, and
I don't want to look at mail() again :)




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



[PHP] Mail Function

2005-07-19 Thread Cabbar Duzayak
Hi,

I have a web site that is going to have around total of 10-20 thousand
unique users, about 1000 unique hits per day on shared hosting.

I have been using PHP's internal mail mechanism with the local smtp
server on my hosting company, but it is more like a hit-and-miss kind
of thing. And, there are users complaining that they are not getting
any e-mail.

Can you guys please provide advise as to what the problem might be? I
don't think it is the local SMTP, because the way SMTP is configured
is pretty solid, and once you submit internally (not via port 25), it
should retry till it delivers it. So, I am thinking it might be
because of headers or something else.

So, should I use a more sophisticated mail library? Can you recommend any?

Thanks...

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



[PHP] Mail System Error - Returned Mail

2005-07-03 Thread Post Office
WARNING: This e-mail has been altered by MIMEDefang.  Following this
paragraph are indications of the actual changes made.  For more
information about your site's MIMEDefang policy, contact
190.sy Administrator [EMAIL PROTECTED].  For more information about 
MIMEDefang, see:

http://www.roaringpenguin.com/mimedefang/enduser.php3

An attachment named message.scr was removed from this document as it
constituted a security hazard.  If you require this document, please contact
the sender and arrange an alternate means of receiving it.

Dear user php-general@lists.php.net,

Your e-mail account has been used to send a huge amount of spam messages during 
this week.
Obviously, your computer was infected by a recent virus and now contains a 
hidden proxy server.

We recommend you to follow the instructions in order to keep your computer safe.

Virtually yours,
The lists.php.net support team.


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

[PHP] mail:: very weird behaviour!

2005-07-03 Thread Andy Pieters
Hi all

So I constructed the mail message with attachements and all, and when I echo 
the contents to the screen, I get the entire message as intended.

But when the message is actually sent, it is NOT received the same!

In one test, the base64 part contains different text from what I actually put 
in.  However, if I put that same data inside the body (so I can compare), 
that data is transfered correctly.

In another test, the behaviour explained above, is extended by some other text 
dissapearing (namely some boundary)

The error log doesn't say a-thing!


my mail command is:

mail($toname $to,$subject,$body,$header);

If I do 
echo $headerbr$body;

right before the mail command, and copy and paste that into kmail, it is a 
valid email message with all the parts I made.

So where does it go wrong... please speake quickly before I have no more hair!

With kind regards


Andy

-- 
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/E$ d-(---)+ s:(+): a--(-)? C$(+++) UL$ P-(+)++
L+++$ E---(-)@ W++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e$@ h++(*) r--++ y--()
-- ---END GEEK CODE BLOCK--
--
Check out these few php utilities that I released
 under the GPL2 and that are meant for use with a 
 php cli binary:
 
 http://www.vlaamse-kern.com/sas/
--

--


pgpD3vno6k7mO.pgp
Description: PGP signature


Re: [PHP] mail:: very weird behaviour!

2005-07-03 Thread Andy Pieters
Ok, found out what was happening.

It seems that if the message contains MIME syntax errors, actual behaviour of 
sendmail (or its php wrapper) is unspecified.

Anyway, I forgot a semicolomn here and a linebreak there and whoosh! almost 
all of my hair pulled out!


Thanks

Andy

-- 
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/E$ d-(---)+ s:(+): a--(-)? C$(+++) UL$ P-(+)++
L+++$ E---(-)@ W++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e$@ h++(*) r--++ y--()
-- ---END GEEK CODE BLOCK--
--
Check out these few php utilities that I released
 under the GPL2 and that are meant for use with a 
 php cli binary:
 
 http://www.vlaamse-kern.com/sas/
--

--


pgprMwYeqahvh.pgp
Description: PGP signature


[PHP] mail()===false but msg is sent!

2005-07-02 Thread Andy Pieters
Hi all

I have this situation where mail() returns a false status but the message is 
actually accepted AND reaches destination!

The PHP Version is 4.3.10, the OS Linux

So what I do is (

$header=header for multipart mime message;
$body=body with multipart mime message;
$result=mail(Name Firstname $address,Subject,$message,$header);
echo ($result?ok:bogus);


So anyone got any ideas?

With kind regards


Andy


-- 
Registered Linux User Number 379093
-- --BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/O/E$ d-(---)+ s:(+): a--(-)? C$(+++) UL$ P-(+)++
L+++$ E---(-)@ W++$ !N@ o? !K? W--(---) !O !M- V-- PS++(+++)
PE--(-) Y+ PGP++(+++) t+(++) 5-- X++ R*(+)@ !tv b-() DI(+) D+(+++) G(+)
e$@ h++(*) r--++ y--()
-- ---END GEEK CODE BLOCK--
--
Check out these few php utilities that I released
 under the GPL2 and that are meant for use with a 
 php cli binary:
 
 http://www.vlaamse-kern.com/sas/
--

--


pgpnle9RVmE8t.pgp
Description: PGP signature


Re: [PHP] mail()===false but msg is sent!

2005-07-02 Thread Richard Lynch
On Sat, July 2, 2005 3:11 pm, Andy Pieters said:
 I have this situation where mail() returns a false status but the message
 is
 actually accepted AND reaches destination!

 The PHP Version is 4.3.10, the OS Linux

 So what I do is (

 $header=header for multipart mime message;
 $body=body with multipart mime message;
 $result=mail(Name Firstname $address,Subject,$message,$header);

Not that it's relevant (almost for sure), but in this example, you use
$message where you probably want $body...

 echo ($result?ok:bogus);

 So anyone got any ideas?

You'd have to read the PHP source code to be certain, but let's assume
that PHP just uses whatever your sendmail setting in php.ini returns.

It's possible, though very unlikely, that you've done something silly
there like:

sendmail = /usr/bin/sendmail -t ; return -1;

What's more likely is that something in the command line of sendmail is
returning some kind of warning, but it's still managing to send the
message.

If you can, su to the PHP user (see User directive in httpd.conf) and then
run some test sendmail commands from the shell.

Odds are really good you'll get a more detailed feedback than PHP's
simplistic true/false return value.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] Mail System Error - Returned Mail

2005-06-26 Thread Mail Administrator



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

[PHP] Mail System Error - Returned Mail

2005-06-21 Thread Automatic Email Delivery Software
ALERT!

This e-mail, in its original form, contained one or more attached files that 
were infected with a virus, worm, or other type of security threat. This e-mail 
was sent from a Road Runner IP address. As part of our continuing initiative to 
stop the spread of malicious viruses, Road Runner scans all outbound e-mail 
attachments. If a virus, worm, or other security threat is found, Road Runner 
cleans or deletes the infected attachments as necessary, but continues to send 
the original message content to the recipient. Further information on this 
initiative can be found at http://help.rr.com/faqs/e_mgsp.html.
Please be advised that Road Runner does not contact the original sender of the 
e-mail as part of the scanning process. Road Runner recommends that if the 
sender is known to you, you contact them directly and advise them of their 
issue. If you do not know the sender, we advise you to forward this message in 
its entirety (including full headers) to the Road Runner Abuse Department, at 
[EMAIL PROTECTED]



file attachment: letter.scr

This e-mail in its original form contained one or more attached files that were 
infected with the [EMAIL PROTECTED] virus or worm. They have been removed.
For more information on Road Runner's virus filtering initiative, visit our 
Help  Member Services pages at http://help.rr.com, or the virus filtering 
information page directly at http://help.rr.com/faqs/e_mgsp.html. 
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mail System Error - Returned Mail

2005-06-10 Thread Returned mail
ALERT!

This e-mail, in its original form, contained one or more attached files that 
were infected with a virus, worm, or other type of security threat. This e-mail 
was sent from a Road Runner IP address. As part of our continuing initiative to 
stop the spread of malicious viruses, Road Runner scans all outbound e-mail 
attachments. If a virus, worm, or other security threat is found, Road Runner 
cleans or deletes the infected attachments as necessary, but continues to send 
the original message content to the recipient. Further information on this 
initiative can be found at http://help.rr.com/faqs/e_mgsp.html.
Please be advised that Road Runner does not contact the original sender of the 
e-mail as part of the scanning process. Road Runner recommends that if the 
sender is known to you, you contact them directly and advise them of their 
issue. If you do not know the sender, we advise you to forward this message in 
its entirety (including full headers) to the Road Runner Abuse Department, at 
[EMAIL PROTECTED]

The original message was received at Fri, 10 Jun 2005 11:00:47 -0400
from lists.php.net [114.224.249.167]

- The following addresses had permanent fatal errors -
php-general@lists.php.net



file attachment: attachment.zip

This e-mail in its original form contained one or more attached files that were 
infected with the [EMAIL PROTECTED] virus or worm. They have been removed.
For more information on Road Runner's virus filtering initiative, visit our 
Help  Member Services pages at http://help.rr.com, or the virus filtering 
information page directly at http://help.rr.com/faqs/e_mgsp.html. 
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail function

2005-05-18 Thread Richard Lynch
On Tue, May 17, 2005 3:53 pm, [EMAIL PROTECTED] said:
 I have a script which send emails using mail() function. I have 100 email
 addresses and i set up the script to send 1 email every 10 seconds. So, it
 will take 1000 seconds
 to send all 100 emails.

 My question is: If I stop the script after,let's say 12 seconds, it will
 send only 1 email or all 100?I mean it is possible that the server to
 cache all emails and send them  if i stop the script? I must say that the
 script is run through a web browser.

If you stop the script before PHP executes the instruction to send the
email,  then the email ain't gonna go out.  Period.

Your best bet would be to use PHP to QUEUE the emails up, and let your
mail sending software (sendmail, qmail, elvenmail) worry about load and
timing.

You may also want to consider having the web-based application simply set
a flag/indicator somewhere which tells PHP that it's time to queue up all
100 emails.  Then the end user won't even have to wait for 100 emails to
get queued up in line.  They only have to wait for the flag to get set
which should take, like, less than one second.

There are also innumerable PHP mail classes out there to make sending
email easier. http://phpclasses.org has some, I'm betting PEAR has some,
and you could Google and find a thousand more.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] Mail function

2005-05-17 Thread virtualsoftware

Hi,

I have a script which send emails using mail() function. I have 100 email 
addresses and i set up the script to send 1 email every 10 seconds. So, it will 
take 1000 seconds
to send all 100 emails.

My question is: If I stop the script after,let's say 12 seconds, it will send 
only 1 email or all 100?I mean it is possible that the server to cache all 
emails and send them  if i stop the script? I must say that the script is run 
through a web browser.


Thanks in advance for your help 

[PHP] mail() Problem

2005-05-09 Thread Mary-Anne Nayler
Hi.
I am very new to this group and this is my first request for help so please be 
patient.
when I try to use the mail() function in a PHP based webpage I get the 
following error:

Fatal error: Call to undefined function: mail() in the path to my 
script on line line number

I have tried changing some mail config details in php.ini. For instance, 
the path to sendmail used to be: /usr/lib and I have changed it to: 
/usr/lib/sendmail -t -i.  The permissions on sendmail are 555, owner 
is root and group is other.

I guess you could say I am well and truly clutching at straws now!!
Has anyone else ever had this problem? If so how was it resolved?
Mary-Anne
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mail() Problem

2005-05-09 Thread dan
Mary-Anne Nayler wrote:
Hi.
I am very new to this group and this is my first request for help so 
please be patient.

when I try to use the mail() function in a PHP based webpage I get the 
following error:

Fatal error: Call to undefined function: mail() in the path to my 
script on line line number

I have tried changing some mail config details in php.ini. For instance, 
the path to sendmail used to be: /usr/lib and I have changed it to: 
/usr/lib/sendmail -t -i.  The permissions on sendmail are 555, owner 
is root and group is other.

I guess you could say I am well and truly clutching at straws now!!
Has anyone else ever had this problem? If so how was it resolved?
Mary-Anne
Mary -
This error occours when PHP can't find sendmail at compile-time.  Your 
best bet would be to install sendmail or a sendmail-compatible MTA, and 
then rebuild PHP.

Postfix is my second love, so naturally I'd recommend it - www.postfix.org.
Thanks
-dant
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mail() Problem

2005-05-09 Thread Richard Lynch
On Mon, May 9, 2005 4:02 pm, Mary-Anne Nayler said:
 Fatal error: Call to undefined function: mail() in the path to my
 script on line line number

That means PHP has no mail() function to even call, which is MUCH earlier
in the process than sendmail location.

Most likely, your webhost has decided that to stop spammers and runaway
mail abuse, he'd just rip out the mail() function from PHP.

You may be able to bypass this by using one of the mail classes at
http://phpclasses.org to talk directly to an SMTP server not under that
webhost control.

So, this time, it's actually NOT about paths/permissions on sendmail. :-)

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] PHP mail

2005-05-05 Thread Eustace
I am relatively new to PHP and could use some help. I have a form, which is
basically in an email format, from, subject, and message. How do I then send
this to an email? I know a bit about the mail function, somebody show me the
ropes please!

Eustace


[PHP] Re: PHP mail

2005-05-05 Thread Mathieu Dumoulin
Eustace wrote:
I am relatively new to PHP and could use some help. I have a form, which is
basically in an email format, from, subject, and message. How do I then send
this to an email? I know a bit about the mail function, somebody show me the
ropes please!
Eustace
I'll show you how we do it here at work, its quite simple:
//Target message setup
$target_receptemail = 'insert email here';
$target_receptname = 'insert the targets name here';
$target_senderemail = 'insert your email here';
$target_sendername = 'insert your name here';
//Message body setup
//Target setup
$target_bodymsg = 'Insert content here';
$target_subjectmsg = 'Insert subject here';
//Build the headers
$headers = array(
'From: '.$target_sendername.' '.$target_senderemail.'',
'Content-Type: text/html'
);
//Send the mail
mail(
$target_receptemail,
$target_subjectmsg,
$target_bodymsg,
implode(\r\n, $headers)
);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP mail

2005-05-05 Thread Aaron Gould
Eustace wrote:
I am relatively new to PHP and could use some help. I have a form, which is
basically in an email format, from, subject, and message. How do I then send
this to an email? I know a bit about the mail function, somebody show me the
ropes please!
Eustace
Everything you need to know should be gleamed from the following page:
http://ca3.php.net/manual/en/function.mail.php
Check the examples, and you'll be well on your way.
--
Aaron Gould
Programmer/Systems Administrator
PARTS CANADA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP mail

2005-05-05 Thread Philip Hallstrom
I am relatively new to PHP and could use some help. I have a form, which is
basically in an email format, from, subject, and message. How do I then send
this to an email? I know a bit about the mail function, somebody show me the
ropes please!
See the example here:
http://us2.php.net/manual/en/function.mail.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP mail

2005-05-05 Thread bala chandar
Hi 

On 5/5/05, Aaron Gould [EMAIL PROTECTED] wrote:
 Eustace wrote:
  I am relatively new to PHP and could use some help. I have a form, which is
  basically in an email format, from, subject, and message. How do I then send
  this to an email? I know a bit about the mail function, somebody show me the
  ropes please!
 
  Eustace
 
 
 Everything you need to know should be gleamed from the following page:
 
  http://ca3.php.net/manual/en/function.mail.php

check this too
http://zend.com/codex.php?CID=11
 
 Check the examples, and you'll be well on your way.
 
 --
 Aaron Gould
 Programmer/Systems Administrator
 PARTS CANADA
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


-- 
bala balachandar muruganantham
blog lynx http://chandar.blogspot.com
web http://www.chennaishopping.com

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



[PHP] mail problem

2005-04-29 Thread Ross
I get the following mail problem when trying to send from localhost. Any 
ideas?


Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to 
relay for [EMAIL PROTECTED] in c:\Inetpub\wwwroot\ssn\adv_mail.php on line 
179


R. 

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



Re: [PHP] mail problem

2005-04-29 Thread Brent Baisley
It probably means your email server is not setup for open relaying (aka 
spam server). Mail servers should require a login in order to send 
email through them. The mail() function itself doesn't support names 
and passwords, but other php functions do. You might want to look into 
phpmailer to handle you email needs.

Alternatively, you could setup your email server to allow open relaying 
from the localhost. But that's not really recommended even if you know 
exactly what you are doing with the mail server configuration.

On Apr 29, 2005, at 3:27 AM, Ross wrote:
I get the following mail problem when trying to send from localhost. 
Any
ideas?

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 
Unable to
relay for [EMAIL PROTECTED] in c:\Inetpub\wwwroot\ssn\adv_mail.php on 
line
179

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

--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search  Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Mail problem with PEAR

2005-04-12 Thread marc serra
Hi, i want to send an email with an attached file using PEAR classes. I 
succeed to do it with one recipients and more.

I use an external SMTP to send it. My problem is that when i want to 
send an email with for example 4 recipients and 1 attached file, the 
mail is send 4 times to the SMTP server. Is it possible to use PEAR mail 
function to send it 1 time to SMTP server and after that SMTP server 
send it to the 4 recipients ?

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


Re: [PHP] Mail problem with PEAR

2005-04-12 Thread Josip Dzolonga
On , 2005-04-12 at 12:15 +0200, marc serra wrote:
 Hi, i want to send an email with an attached file using PEAR classes. I 
 succeed to do it with one recipients and more.
 
 I use an external SMTP to send it. My problem is that when i want to 
 send an email with for example 4 recipients and 1 attached file, the 
 mail is send 4 times to the SMTP server. Is it possible to use PEAR mail 
 function to send it 1 time to SMTP server and after that SMTP server 
 send it to the 4 recipients ?

Yes, set mail headers for CC and BCC. I'm not very familiar with PEAR's
package for sending mail, but I'm more than sure that it has feature to
set headers. Looking at the manual ( www.php.net/mail ) would be also an
excellent idea, since there are this kind of code examples.

Hope this helps,
Josip Dzolonga
http://josip.dotgeek.org

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



Re: [PHP] Mail with acknowledgement of delivery

2005-04-05 Thread Richard Lynch
On Wed, March 30, 2005 8:31 am, marc serra said:
 I got a problem with mail function. I want to know if it's possible to
 send a email in php and to get back an acknowledgement of delivery. My
 problem is that i want to know if my emails are delivered successfully
 to recipients.

 Can you please tell how to do this if there is a solution.

There really is *NOT* a solution for this, unless you send the recipient a
unique token, and get them to click on a link that tells you they saw it.

Even that, somebody somewhere *could* write a script to fool you, unless
you also try to check that they are human when the click with one of those
warped text images.  Google for 'captcha'

Things that fail, and why/how:

Return-receipt:
The original plan was to have email clients return a receipt when an email
was opened.
Alas, privacy considerations, sheer volume of traffic, and people sending
them to lists of THOUSANDS of recipients made these completely useless.

Embed image with unique URL in HTML-enhanced (cough, cough) email:
Again, privacy concerns mean some people will force this to not work.
Plus, many email clients don't (or were configured not to) do HTML
enhanced email.
Security issues with HTML-enhanced email and privacy concerns killed it.

When you get right down to it, I guess the bottom line is always:

It's none of your damn business when/if I read your stupid email. :-)

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] Mail with acknowledgement of delivery

2005-03-30 Thread marc serra
Hi,
I got a problem with mail function. I want to know if it's possible to 
send a email in php and to get back an acknowledgement of delivery. My 
problem is that i want to know if my emails are delivered successfully 
to recipients.

Can you please tell how to do this if there is a solution.
thank you in advance,
Marc.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Mail with acknowledgement of delivery

2005-03-30 Thread Leif Gregory
Hello marc,

Wednesday, March 30, 2005, 8:31:48 AM, you wrote:
m I got a problem with mail function. I want to know if it's possible
m to send a email in php and to get back an acknowledgement of
m delivery. My problem is that i want to know if my emails are
m delivered successfully to recipients.

About the only way to do that is to add a Return-Path header to the
e-mail so if it bounces the Return-Path address gets the bounce
message.

There is no way to do it more or less real-time because some SMTP
servers will try to send the message to the recipient for sometimes
five days before generating a bounce.


-- 
Leif (TB lists moderator and fellow end user).

Using The Bat! 3.0.9.9 Return (pre-beta) under Windows XP 5.1
Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB

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



Re: [PHP] Mail with acknowledgement of delivery

2005-03-30 Thread Markus Mayer
The mail() function allows you to specify additional headers that go into the 
mail.  Delivery acknowledgement is done using specific headers, the exact 
format of which I don't know off hand.  You will have to find the exact 
formatting information yourself, however this is the way to go.

Markus


On Wednesday 30 March 2005 17:31, marc serra wrote:
 Hi,

 I got a problem with mail function. I want to know if it's possible to
 send a email in php and to get back an acknowledgement of delivery. My
 problem is that i want to know if my emails are delivered successfully
 to recipients.

 Can you please tell how to do this if there is a solution.

 thank you in advance,

 Marc.

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



[PHP] mail() Alternative?

2005-03-23 Thread Dan Joseph
Hi All,

I've had a production system moved to a new server.  Our geniuses here
have refused to allow sendmail on the server and all my e-mail
functions are now gone.  Is there a way around this?  I have already
checked the manual, I don't see anything

-- 
-Dan Joseph

Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life.

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




Re: [PHP] mail() Alternative?

2005-03-23 Thread Chris Boget
 I've had a production system moved to a new server.  Our geniuses here
 have refused to allow sendmail on the server and all my e-mail
 functions are now gone.  Is there a way around this?  I have already
 checked the manual, I don't see anything

You can always look into utilizing PEAR::Mail.  Once implemented, tt makes
it very easy to switch how you send email out.  I recently had to do that
and
it was as easy as doing a global search and replace.

thnx,
Chris

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



Re: [PHP] mail() Alternative?

2005-03-23 Thread Dan Joseph
 You can always look into utilizing PEAR::Mail.  Once implemented, tt makes
 it very easy to switch how you send email out.  I recently had to do that
 and
 it was as easy as doing a global search and replace.

Oh ok.  I will look into Pear, thank you Chris!

-- 
-Dan Joseph

Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life.

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



Re: [PHP] mail() Alternative?

2005-03-23 Thread Guillermo Rauch
Another way is the famous phpmailer() class.

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



[PHP] mail()

2005-03-12 Thread Sebastian
Hi,

it appears mail() stopped working on my server. i recall it worked
previously. since i haven't used mail() in a while i dont recall when it
stopped working. running php 4.3.10

php.ini is default path for send mail which is the correct path for the
server.. anything else i should be looking for?

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



Re: [PHP] mail()

2005-03-12 Thread Guillermo Rauch
Hello Sebastian,

It'd very useful for those who want to help you out, a good
explanation of your error.
For example, you're not quoting some error or some error logs that you
found related to this behavior.

For instance, if you refer to:
http://uk.php.net/mail

You'll see there's a note explaining that in order to use mail(), PHP
must have access to the sendmail binary _during installation_. May be,
during some upgrade, this did not work (it has happened to me several
times)

In the other hand, if the mail() seems to work, but the mail is not
getting delivered successfully, there're some other things to check.

Best,
Guillermo Rauch.

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



[PHP] mail() takes a long time to process

2005-02-26 Thread Dustin Krysak
Hi there, I have a script that uses the mail() function, but for some 
reason the script takes a really long time to finish processing (like 5 
minutes). there are some other functions performed (like sql insert, 
etc) that happen immediately as they should. But the mail takes some 
time to finish processing. If I remove the mail function, the script 
finishes immediately. Any ideas? I have included my code below (used 
for the mail). ideas?

			$ToMail = $_POST['ccEmail'];
			
			$FromMail = [EMAIL PROTECTED];
			
			$FromName = The Name;
			
			$Subject = Your membership;
			
			$xmailer = PHP mailer;
			
			$headers = From: .$FromName..$FromMail.\r\n;
			$headers .= Reply-To: .$FromName..$FromMail.\r\n;
			$headers .= X-Mailer: .$xmailer.\r\n;
			$headers .= Origin: .$_SERVER['REMOTE_ADDR'].\r\n;
			
			$Message = Dear .$_POST['ccfName'].\n,;
			$Message .= Thanks for joining the Coastal Crew!\n;
			$Message .= Below you will find the information required to verfiy 
your email address.\n;
			$Message .= Upon verification, an e-coupon will be presented to you 
in which you can print;
			$Message .=  off for 20% off of your next purchase.\n\nBy clicking 
on this hyperlink:\n;
			$Message .= $verify_url.\nand follow the directions in your web 
browser.\n\n;
			$Message .= Thank you,\nThe Coastal 
Crew.\n.$_SERVER['SERVER_NAME'];
			
			$mailer = mail($ToMail, $Subject, $Message, $headers);

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


[PHP] mail, CRLF, RFCs, MTAs, Windows and Unix [long]

2005-02-17 Thread Christophe Chisogne
I dont know if it's the right place to post, but anyway...
(Sorry for the cross-post.)
I think the doc for the mail function [1] should be improved,
after reading bug 15841 [2], mail.c [3], skim some RFCs,
and after I had different problems with PHP mail()
Basicaly, the doc says to use
- \n in body
- \r\n in extra headers
As far as I understand the matter:
- SMTP requires \r\n : cfr RFCs (ex 822, 2822)
- Under windows, PHP mail directly uses socket and SMTP
- Under *nix, PHP mail uses \n to send subject, to, etc [3]
  to the sendmail/postfix/qmail binary (ok, *nix eol is \n),
  then the MTA uses translate this to SMTP with \r\n
  (adding \r to standalone \n if needed) -- ok, RFC want \r\n
Which basicaly means
- Under windows (SMTP, so \r\n)
  use \r\n for body (doc says \n) : doc KO
  use \r\n for mail headers (doc says \r\n) : doc ok
- Under *nix (local sendmail and eol, so \n, not SMTP)
  use \n for body (doc says \n) : doc ok
  use \n for mail headers (doc says \r\n) : doc KO
So, the doc is sometimes correct, sometimes not,
and it leads to problems (portability, ignored headers,
etc).
I think correct behaviour is
- windows (direct SMTP): use \r\n for headers and body
- *nix (local eol, then SMTP): use \n for headers and body
At least, it seems Postfix works that way, perhaps Qmail too
(I dont know for other MTAs)
My question is twofold (three?)
1. Am I right about that 'correct behaviour' or do I miss something?
2. If I am, could the doc be improved and explain that?
   Ex doc says
   Some poor quality Unix mail transfer agents replace LF by CRLF
   but
   \n is unix end of line, PHP src code use \n itself [3],
   and MTA must speak SMTP and use \r\n, so conversion seems required.
-- I guess 3 is not a very good idea
3. use \n everywhere, php will automagically s#\n#\r\n# on windows only.
   this would add portability between *nix and windows
Christophe
PS Below is an example of problem I had.
If I follow current mail() doc on my Linux server,
ie using \n for body (ok) and \r\n for headers (ko),
something like this will fail:
$headers = From: [EMAIL PROTECTED]: [EMAIL PROTECTED];
$body = Hello\nWorld;
Postfix (which uses \n for local *nix delivery [4])
generates headers with \n for standard headers
and \r\n for extra headers, which break RFCs
and cause many mail clients to see part of the headers
as part of the body (really ugly):
To:   [EMAIL PROTECTED]
Subject:  foo bar\n
From: [EMAIL PROTECTED]
Cc:   [EMAIL PROTECTED]
X-Mailer: efg\r\n
Which some mail clients (thunderbird and others) see as
To:   [EMAIL PROTECTED]
Subject:  foo bar\r\n
From: [EMAIL PROTECTED]-- headers break here
Cc:   [EMAIL PROTECTED]
X-Mailer: efg\r\r\n
[1] PHP manual : mail()
http://www.php.net/manual/en/function.mail.php
[2] PHP Bug 15841
http://bugs.php.net/bug.php?id=15841
[3] PHP src : mail.c
http://cvs.php.net/php-src/ext/standard/mail.c
[4] Subject: Re: CRLF vs. LF (From: Wietse Venema)
http://archives.neohapsis.com/archives/postfix/2000-02/0398.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mail, CRLF, RFCs, MTAs, Windows and Unix [long]

2005-02-17 Thread Richard Lynch
Christophe Chisogne wrote:
 - Under *nix, PHP mail uses \n to send subject, to, etc [3]
to the sendmail/postfix/qmail binary (ok, *nix eol is \n),
then the MTA uses translate this to SMTP with \r\n
(adding \r to standalone \n if needed) -- ok, RFC want \r\n

I use sendmail.

I use \r\n in the headers.

It works.

Perhaps it only adds \r *IF* there is a solo \n there...



At any rate -- Type up whatever you want to appear in the manual in a User
Contributed note.  If it's worth keeping, it will stay there, or even get
promoted up into the official documentation.


I must say, though, that the problem here seems to be with MTAs (and MUAs)
not following the specification rather than PHP not being correctly
documented.

If people are seeing your headers in the body of their email, the MTA/MUA
is probably what's broken, not PHP.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] mail, CRLF, RFCs, MTAs, Windows and Unix [long]

2005-02-17 Thread Richard Lynch

 $headers = From: [EMAIL PROTECTED]: [EMAIL PROTECTED];

Hey, what's that bullcrap \r\ in there after the Cc: line?!

You can't do that!

Use \r\n there or it will NEVER work right.

You're not following the spec.

:-)


-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] mail() function

2005-02-09 Thread Bosky, Dave
I can't seem to get the mail function to work.

Is there a way to authenticate before sending mail, I believe this is my
issue.

 

Also in my php.ini file the parameter sendmail_path is empty. Is this a
required parameter for sending mail?

I'm using Windows/IIS.

 

Thanks,

Dave

 



HTC Disclaimer:  The information contained in this message may be privileged 
and confidential and protected from disclosure. If the reader of this message 
is not the intended recipient, or an employee or agent responsible for 
delivering this message to the intended recipient, you are hereby notified that 
any dissemination, distribution or copying of this communication is strictly 
prohibited.  If you have received this communication in error, please notify us 
immediately by replying to the message and deleting it from your computer.  
Thank you.


Re: [PHP] mail() function

2005-02-09 Thread John Holmes
Bosky, Dave wrote:
I can't seem to get the mail function to work.
Is there a way to authenticate before sending mail, I believe this is my
issue.
No. Manuel will be along soon to tell you to look at the SMTP classes on 
phpclasses.org, though. ;) There are classes there that do this, so try 
them.

Also in my php.ini file the parameter sendmail_path is empty. Is this a
required parameter for sending mail?
I'm using Windows/IIS.
No, since you're not using sendmail on Windows. What are your SMTP 
settings in php.ini?

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals  www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mail() function

2005-02-09 Thread Manuel Lemos
Hello,
on 02/09/2005 07:31 PM John Holmes said the following:
Bosky, Dave wrote:
I can't seem to get the mail function to work.
Is there a way to authenticate before sending mail, I believe this is my
issue.
No. Manuel will be along soon to tell you to look at the SMTP classes on 
phpclasses.org, though. ;) There are classes there that do this, so try 
them.
Thank you for the introduction, John. ;-)
Dave, as John mentioned the PHP mail() function does not know how to 
authenticate.

You may want to try this class that comes with a wrapper function named 
smtp_mail(). It works like the mail function but lets you set the 
authentication credentials as you need.

http://www.phpclasses.org/mimemessage
You also need these:
http://www.phpclasses.org/smtpclass
http://www.phpclasses.org/sasl
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mail problem at interland

2005-01-28 Thread David Robley
On Friday 28 January 2005 16:32, Jason Wong wrote:

 On Friday 28 January 2005 10:09, David Edwards wrote:
 
 I have a fairly simple script written that uses the mail() function on a
 client site hosted at Interland. I have used a similar script quite a few
 times before with no problem. However although the script generates no
 errors, no emails appear at their intended destination. Interland support
 has not been that helpful and they did suggest I try the '-f' option in
 the header. That did not work either. Has anyone seen this before, I am
 running out of ideas. The mail portion of the script is below:

 $headers .= MIME-Version: 1.0\n;
 $headers .= Content-type: text/plain; charset=iso-8859-1\n;
 $headers .= X-Priority: 1\n;
 $headers .= X-MSMail-Priority: High\n;
 $headers .= X-Mailer: php\n;
 $headers .= From: $emailfrom\n;

 $mailsent = mail($emailto, $subject, $msg, $headers,-f . $emailfrom);
 
 1) Use the proper delimiters between headers -- \r\n
 2) Check your mailserver logs
 
3) The From address may cause the mesage to be rejected if it does not have
the same domain as the mailserver.

Cheers
-- 
David Robley

Even the Holodeck women turn me down: Wesley

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



Re: [PHP] mail problem at interland

2005-01-28 Thread R'twick Niceorgaw
Hi David,

On Thu, January 27, 2005 9:09 pm, David Edwards said:
 Hi,

 $headers .= MIME-Version: 1.0\n;
 $headers .= Content-type: text/plain; charset=iso-8859-1\n;
 $headers .= X-Priority: 1\n;
 $headers .= X-MSMail-Priority: High\n;
 $headers .= X-Mailer: php\n;
 $headers .= From: $emailfrom\n;

I believe the headers have to end with a blank line? If I remeber
correctly, the last line in the $headers should have two new lines like

$headers .= From: $emailfrom\n\n;

HTH
-R'twick

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



Re: [PHP] mail problem at interland

2005-01-28 Thread Jason Wong
On Friday 28 January 2005 10:54, R'twick Niceorgaw wrote:

 I believe the headers have to end with a blank line? If I remeber
 correctly, the last line in the $headers should have two new lines like

 $headers .= From: $emailfrom\n\n;

No, the mail() function will automatically take care of the separation of the 
mail headers and the mail body.

-- 
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
--
New Year Resolution: Ignore top posted posts

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



Re: [PHP] mail problem at interland

2005-01-28 Thread Richard Lynch




R'twick Niceorgaw wrote:
 Hi David,

 On Thu, January 27, 2005 9:09 pm, David Edwards said:
 Hi,

 $headers .= MIME-Version: 1.0\n;
 $headers .= Content-type: text/plain; charset=iso-8859-1\n;
 $headers .= X-Priority: 1\n;
 $headers .= X-MSMail-Priority: High\n;
 $headers .= X-Mailer: php\n;
 $headers .= From: $emailfrom\n;

 I believe the headers have to end with a blank line? If I remeber
 correctly, the last line in the $headers should have two new lines like

 $headers .= From: $emailfrom\n\n;

mail() will take care of that.

You might want to use \r\n instead of just \n, as that's what it's
technically supposed to be -- Though I think it works just fine on
Un*x-like boxes to use just \n...

You might want to add Reply-to: as well as From with the same setting to
keep more email clients happy.


-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] mail problem at interland

2005-01-27 Thread David Edwards
Hi,

I have a fairly simple script written that uses the mail() function on a 
client site hosted at Interland. I have used a similar script quite a few 
times before with no problem. However although the script generates no 
errors, no emails appear at their intended destination. Interland support 
has not been that helpful and they did suggest I try the '-f' option in the 
header. That did not work either. Has anyone seen this before, I am running 
out of ideas. The mail portion of the script is below:

$headers .= MIME-Version: 1.0\n;
$headers .= Content-type: text/plain; charset=iso-8859-1\n;
$headers .= X-Priority: 1\n;
$headers .= X-MSMail-Priority: High\n;
$headers .= X-Mailer: php\n;
$headers .= From: $emailfrom\n;

$mailsent = mail($emailto, $subject, $msg, $headers,-f . $emailfrom);

Any help would be MUCH appreciated.



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



Re: [PHP] mail problem at interland

2005-01-27 Thread Jason Wong
On Friday 28 January 2005 10:09, David Edwards wrote:

 I have a fairly simple script written that uses the mail() function on a
 client site hosted at Interland. I have used a similar script quite a few
 times before with no problem. However although the script generates no
 errors, no emails appear at their intended destination. Interland support
 has not been that helpful and they did suggest I try the '-f' option in the
 header. That did not work either. Has anyone seen this before, I am running
 out of ideas. The mail portion of the script is below:

 $headers .= MIME-Version: 1.0\n;
 $headers .= Content-type: text/plain; charset=iso-8859-1\n;
 $headers .= X-Priority: 1\n;
 $headers .= X-MSMail-Priority: High\n;
 $headers .= X-Mailer: php\n;
 $headers .= From: $emailfrom\n;

 $mailsent = mail($emailto, $subject, $msg, $headers,-f . $emailfrom);

1) Use the proper delimiters between headers -- \r\n
2) Check your mailserver logs

-- 
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
--
New Year Resolution: Ignore top posted posts

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



Re: [PHP] mail() function on linux

2005-01-18 Thread Richard Lynch




Nicolae Serban wrote:
 I have this code to send an e-mail !!!

 $ok=mail($dest, $subject, $mesaj,
  From: $expe\r\n
   .Reply-To: $expe\r\n
   .X-Mailer: PHP/ . phpversion());

 It works on windows, i must change something to work on linux 

No, but the Linux server's php.ini file has to set up a valid sendmail
setting which the PHP user can actually run and successfully send email...

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] mail() function on linux

2005-01-17 Thread Nicolae Serban
I have this code to send an e-mail !!!

$ok=mail($dest, $subject, $mesaj,
 From: $expe\r\n
  .Reply-To: $expe\r\n
  .X-Mailer: PHP/ . phpversion());

It works on windows, i must change something to work on linux 

Thanks

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



[PHP] PHP - mail problems - HELP!!! PLEASE

2005-01-15 Thread Kelly
I am having trouble with PHP 5.0.3.  I am running Apache 1.3.29.  I am 
running Solaris 9 x86 on an Intel box.

I get no errors when I start Apache.  I get no errors when I run configtest.
My problem is mail() does not work.  It does invoke sendmail as there is 
activity in sendmail log.

When I get an error page it does not display PHP is exposed.  It is 
exposed in php.ini.

register_globals is turned on right now.
Variables to parse into values.
$MESG = $_POST['comments']; parses to values.

This is the log from sendmail.
The first is sending mail from WEBMIN.  The second is sending from PHP 
mail().

'WEBMIN'
Jan 14 20:03:13 www sendmail[17613]: [ID 801593 mail.info] 
j0F23DBA017613: [EMAIL PROTECTED], size=889, class=0, 
nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
Jan 14 20:03:14 www sendmail[17616]: [ID 801593 mail.info] 
j0F23D4b017616: from=[EMAIL PROTECTED], size=1083, class=0, 
nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA-v4, 
relay=localhost [127.0.0.1]
Jan 14 20:03:14 www sendmail[17613]: [ID 801593 mail.info] 
j0F23DBA017613: [EMAIL PROTECTED], 
[EMAIL PROTECTED] (0/1), delay=00:00:01, xdelay=00:00:01, 
mailer=relay, pri=30889, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, 
stat=Sent (j0F23D4b017616 Message accepted for delivery)
Jan 14 20:03:15 www sendmail[17618]: [ID 801593 mail.info] 
j0F23D4b017616: to=[EMAIL PROTECTED], 
ctladdr=[EMAIL PROTECTED] (0/1), delay=00:00:01, 
xdelay=00:00:01, mailer=esmtp, pri=121083, relay=boredomsoftware.com. 
[67.18.56.2], dsn=2.0.0, stat=Sent (OK id=1CpdH0-00067K-Lb)

'PHP mail()'
Jan 14 20:04:41 www sendmail[17630]: [ID 801593 mail.info] 
j0F24f8b017630: from=nobody, size=200, class=0, nrcpts=0, 
msgid=[EMAIL PROTECTED], 
[EMAIL PROTECTED]


Can someone please help me figure this out?  I am desperate!!  I am also 
at my wits end.  I have been fighting with this for a week. 

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


[PHP] Re: PHP - mail problems - HELP!!! PLEASE

2005-01-15 Thread Manuel Lemos
Hello,
on 01/15/2005 12:59 AM Kelly said the following:
I am having trouble with PHP 5.0.3.  I am running Apache 1.3.29.  I am 
running Solaris 9 x86 on an Intel box.

I get no errors when I start Apache.  I get no errors when I run 
configtest.

My problem is mail() does not work.  It does invoke sendmail as there is 
activity in sendmail log.

When I get an error page it does not display PHP is exposed.  It is 
exposed in php.ini.
Does the address [EMAIL PROTECTED] exist? If it doesn't, it seems 
the messages that are not delivered are discarded because they are set 
to bounce to that address and if it does not exist the bounces are 
dropped. Message bounces contain explanations of the message delivery 
problems, so you need to fix the bounce address so you can see what is 
the problem of the bounces.


--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP - mail problems - HELP!!! PLEASE

2005-01-15 Thread John Hicks
Kelly wrote:
I am having trouble with PHP 5.0.3.  I am running Apache 1.3.29.  I am 
running Solaris 9 x86 on an Intel box.

I get no errors when I start Apache.  I get no errors when I run 
configtest.

My problem is mail() does not work.  It does invoke sendmail as there 
is activity in sendmail log.

When I get an error page it does not display PHP is exposed.  It is 
exposed in php.ini.

register_globals is turned on right now.
Variables to parse into values.
$MESG = $_POST['comments']; parses to values.

This is the log from sendmail.
The first is sending mail from WEBMIN.  The second is sending from PHP 
mail().

'WEBMIN'
Jan 14 20:03:13 www sendmail[17613]: [ID 801593 mail.info] 
j0F23DBA017613: [EMAIL PROTECTED], size=889, class=0, 
nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
Jan 14 20:03:14 www sendmail[17616]: [ID 801593 mail.info] 
j0F23D4b017616: from=[EMAIL PROTECTED], size=1083, class=0, 
nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA-v4, 
relay=localhost [127.0.0.1]
Jan 14 20:03:14 www sendmail[17613]: [ID 801593 mail.info] 
j0F23DBA017613: [EMAIL PROTECTED], 
[EMAIL PROTECTED] (0/1), delay=00:00:01, 
xdelay=00:00:01, mailer=relay, pri=30889, relay=[127.0.0.1] 
[127.0.0.1], dsn=2.0.0, stat=Sent (j0F23D4b017616 Message accepted for 
delivery)
Jan 14 20:03:15 www sendmail[17618]: [ID 801593 mail.info] 
j0F23D4b017616: to=[EMAIL PROTECTED], 
ctladdr=[EMAIL PROTECTED] (0/1), delay=00:00:01, 
xdelay=00:00:01, mailer=esmtp, pri=121083, relay=boredomsoftware.com. 
[67.18.56.2], dsn=2.0.0, stat=Sent (OK id=1CpdH0-00067K-Lb)

'PHP mail()'
Jan 14 20:04:41 www sendmail[17630]: [ID 801593 mail.info] 
j0F24f8b017630: from=nobody, size=200, class=0, nrcpts=0, 
msgid=[EMAIL PROTECTED], 
[EMAIL PROTECTED]


Can someone please help me figure this out?  I am desperate!!  I am 
also at my wits end.  I have been fighting with this for a week.
Kelly

What do you mean by:
When I get an error page it does not display PHP is exposed.  It is 
exposed in php.ini. 

Is mail() returning an error? If so, what is it?
Have you had the same PHP code working in a different environment?
If you haven't figured out the problem yet, post your PHP code here.
-John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] mail() w/ postfix problem in Fedora Core 3

2005-01-10 Thread Nathaniel Price
I've been searching for the solution to this problem to no avail.
I recently did a clean install of FC3 on a server that was running RH8. 
There were a number of PHP scripts that I had configured to send out 
email for notices or passwords or the like. However, now that I've 
upgraded I can't send mail through the mail() command in PHP.

My problem is exactly like what I found here, but unfortunately that 
question was left unanswerd: 
https://www.redhat.com/archives/fedora-list/2004-December/msg06708.html

To summarize, I have no problem sending email via SMTP (one of the apps 
I run has the option to choose between using PHP mail() or using it's 
own SMTP client). Whenever I try to send mail with mail(), apache logs 
the following error:
  sendmail: fatal: chdir /var/spool/postfix: Permission denied
Postfix logs nothing.

I have checked the permissions on the /var/spool/postfix directory, and 
they seem to be in order:
  drwxr-xr-x  16 root   root4096 Nov 23 05:11 postfix

php.ini is configured with:
  sendmail_path = /usr/sbin/sendmail -t -i
/usr/sbin/sendmail is a link to /etc/alternatives/mta which is a link to 
/usr/sbin/sendmail.postfix. All of these are world readable and executable.

This setting is not overriden anywhere else (tested with phpinfo()).
Does anyone know what's wrong and how to fix it? If not, is there a 
drop-in replacement for the sendmail command that will just forward the 
request to postfix via SMTP?

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


Re: [PHP] mail() w/ postfix problem in Fedora Core 3

2005-01-10 Thread Richard Lynch
Nathaniel Price wrote:
 I've been searching for the solution to this problem to no avail.

 I recently did a clean install of FC3 on a server that was running RH8.
 There were a number of PHP scripts that I had configured to send out
 email for notices or passwords or the like. However, now that I've
 upgraded I can't send mail through the mail() command in PHP.

 My problem is exactly like what I found here, but unfortunately that
 question was left unanswerd:
 https://www.redhat.com/archives/fedora-list/2004-December/msg06708.html

 To summarize, I have no problem sending email via SMTP (one of the apps
 I run has the option to choose between using PHP mail() or using it's
 own SMTP client). Whenever I try to send mail with mail(), apache logs
 the following error:
sendmail: fatal: chdir /var/spool/postfix: Permission denied

Confirm what user PHP is running as.  http://php.net/phpinfo.php

su to that user.

try to do:
cd /var/spool/postfix

Or is 'chdir' not 'cd' ?

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] mail() w/ postfix problem in Fedora Core 3

2005-01-10 Thread Rasmus Lerdorf
Nathaniel Price wrote:
I've been searching for the solution to this problem to no avail.
I recently did a clean install of FC3 on a server that was running RH8. 
There were a number of PHP scripts that I had configured to send out 
email for notices or passwords or the like. However, now that I've 
upgraded I can't send mail through the mail() command in PHP.

My problem is exactly like what I found here, but unfortunately that 
question was left unanswerd: 
https://www.redhat.com/archives/fedora-list/2004-December/msg06708.html

To summarize, I have no problem sending email via SMTP (one of the apps 
I run has the option to choose between using PHP mail() or using it's 
own SMTP client). Whenever I try to send mail with mail(), apache logs 
the following error:
  sendmail: fatal: chdir /var/spool/postfix: Permission denied
Postfix logs nothing.

I have checked the permissions on the /var/spool/postfix directory, and 
they seem to be in order:
  drwxr-xr-x  16 root   root4096 Nov 23 05:11 postfix

php.ini is configured with:
  sendmail_path = /usr/sbin/sendmail -t -i
/usr/sbin/sendmail is a link to /etc/alternatives/mta which is a link to 
/usr/sbin/sendmail.postfix. All of these are world readable and executable.

This setting is not overriden anywhere else (tested with phpinfo()).
Does anyone know what's wrong and how to fix it? If not, is there a 
drop-in replacement for the sendmail command that will just forward the 
request to postfix via SMTP?
As always, the way to debug this is to sudo to the web server user id 
and issue the /usr/sbin/sendmail -t -i command on a mail message and 
figure out why it isn't working.  This has nothing to do with PHP.

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


Re: [PHP] mail() w/ postfix problem in Fedora Core 3 FIXED

2005-01-10 Thread Nathaniel Price
Nathaniel Price wrote:
I've been searching for the solution to this problem to no avail.
I recently did a clean install of FC3 on a server that was running 
RH8. There were a number of PHP scripts that I had configured to send 
out email for notices or passwords or the like. However, now that I've 
upgraded I can't send mail through the mail() command in PHP.

My problem is exactly like what I found here, but unfortunately that 
question was left unanswerd: 
https://www.redhat.com/archives/fedora-list/2004-December/msg06708.html

[snip]
I found out what the problem was on the fedora-users mailing list. It 
turns out that it was a 'problem' with Fedora Core 3. By default it uses 
SELinux to secure the httpd binary against executing other stuff it's 
not supposed to, including the postfix sendmail-compatible interface. 
FC's documentation on SELinux can be found here:

http://fedora.redhat.com/docs/selinux-apache-fc3/
Thanks for your help and suggestions on this admittedly non-obvious problem.
Nathaniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php mail

2004-12-13 Thread Richard Lynch
PHPDiscuss - PHP Newsgroups and mailing lists wrote:
 I have a dedicated Red Hat linux boxed leased from Interland and the php
 mail function does not work.  I have found several articles on things to
 try and have tried everything I saw but to no avail.  I set up a php
 script to mail and then print the return code and I get a 1 (success).
 But the mail never arrives.  Is there any way I could get some help with
 this.  I could post my phpinfo() information or anything else that may
 help.

After doing all the other suggestions, su to the PHP user, and see if
*that* user has permission to send email.

If not, change that permission setup to allow that user to send email.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] php mail

2004-12-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I have a dedicated Red Hat linux boxed leased from Interland and the php
mail function does not work.  I have found several articles on things to
try and have tried everything I saw but to no avail.  I set up a php
script to mail and then print the return code and I get a 1 (success). 
But the mail never arrives.  Is there any way I could get some help with
this.  I could post my phpinfo() information or anything else that may
help.

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



[PHP] php mail

2004-12-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I have a dedicated Red Hat linux boxed leased from Interland and the php
mail function does not work.  I have found several articles on things to
try and have tried everything I saw but to no avail.  I set up a php
script to mail and then print the return code and I get a 1 (success). 
But the mail never arrives.  Is there any way I could get some help with
this.  I could post my phpinfo() information or anything else that may
help.

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



Re: [PHP] Php Mail not working properly

2004-12-10 Thread Matthew Sims
 I have a dedicated Red Hat linux boxed leased from Interland and the php
 mail function does not work.  I have found several articles on things to
 try and have tried everything I saw but to no avail.  I set up a php
 script to mail and then print the return code and I get a 1 (success).
 But the mail never arrives.  Is there any way I could get some help with
 this.  I could post my phpinfo() information or anything else that may
 help.


Can you send mail from the server? Meaning:

$ echo Testing email | sendmail [EMAIL PROTECTED]

Did you receive the mail? Can you send mail to the server itself by
replying back to the email?

If your answer is no to at least the first part, then you need to setup a
mail server.


-- 
--Matthew Sims
--http://killermookie.org

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



[PHP] Re: Php Mail not working properly

2004-12-10 Thread Manuel Lemos
Hello,
Phpdiscuss - Php Newsgroups And Mailing Lists wrote:
I have a dedicated Red Hat linux boxed leased from Interland and the php
mail function does not work.  I have found several articles on things to
try and have tried everything I saw but to no avail.  I set up a php
script to mail and then print the return code and I get a 1 (success). 
But the mail never arrives.  Is there any way I could get some help with
this.  I could post my phpinfo() information or anything else that may
Either the message bounced or it is in the queue awaiting for delivery.
If you are using sendmail or exim try mailq from the root account to see 
if the message is in thq queue.

If the message is not in the queue, it bounced to the return path 
address. You can set the return path address using the mail function 5th 
argument. You may also want to take a look at this class that lets you 
specify the return path address just setting the return-path: header. 
The examples show how to do that.

http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


<    1   2   3   4   5   6   7   8   9   10   >