Re: [PHP] Problems with mail

2007-04-02 Thread Chris

Mário Gamito wrote:

Hi,

I have this very straight forward code to send an e-mail:

$subject_users_subscription_confirmation = "Subscription confirmation";
$message_users_subscription_confirmation = 'Please, click this link to
confirm your subscritpion:
http://www.telbit.pt/subscribe-confirm.php?email=' . $email . '&conf=' .
$barfles;

mail($email, $subject_users_subscription_confirmation,
$message_users_subscription_confirmation);  

The three variables are ok, as i debuged them with prints, but no mail
is sent.

If i do a test with

mail('[EMAIL PROTECTED]', 'Hello', 'Hello');

then the mail is sent ok!


So mail() works, which means you're doing something wrong or your host 
is blocking the email or spam filters are catching it.


If you're on a test machine, watch the mail logs and see if that gives 
you any clues about what's going on.


--
Postgresql & php tutorials
http://www.designmagick.com/

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



Re: [PHP] Problems with mail

2007-04-02 Thread cajbecu
Mário Gamito wrote:
> Hi,
> 
> I have this very straight forward code to send an e-mail:
> 
> $subject_users_subscription_confirmation = "Subscription confirmation";
> $message_users_subscription_confirmation = 'Please, click this link to
> confirm your subscritpion:
> http://www.telbit.pt/subscribe-confirm.php?email=' . $email . '&conf=' .
> $barfles;
> 
> mail($email, $subject_users_subscription_confirmation,
> $message_users_subscription_confirmation);
> 

try:

$message_users_subscription_confirmation = "Please, click this link to
confirm your subscritpion:
http://www.telbit.pt/subscribe-confirm.php?email="; . $email . "&conf=" .
$barfles;


(change simple quote: ' with double quote: " )

cajb.

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



[PHP] Problems with mail

2007-04-02 Thread Mário Gamito
Hi,

I have this very straight forward code to send an e-mail:

$subject_users_subscription_confirmation = "Subscription confirmation";
$message_users_subscription_confirmation = 'Please, click this link to
confirm your subscritpion:
http://www.telbit.pt/subscribe-confirm.php?email=' . $email . '&conf=' .
$barfles;

mail($email, $subject_users_subscription_confirmation,
$message_users_subscription_confirmation);  

The three variables are ok, as i debuged them with prints, but no mail
is sent.

If i do a test with

mail('[EMAIL PROTECTED]', 'Hello', 'Hello');

then the mail is sent ok!

I'm driving nuts here.

Can someone give me a hand on this, please ?

Warm Regards
-- 
:wq! Mário Gamito

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



Re: [PHP] Problems with mail function

2006-10-24 Thread Chris

Ricardo Ríos wrote:
Hi wizards, I 'm trying to use mail function in PHP, but this function 
don't

send the email , I have a server with postfix. Does somebody know how to
send an email with php and postfix. Thanks in advance.


Create a phpinfo page and make sure the 'sendmail_path' is set.

If that's set, you can just use php mail() as normal. The mail() command 
doesn't care about what sort of MTA it uses, it just cares it knows 
where it is and how to access it.


--
Postgresql & php tutorials
http://www.designmagick.com/

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



Re: [PHP] Problems with mail function

2006-10-24 Thread Jochem Maas
John Nichel wrote:
> Ricardo Ríos wrote:
>> Hi wizards, I 'm trying to use mail function in PHP, but this function
>> don't
>> send the email , I have a server with postfix. Does somebody know how to
>> send an email with php and postfix. Thanks in advance.
>>
> 
> Does your install of postfix have a sendmail wrapper?  Is it in the
> normal sendmail location (/usr/bin/sendmail)?  Is this on the same
> machine as your php install?  Does the user in which Apache is running
> as have permission to invoke the sendmail wrapper?

what does the error msg say? is display_errors on?
is error_reporting() set to E_ALL? ...

does he eat cheese? :-)

> 

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



Re: [PHP] Problems with mail function

2006-10-24 Thread John Nichel

Ricardo Ríos wrote:
Hi wizards, I 'm trying to use mail function in PHP, but this function 
don't

send the email , I have a server with postfix. Does somebody know how to
send an email with php and postfix. Thanks in advance.



Does your install of postfix have a sendmail wrapper?  Is it in the 
normal sendmail location (/usr/bin/sendmail)?  Is this on the same 
machine as your php install?  Does the user in which Apache is running 
as have permission to invoke the sendmail wrapper?


--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

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



[PHP] Problems with mail function

2006-10-24 Thread Ricardo Ríos

Hi wizards, I 'm trying to use mail function in PHP, but this function don't
send the email , I have a server with postfix. Does somebody know how to
send an email with php and postfix. Thanks in advance.


Re: [PHP] Problems with mail function

2004-11-08 Thread Jason Wong
On Monday 08 November 2004 08:23, Pete wrote:
> I have a problem with a standard mail() function.
>
> If I put a short message ( "test" ) into it, then the email is sent.
>
> If I put a longer  message in (Visitors name and address collected from
> webpage), then the mail is not sent.

So you're suspecting size is the problem? Have you tried to figure out what 
size limit is?

-- 
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
--
/*
In the long run we are all dead.
  -- John Maynard Keynes
*/

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



[PHP] Problems with mail function

2004-11-08 Thread Pete

I have a problem with a standard mail() function.  

If I put a short message ( "test" ) into it, then the email is sent.  

If I put a longer  message in (Visitors name and address collected from
webpage), then the mail is not sent.  

No error message is generated, the mail just doesn't arrive.

The client has PHP Version 4.3.1 on Windows NT localhost 5.2 build 3790 
-- 
Pete Clark

http://www.hotcosta.com
http://www.spanishholidaybookings.com

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



RE: [PHP] Problems with mail and php

2004-04-12 Thread jon roig
Take a look at the email address in the log... Seems to be missing a
.com.

Might that be your problem?

-- jon

-Original Message-
From: Luis Lebron [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 8:48 AM
To: Php-General (E-mail)
Subject: [PHP] Problems with mail and php 


I have a development box that uses our company's Exchange server as an
smtp host. All of a sudden, the php mail function has stopped working. I
can, however, send a message using mutt. 

Here's the output of the maillog: 

Apr 12 10:38:51 localhost sendmail[11879]: i3CFckaV011877:
to=<[EMAIL PROTECTED]>, ctladdr=<[EMAIL PROTECTED]> (48/48),
delay=00:00:04, xdelay=00:00:04, mailer=relay, pri=30323,
relay=sigma2.localdomain. [192.168.168.4], dsn=2.0.0, stat=Sent (OK)

As far as I can tell the message is being sent by sendmail. Any ideas on
where to look?

thanks,

Luis R. Lebron
Project Manager
Sigmatech, Inc

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.644 / Virus Database: 412 - Release Date: 3/26/2004
 
  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.644 / Virus Database: 412 - Release Date: 3/26/2004
 

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



[PHP] Problems with mail and php

2004-04-12 Thread Luis Lebron
I have a development box that uses our company's Exchange server as an smtp
host. All of a sudden, the php mail function has stopped working.
I can, however, send a message using mutt. 

Here's the output of the maillog: 

Apr 12 10:38:51 localhost sendmail[11879]: i3CFckaV011877:
to=<[EMAIL PROTECTED]>, ctladdr=<[EMAIL PROTECTED]> (48/48),
delay=00:00:04, xdelay=00:00:04, mailer=relay, pri=30323,
relay=sigma2.localdomain. [192.168.168.4], dsn=2.0.0, stat=Sent (OK)

As far as I can tell the message is being sent by sendmail. Any ideas on
where to look?

thanks,

Luis R. Lebron
Project Manager
Sigmatech, Inc


[PHP] Problems with mail() w/Win2k

2002-05-16 Thread Jared Boelens

Hey guys I recently join this list and this is my first real post to it so
if I f**k something up please do beat me to death. :)

I have a simple mailer script that was mailing POSTed form information to a
client, this script was running on a Debian box w/Apache.  This server is
having hardware issues so I moved the sites to a win2k machine.  The same
script bombs out when it trys to use the mail() function.

The error message I receive is not so enlightening:

Warning: Server Error in D:\Inetpub\belcoind.com\mailFunc.php on line 24

I changed the line in the php.ini to read:

SMTP = localhost;

the server has its own smtp service running on it

I also tried:

SMTP = mail.mydomain.com;

This genereated the same problem.

I have been using PHP with Apache forever but I rarely use it on Windows so
any insight into this problem would be great.


Thanks in advance,

-Jared


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




RE: [PHP] Problems with Mail() and BCC

2001-07-16 Thread Jason Murray

> I must be doing something wrong with the headers. Can someone 
> send me an example of how to send a message with multiple addresses 
> as BCCs?

mail("[EMAIL PROTECTED]",
 "Subject Line"
 "Email Contect",
 "Bcc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]\n");

Jason

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




[PHP] Problems with Mail() and BCC

2001-07-16 Thread rodrigo

I must be doing something wrong with the headers. Can someone send me an
example of how to send a message with multiple addresses as BCCs?

It is a program i wrote that builds the header from multiple email
addresses in a database. The people on the emails are not getting the
message.

Thanks in advance.
-- 

Ivan R. Quintero E.* (507)228-3477  
Aptdo 1263 * (507)228-9105
Balboa, Ancon  * 612-1103
Republic of Panama * 


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




[PHP] Problems with mail() function

2001-07-11 Thread rodrigo

Hello. I wrote a routine that queries a table (Mysql) to pull about 300
records and record their emails. I iterate over this recorset invoking
the mail() function to send an email for each record in this recordset.

The problem is that on my providers server, there is a big delay before
the script end execution. When it takes too long I hit the "stop" button
on the browser, but when I do this the users receive the same email
twice.

Why is this happening?
-- 

Ivan R. Quintero E.* (507)228-3477  
Aptdo 1263 * (507)228-9105
Balboa, Ancon  * 612-1103
Republic of Panama * 


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




Re: [PHP] Problems with mail() function

2001-05-23 Thread Tolga \"thorr\" Orhon

I had smilar problems before and found out that I missed some "\n"s. It
seems that you missed a "\n" at the end of headers. That might be a reason.
Another solution might be replacing "\n"s with "\r\n". I heard in newsgroups
and in some documentations that this might be problem in some systems.

I recommend to read the source of message after you get it. It is a nce way
to debug problems and gives out lots of information. (correct headres,
messages etc..)

Yours,

--
Tolga 'thorr' Orhon

""Kevin Fogleman"" <[EMAIL PROTECTED]> wrote in message
9egjrq$r15$[EMAIL PROTECTED]">news:9egjrq$r15$[EMAIL PROTECTED]...
> The problems that I'm having with the mail function stem from the extra
> arguments that I'm trying to pass it.  What I'm trying to do is write a
> script to mail links to interesting stories to other people.  In doing
this,
> I want to make the mail appear that it came from the e-mail address of the
> person who wanted to send the link.  So, what I've tried so far is this:
>
> $message_subject="This message is a test";
> $extraparams="From:
>
".$HTTP_POST_VARS['youraddress']."\nReply-To:".$HTTP_POST_VARS['youraddress'
> ]."\nX-Mailer: PHP/". phpversion();
>
> $message=$message_header.$HTTP_POST_VARS['message'].$message_footer;
> $success=mail($HTTP_POST_VARS['email'], $message_subject, $message,
> $extra_params)
>or die("Whoops, looks like mail() isn't configured
in
> this installation of PHP!");
>
> The message that I recieve when I run this script has a "From:" field
> reading as the user that the script is running under on the web server,
and
> I recieve a blank message body, as well as no subject.
>
> I decided to try using the mail() function with just the first three
> arguments (i.e. the destination address, the subject, and the message
body),
> and it kind of worked, meaning that it sent me a message with the correct
> subject filled out, and the correct message body, but it was still coming
> from the same address, the name of the web server user.  Can someone help
me
> with placing the correct args in the 4th parameter to get mail() or
Sendmail
> or whatever to send a message with the correct return address and From:
> field?
>
> Thank you,
>
> Kevin Fogleman
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



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




[PHP] Problems with mail() function

2001-05-23 Thread Kevin Fogleman

The problems that I'm having with the mail function stem from the extra
arguments that I'm trying to pass it.  What I'm trying to do is write a
script to mail links to interesting stories to other people.  In doing this,
I want to make the mail appear that it came from the e-mail address of the
person who wanted to send the link.  So, what I've tried so far is this:

$message_subject="This message is a test";
$extraparams="From:
".$HTTP_POST_VARS['youraddress']."\nReply-To:".$HTTP_POST_VARS['youraddress'
]."\nX-Mailer: PHP/". phpversion();

$message=$message_header.$HTTP_POST_VARS['message'].$message_footer;
$success=mail($HTTP_POST_VARS['email'], $message_subject, $message,
$extra_params)
   or die("Whoops, looks like mail() isn't configured in
this installation of PHP!");

The message that I recieve when I run this script has a "From:" field
reading as the user that the script is running under on the web server, and
I recieve a blank message body, as well as no subject.

I decided to try using the mail() function with just the first three
arguments (i.e. the destination address, the subject, and the message body),
and it kind of worked, meaning that it sent me a message with the correct
subject filled out, and the correct message body, but it was still coming
from the same address, the name of the web server user.  Can someone help me
with placing the correct args in the 4th parameter to get mail() or Sendmail
or whatever to send a message with the correct return address and From:
field?

Thank you,

Kevin Fogleman



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




Re: [PHP] Problems with mail function

2001-03-14 Thread stas

I have the same problem. Mail function works fine on my NT development box,
but when I transfer files over to Unix, it doesn't, as if mail goes into the
void. The only setting you need on Unix is the sendmail path, no? SMTP and
sendmail_from are not required and are ignored, is that correct?


stas


- Original Message -
From: "Colin May" <[EMAIL PROTECTED]>
To: "Kike" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, March 14, 2001 11:01 AM
Subject: Re: [PHP] Problems with mail function


>
> Quoting Kike (Wed, Mar 14, 2001 at 11:59:32AM -)
> > Hi,
> > I have a seious problem with the mail function. It does not send the
emails.
> > It returns 1 but does not send them. I think it may be a problem with
> > sendmail permissions. Can you help me? Please.
>
> What do the sendmail mail logs say?  if you havent got access to them, ask
> someone who has?




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




Re: [PHP] Problems with mail function

2001-03-14 Thread Colin May


Quoting Kike (Wed, Mar 14, 2001 at 11:59:32AM -)
> Hi,
> I have a seious problem with the mail function. It does not send the emails.
> It returns 1 but does not send them. I think it may be a problem with
> sendmail permissions. Can you help me? Please.

What do the sendmail mail logs say?  if you havent got access to them, ask 
someone who has?

-- 

Colin May  | "its an illusion, its a game, a reflection of
mailto:[EMAIL PROTECTED]  | someone elses name" - abacab, genesis
http://www.wibble.org.uk   | http://www.abacab.org.uk


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




[PHP] Problems with mail function

2001-03-14 Thread Kike

Hi,
I have a seious problem with the mail function. It does not send the emails.
It returns 1 but does not send them. I think it may be a problem with
sendmail permissions. Can you help me? Please.


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




[PHP] problems with mail()

2001-02-23 Thread Chris Lee

mail seems to be just throwing the 'extra headers' in with the body...



  $email_text_body = "Hello {$people->people_name[$pos]} how are you
today?";

  $email_html_body  = "";
  $email_html_body .= "";
  $email_html_body .= "";
  $email_html_body .= "";
  $email_html_body .= "";
  $email_html_body .= "Hello
{$people->people_name[$pos]} How are you today?";
  $email_html_body .= "";
  $email_html_body .= "";
  $email_html_body .= "";
  $email_html_body .= "";
  $email_html_body .= "";

  $email_boundary = uniqid('HTML');

  $email_headers  = "From: MyHearingStore.com
<[EMAIL PROTECTED]>\r\n";
  $email_headers .= "Return-Path: <[EMAIL PROTECTED]>\r\n";
  $email_headers .= "MIME-Version: 1.0\r\n";
  $email_headers .= "Content-Type: multipart/alternative;\r\n
boundary='$email_boundary'\r\n";
  $email_headers .= "This is a multi-part message in MIME format.\r\n\r\n";

  $email_body  = "--$email_boundary\r\n";
  $email_body .= "Content-Type: text/plain;\r\n  charset='ISO-8859-1'\r\n";
  $email_body .= "Content-Transfer-Encoding: ISO-8859-1\r\n\r\n";
  $email_body .= $email_text_body;

  $email_body .= "--$email_boundary\r\n";
  $email_body .= "Content-Type: text/html;\r\n  charset=ISO-8859-1\r\n";
  $email_body .= "Content-Transfer-Encoding: ISO-8859-1\r\n\r\n";
  $email_body .= $email_html_body;

  mail($people->people_email[$pos], 'An HTML Message', $email_body,
$email_headers);




outputs this.





Return-Path: 
Received: (from nobody@localhost)
 by server.mediawaveonline.com (8.9.3/8.9.3) id PAA30279;
 Fri, 23 Feb 2001 15:55:53 -0800
Date: Fri, 23 Feb 2001 15:55:53 -0800
From: Nobody <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Status:

Subject: An HTML Message
From: MyHearingStore.com <[EMAIL PROTECTED]>
Return-Path: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: multipart/alternative;
  boundary='HTML3a96f889828b4'
This is a multi-part message in MIME format.



--HTML3a96f889828b4
Content-Type: text/plain;
  charset='ISO-8859-1'
Content-Transfer-Encoding: ISO-8859-1

Hello test how are you today?--HTML3a96f889828b4
Content-Type: text/html;
  charset=ISO-8859-1
Content-Transfer-Encoding: ISO-8859-1

Hello
test How are you today?



its supposed to be this.


Return-Path: 
Received: (from nobody@localhost)
 by server.mediawaveonline.com (8.9.3/8.9.3) id PAA30279;
 Fri, 23 Feb 2001 15:55:53 -0800
Date: Fri, 23 Feb 2001 15:55:53 -0800
From: Nobody <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: An HTML Message
From: MyHearingStore.com <[EMAIL PROTECTED]>
Return-Path: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: multipart/alternative;
  boundary='HTML3a96f889828b4'
This is a multi-part message in MIME format.
Status:


--HTML3a96f889828b4
Content-Type: text/plain;
  charset='ISO-8859-1'
Content-Transfer-Encoding: ISO-8859-1

Hello test how are you today?--HTML3a96f889828b4
Content-Type: text/html;
  charset=ISO-8859-1
Content-Transfer-Encoding: ISO-8859-1

Hello
test How are you today?



any idea's ???


--

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]




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




Re: [PHP] Problems with Mail

2001-02-21 Thread Chris Anderson

thanks ill try that
- Original Message -
From: "David Robley" <[EMAIL PROTECTED]>
To: "Chris Anderson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, February 21, 2001 12:39 AM
Subject: Re: [PHP] Problems with Mail


> On Sat, 17 Feb 2001 08:31, Chris Anderson wrote:
>
> Oy - your version of Windows appears to be lagging a few days behind the
> real world :=)
>
> > true, here it is. Have fun...sorry ^_^
> >
> >  > include "Nav.inc";
> > ?>
> >
> > 
> >
> >  > if(isSet($send) && ($send == 1))
>
> Isn't this redundant? Your test is really if send = 1 do something,
> otherwise do something else.
>
> > {
> >
> >   error_reporting(0);
> >   $Address = "[EMAIL PROTECTED]";
> >   $Subject = "Feedback From NullTechnology.com";
> >   $Message = str_replace("\n","",$Message);
> >   $Mail = mail($Address, $Subject, "$Message \n From: $Return");
>
> This is wrong  The additional stuff needs to go in the fourth
> parameter if you want it to show up in the From field,; as you have it,
> it will be tacked on the end of the message body.
>
> $from = "From: $Return";
> $Mail = mail($Address, $Subject, $Message, $Return);
>
> I wonder if you need to do some text wrapping? Although Outlook generally
> doesn't seem to care about such things, maybe something in the mail chain
> might.
>
> >   if($Mail == 1)
>
> and I think this will always be true once PHP has offloaded the mail to
> the MTA, even if the MTA drops it on the floor.
>
> 
>
> Failing that, you might need to look carefully at the actual content of
> the message - not getting any unexpected characters or somesusch???
>
> --
> David Robley| WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> AusEinet| http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


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




Re: [PHP] Problems with Mail

2001-02-20 Thread David Robley

On Sat, 17 Feb 2001 08:31, Chris Anderson wrote:

Oy - your version of Windows appears to be lagging a few days behind the 
real world :=)

> true, here it is. Have fun...sorry ^_^
>
>  include "Nav.inc";
> ?>
>
> 
>
>  if(isSet($send) && ($send == 1))

Isn't this redundant? Your test is really if send = 1 do something, 
otherwise do something else.

> {
>
>   error_reporting(0);
>   $Address = "[EMAIL PROTECTED]";
>   $Subject = "Feedback From NullTechnology.com";
>   $Message = str_replace("\n","",$Message);
>   $Mail = mail($Address, $Subject, "$Message \n From: $Return");

This is wrong  The additional stuff needs to go in the fourth 
parameter if you want it to show up in the From field,; as you have it, 
it will be tacked on the end of the message body.

$from = "From: $Return";
$Mail = mail($Address, $Subject, $Message, $Return);

I wonder if you need to do some text wrapping? Although Outlook generally 
doesn't seem to care about such things, maybe something in the mail chain 
might.

>   if($Mail == 1)

and I think this will always be true once PHP has offloaded the mail to 
the MTA, even if the MTA drops it on the floor.



Failing that, you might need to look carefully at the actual content of 
the message - not getting any unexpected characters or somesusch???

-- 
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

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




Re: [PHP] Problems with Mail

2001-02-20 Thread Chris Anderson

true, here it is. Have fun...sorry ^_^





",$Message);
  $Mail = mail($Address, $Subject, "$Message \n From: $Return");
  if($Mail == 1)
  {
   echo("Your Mail Was
   Succesfully Sent!");

   exit;
  }
  else
  {
   echo("There Was An
   Error While Processing Your Email");

   exit;
  }


}
else
{

 if(IsSet($Message))
 {

  $Message = str_replace("\n","",$Message);
  $Message = str_replace(" "," ",$Message);
  echo("   
     Message:$Message   
  Return Address: $ReturnIf this is correct click on 'Send
Feedback'
   to send the email, if not you can edit the message
below");
  $Message = str_replace("","\n",$Message);
  $Message = str_replace(" "," ",$Message);
 }
}
?>





method=post>
Type Your Message Here:


If You Want a Reply Type Your Email Address Here:     
");
else
 echo(">");
   ?>

");
else
 echo("'0'>");
   ?>








- Original Message -
From: "David Robley" <[EMAIL PROTECTED]>
To: "Chris Anderson" <[EMAIL PROTECTED]>; "Chris Anderson"
<[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 9:24 PM
Subject: Re: [PHP] Problems with Mail


> On Sat, 17 Feb 2001 05:40, Chris Anderson wrote:
>
> > > I use the php mail function in this file, but it only sends the first
> > line of the text. Any ideas? I attached the file
>
>
> The mailing list stripped your attachment - perhaps you could paste it
> into your message?
>
> --
> David Robley| WEBMASTER & Mail List Admin
> RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
> AusEinet| http://auseinet.flinders.edu.au/
> Flinders University, ADELAIDE, SOUTH AUSTRALIA
>


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




[PHP] Problems with Mail

2001-02-20 Thread Chris Anderson



I use the php mail function in this file, but it 
only sends the first line of the text. Any ideas? I attached the 
file

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


Re: [PHP] Problems with Mail

2001-02-20 Thread David Robley

On Sat, 17 Feb 2001 05:40, Chris Anderson wrote:

> > I use the php mail function in this file, but it only sends the first
> line of the text. Any ideas? I attached the file


The mailing list stripped your attachment - perhaps you could paste it 
into your message?

-- 
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA

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