[PHP-DB] Mail Function

2006-03-01 Thread Mark Bomgardner
I have been racking my brain for the better part of a day with a simple 
mail function.  I am trying to generate a list of events from MySQL and 
then use the php Mail function to email the list in an html email to a 
mailing list.  I keep getting a parse error on a section that I can not 
figure out why.


The code is attached

Markb
?php 
require_once('../../Connections/flatfoot.php');
mysql_select_db($database_flatfoot, $flatfoot);
$query_Recordset1 = SELECT * FROM tblTrnEvent WHERE tblTrnEvent.Sdate BETWEEN 
'2006-03-02' AND '2006-04-30' AND Etype = 'K' ORDER BY Sdate;
$Recordset1 = mysql_query($query_Recordset1, $flatfoot) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);

mail('[EMAIL PROTECTED]','Test Mail Message',
'!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
http://www.w3.org/TR/html4/loose.dtd;
html
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
titleUp Coming Training/title
style type=text/css
!--
.title {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
color: #FF;
text-decoration: blink;
letter-spacing: .50em;
word-spacing: normal;
}
.head {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
color: #FF;
}
.text {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: normal;
}
.specialtext {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #FF;
}
--
/style
/head

body
table width=75%  border=0
  tr
td class=titlediv align=centerUpcoming Training Event /div/td
  /tr
  tr
td class=headdiv align=centerSponsored by The Kansas Law 
Enforcement Training Center /div/td
  /tr
  tr
tdnbsp;/td
  /tr
  tr
td class=textpListed below, yoursquo;ll find an assortment of 
Specialized Training classes being offered by the Kansas Law Enforcement 
Training Center during the months of March and April. Of special interest are 
the Ethics Instructor class being offered March 13 ndash; 17; Field Training 
Officer class being offered March 13 ndash; 15 in Dodge City; Crime Scene and 
Arson Photography class offered March 16 ndash; 17. These classes should have 
a significant impact on those officers attending, providing new insight and 
expertise to your agency./p/td
  /tr
  tr
td class=textnbsp;/td
  /tr
  tr
td class=texttable width=100%  border=0
  tr
td width=15%uStart Date /u/td
td width=15%uProject Number /u/td
td width=35%uClass Title /u/td
td width=34%uLocation/u/td
  /tr'.
 do {
  if($row_Recordset1['special'] =='Y'){   
  .'tr class=specialtext
  td height=22'.date(m/d/Y, 
strtotime($row_Recordset1['Sdate'])).'/td
  td'.$row_Recordset1['pnumber'].'/td
  td'.$row_Recordset1['title'].'/td
  td width=34%.'$row_Recordset1['city'].'/td
  /tr'.
  
  }else{
  .'tr
  td'.date(m/d/Y, strtotime($row_Recordset1['Sdate'])).'/td
  td'.$row_Recordset1['pnumber'].'/td
  td'.$row_Recordset1['title'].'/td
  td'.$row_Recordset1['city'].'/td
  /tr'.
  
  }
  } 
  
  while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)).'
/table/td
  /tr
/table
/body
/html
'.mysql_free_result($Recordset1).'')
?

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

Re: [PHP-DB] Mail Function

2006-03-01 Thread JupiterHost.Net



Mark Bomgardner wrote:
I have been racking my brain for the better part of a day with a simple 
mail function.  I am trying to generate a list of events from MySQL and 
then use the php Mail function to email the list in an html email to a 
mailing list.  I keep getting a parse error on a section that I can not 
figure out why.


ok, this is a general PHP question not realy a php-db type but 'sall good ;)

a) the parse error is likely form a rogue quote (in the html perhaps) 
making a syntax error, hard to say with out the actual error


b) are you sure mail() can tell that that is html and create the 
appropriate multi part MIME message? Highly doubtful since all mail() 
does is pipe the data to sendmail, I'd recommend using a valid MIME/SMTP 
tool like Perl's Mail::Sender::Easy module 
(http://search.cpan.org/perldoc?Mail::Sender::Easy)


You can easily use Perl's DBI to do your MySQL query so there really is 
no need to try to hack up PHP's lame mail() function to do something it 
simply can't.


HTH

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



Re: [PHP-DB] Mail Function

2006-03-01 Thread Philip Pryce
You can have

'blah'.}
else {
.'blah'

because that is what you currently have.


Re: [PHP-DB] Mail Function

2006-03-01 Thread Philip Pryce
opps sorry for the typos
you cant have


[PHP-DB] mail function

2005-08-02 Thread hope of life

i m uing a form where user enters its email address
i get it on next page
n email user id n pwd (tht i get from database using query) 
2 the provided email address


?php  
if ($rec_email != ) 
  {

   mail($rec_email, $subject, $message, $from);
echo You will shortly receive our email;
  }

?

bt problm is k i dont recive mail through italthough
i recive msg YOu wil hortly recieve mail.

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



[PHP-DB] mail() function and AOL users

2004-05-18 Thread matt perry
I use the following php mail function in an online applicaiton program:
mail($email, application submitted, $message, From: 
[EMAIL PROTECTED]);

This function does not always work when I modify $message.  I have 
checked for null values for $message already but this does not seem to 
be the problem. 

I am trying to develop some sort of pattern of when this function works 
and when it does not.
The only essential difference between the values I pass in for message 
is the one that does not always work includes a link.  Apparently anyone 
useing AOL email is particularly vulnerable to this problem.

Is it likely that AOL and other mail servers sometimes block any email 
from a web site if it has a link in the main body?  Or should I not be 
useing mail() in this manner to begin with?

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


[PHP-DB] Mail Function

2004-01-30 Thread Graeme McLaren
Evening all, I've written a script which sends emails, there is no problem
with that.  I was wondering how I can check for email bounces, anyone know
how to do that?

Cheers,

G :)

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



Re: [PHP-DB] Mail Function

2004-01-30 Thread John W. Holmes
From: Graeme McLaren [EMAIL PROTECTED]

 Evening all, I've written a script which sends emails, there is no problem
 with that.  I was wondering how I can check for email bounces, anyone know
 how to do that?

There's no direct, easy way. You'll have to write/aquire a PHP script that
logs into a mail server and checks your mail for bounces and reacts
accordingly. PHP offers the function to log into mail servers. Check the
manual.

---John Holmes...

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



Re: [PHP-DB] Mail Function

2004-01-30 Thread J-Michael Roberts
Your script actually connects to an SMTP server and sends the email?

If this is the case, you can have your script look for success/error 
messages returned by the server when it sends - unless you're delivering 
to an AOL address.  AOL accepts everything you throw at it and then 
sends back a notification of success/failure via email...sometimes.  
There are a few other servers that act the same way, but AOL is the 
biggest culprit in making an email list manager's life a living hell.

I've actually been kicking around the idea of a PHP-based list manager 
that will also go through bounce notifications but haven't done anything 
more than that.  The biggest hurdle is getting through the bounced messages.

--JMR

Graeme McLaren wrote:

Evening all, I've written a script which sends emails, there is no problem
with that.  I was wondering how I can check for email bounces, anyone know
how to do that?
Cheers,

G :)

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


[PHP-DB] mail function

2003-10-30 Thread Ng Hwee Hwee
hi all,

i need to use a mail() function to send a job application to my inbox when
an applicant goes online and complete the application form. However, when
the contents of a certain field is very long, the message i get in my inbox
is truncated! can anyone help me please?

i've tried word wrap, chunk_split and chop but none worked..

the field in the form is something like textarea name=experience
cols=50 rows=8/textarea.

thank you in advance for your help!

kind regards,
hwee hwee

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



Re: [PHP-DB] mail function

2003-10-30 Thread Shahmat Dahlan
The textarea tag has an option called wrap, pls read below (extracted from w3c.org)

TEXTAREA NAME=foo ROWS=4 COLS=40 WRAP=OFF

Carriage returns and line feeds entered by the user are ignored
and one line of text is sent to the server. No automatic wrapping is done,
so the user must scroll horizontally to see lines that extend past the
specified column width.
	TEXTAREA NAME=foo ROWS=4 COLS=40 WRAP=VIRTUAL

Carriage returns and line feeds entered by the user are mirrored
on the screen, but only one line of text is sent to the server with the
return characters stripped out. Automatic wrapping as the user enters
text is performed.
	TEXTAREA NAME=foo ROWS=4 COLS=40 WRAP=PHYSICAL

Carriage returns and line feeds entered by the user are mirrored
on the screen, and all characters the user enters are sent to the server.
In addition, automatic word wrapping is performed and CR/LFs are sent
where the user agent wraps the text.


Ng Hwee Hwee wrote:

hi all,

i need to use a mail() function to send a job application to my inbox when
an applicant goes online and complete the application form. However, when
the contents of a certain field is very long, the message i get in my inbox
is truncated! can anyone help me please?
i've tried word wrap, chunk_split and chop but none worked..

the field in the form is something like textarea name=experience
cols=50 rows=8/textarea.
thank you in advance for your help!

kind regards,
hwee hwee
 

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


[PHP-DB] mail function

2003-10-30 Thread Ng Hwee Hwee
hi all,

i need to use a mail() function to send a job application to my inbox when
an applicant goes online and complete the application form. However, when
the contents of a certain field is very long, the message i get in my inbox
is truncated! can anyone help me please?

i've tried word wrap, chunk_split and chop but none worked..

the field in the form is something like textarea name=experience
cols=50 rows=8/textarea.

thank you in advance for your help!

kind regards,
hwee hwee


[PHP-DB] mail() function

2003-05-29 Thread Alex Francis
I have set up my pc as a test server  Windows 98 running Apache as a
service, PHP and MySQL but cannot get the mail() function to work.
After a long wait, I get an error Warning: Failed to Receive in
c:\phpdev\www\assets\submit_users.php on line 17. Is there something I
should be changing in the PHP.ini. I used the default settings for this.



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



Re: [PHP-DB] mail() function

2003-05-29 Thread Michael Scappa
Yehp, actually there is :-)

On windows machines you'll need to change the SMTP in there (Since you
probably aren't running a local mail server), in your php.ini you can most
likely change it to your ISP's mail server., there is more specific info on
the docs for the mail funcion in the php manual -- refer to the user
postings: http://us4.php.net/manual/en/ref.mail.php

-Mike

- Original Message -
From: Alex Francis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 3:41 PM
Subject: [PHP-DB] mail() function


 I have set up my pc as a test server  Windows 98 running Apache as a
 service, PHP and MySQL but cannot get the mail() function to work.
 After a long wait, I get an error Warning: Failed to Receive in
 c:\phpdev\www\assets\submit_users.php on line 17. Is there something I
 should be changing in the PHP.ini. I used the default settings for this.



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


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



Re: [PHP-DB] mail() function

2003-03-24 Thread Rick Dahl
Is the the type of thing I would need?

http://www.postcastserver.com/

I found where I am supposed to alter the PHP.ini file.  What am I supposed 
to type instead of 'localhost'

Rick

Don't burn the day...away ~ DJM



From: Jason Wong [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] mail() function
Date: Sat, 22 Mar 2003 14:49:29 +0800
On Saturday 22 March 2003 16:53, Rick Dahl wrote:
 I think the fact that I don't have a mailserver would do it.  Unless the
 PHP home edition 2 bundle has a mailserver, I don't have one.  Where can 
I
 get one of those?  Can I get it for free?

I think having a mailserver would be a tremendous help in sending mail :)

If you're running on some Windows system you can try specifying the SMTP
server provided by your ISP. Otherwise google is your friend.
If you're running some *nix system then they usually come with the 
ubiquitous
sendmail.

--
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-db
--
/*
Let me put it this way: today is going to be a learning experience.
*/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: [PHP-DB] mail() function

2003-03-24 Thread Jason Wong
On Tuesday 25 March 2003 04:39, Rick Dahl wrote:
 Is the the type of thing I would need?

 http://www.postcastserver.com/

 I found where I am supposed to alter the PHP.ini file.  What am I supposed
 to type instead of 'localhost'

If you're running an SMTP server on the same machine (as your webserver) then 
leave it as 'localhost'. Otherwise do what I originally suggested and use an 
upstream SMTP server (probably provided by your ISP).

-- 
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-db
--
/*
Hoare's Law of Large Problems:
Inside every large problem is a small problem struggling to get out.
*/


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



[PHP-DB] mail() function

2003-03-21 Thread Rick Dahl
I can't get it to work.  I get the echo to show up but never receive a email.


if($blankpostage) {
   $to = Rick Dahl [EMAIL PROTECTED];
   $subject = Online B+P Request;
   $body = Show ID =  . $id;
   mail($to, $subject, $body);
   echo sadflkjaflkasdj;
}


What am I doing wrong?

Rick


Re: [PHP-DB] mail() function

2003-03-21 Thread Jason Wong
On Saturday 22 March 2003 16:38, Rick Dahl wrote:
 I can't get it to work.  I get the echo to show up but never receive a
 email.


 if($blankpostage) {
$to = Rick Dahl [EMAIL PROTECTED];
$subject = Online B+P Request;
$body = Show ID =  . $id;
mail($to, $subject, $body);
echo sadflkjaflkasdj;
 }

1) Check that php.ini is correctly configured

2) Check the php error log

3) Check your mailserver log

-- 
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-db
--
/*
You can learn many things from children.  How much patience you have,
for instance.
-- Franklin P. Jones
*/


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



Re: [PHP-DB] mail() function

2003-03-21 Thread Rick Dahl
I think the fact that I don't have a mailserver would do it.  Unless the PHP
home edition 2 bundle has a mailserver, I don't have one.  Where can I get
one of those?  Can I get it for free?

Rick


- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 10:41 PM
Subject: Re: [PHP-DB] mail() function


 On Saturday 22 March 2003 16:38, Rick Dahl wrote:
  I can't get it to work.  I get the echo to show up but never receive a
  email.
 
 
  if($blankpostage) {
 $to = Rick Dahl [EMAIL PROTECTED];
 $subject = Online B+P Request;
 $body = Show ID =  . $id;
 mail($to, $subject, $body);
 echo sadflkjaflkasdj;
  }

 1) Check that php.ini is correctly configured

 2) Check the php error log

 3) Check your mailserver log

 --
 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-db
 --
 /*
 You can learn many things from children.  How much patience you have,
 for instance.
 -- Franklin P. Jones
 */


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



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



Re: [PHP-DB] mail() function

2003-03-21 Thread Jason Wong
On Saturday 22 March 2003 16:53, Rick Dahl wrote:
 I think the fact that I don't have a mailserver would do it.  Unless the
 PHP home edition 2 bundle has a mailserver, I don't have one.  Where can I
 get one of those?  Can I get it for free?

I think having a mailserver would be a tremendous help in sending mail :)

If you're running on some Windows system you can try specifying the SMTP 
server provided by your ISP. Otherwise google is your friend.

If you're running some *nix system then they usually come with the ubiquitous 
sendmail.

-- 
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-db
--
/*
Let me put it this way: today is going to be a learning experience.
*/


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



[PHP-DB] Mail Function

2002-08-27 Thread Manoj Japher

hi,
  I know this question is in the wrong group, but I hope someone 
maybe
able to help me out. I need to use the mail() function in my code 
to
send out mails which I am able to do successfully. But I am not 
able
to set the 'from address' in the mail I sent. It always varies. 
Can I
set the from address field as to my liking.

  I tried the following code

?
 $toaddress = [EMAIL PROTECTED];
 $fromaddress = [EMAIL PROTECTED];
 $subject = Test Mail;
 $content = Your username and password as you requested 
\n
.Username = user \n
.Password = pass \n;
 mail($toaddress, $subject ,$content, $fromaddress);
 echo  Your username and password has been mailed to you 
;
 ?

And the mail I got had the from address as
[EMAIL PROTECTED]

Can someone help me out please

Best Regards,

Manoj


'I have miles to go before I sleep, and promises to keep'

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




RE: [PHP-DB] Mail Function

2002-08-27 Thread Ruprecht Helms


Hi Manoj  Japher,

 add the following (see in context)
 
 ?
  $toaddress = [EMAIL PROTECTED];
^ 
addslashes(...)
  $fromaddress = [EMAIL PROTECTED];
  ^
  addslashes(...)
  $subject = Test Mail;
  ^
  addslashes(...)
  $content = Your username and password as you requested 
 \n ^
  addslashes(...)

 .Username = user \n
 .Password = pass \n;
  mail($toaddress, $subject ,$content, $fromaddress);
  echo  Your username and password has been mailed to you 
 ;
  ?

The returned mail can be a result of the missing part(s).

Regards,
Ruprecht


--
Ruprecht Helms  -   IT-Service  Softwareentwicklung
==
E-Mail: Ruprecht Helms [EMAIL PROTECTED]
Date: 27-Aug-02
Time: 22:16:46
==
Homepage: http://www.rheyn.de 
email: [EMAIL PROTECTED]

Phone + Fax  +49[0]7621 16 99 16


This message was sent by XFMail 


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




RE: [PHP-DB] Mail Function

2002-08-27 Thread Russ

$mailTo = [EMAIL PROTECTED];
$mailFrom = From:[EMAIL PROTECTED];
$mailSubject = This is an email...;
$mailBody = This is a message;
@mail($mailTo,$mailFrom,$mailSubject,$mailBody);

Try this, it works for me ;-)
Russ

-Original Message-
From: Manoj Japher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 2:33 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Mail Function


hi,
  I know this question is in the wrong group, but I hope someone 
maybe
able to help me out. I need to use the mail() function in my code 
to
send out mails which I am able to do successfully. But I am not 
able
to set the 'from address' in the mail I sent. It always varies. 
Can I
set the from address field as to my liking.

  I tried the following code

?
 $toaddress = [EMAIL PROTECTED];
 $fromaddress = [EMAIL PROTECTED];
 $subject = Test Mail;
 $content = Your username and password as you requested 
\n
.Username = user \n
.Password = pass \n;
 mail($toaddress, $subject ,$content, $fromaddress);
 echo  Your username and password has been mailed to you 
;
 ?

And the mail I got had the from address as
[EMAIL PROTECTED]

Can someone help me out please

Best Regards,

Manoj


'I have miles to go before I sleep, and promises to keep'

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



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




RE: [PHP-DB] Mail Function

2002-08-27 Thread Russ

Oops! wrong order of arguments...

I meant:

$mailTo = [EMAIL PROTECTED];
$mailFrom = From:[EMAIL PROTECTED];
$mailSubject = This is an email...;
$mailBody = This is a message;
@mail($mailTo,$mailSubject,$mailBody,$mailFrom);

Russ

-Original Message-
From: Manoj Japher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 2:33 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Mail Function


hi,
  I know this question is in the wrong group, but I hope someone 
maybe
able to help me out. I need to use the mail() function in my code 
to
send out mails which I am able to do successfully. But I am not 
able
to set the 'from address' in the mail I sent. It always varies. 
Can I
set the from address field as to my liking.

  I tried the following code

?
 $toaddress = [EMAIL PROTECTED];
 $fromaddress = [EMAIL PROTECTED];
 $subject = Test Mail;
 $content = Your username and password as you requested 
\n
.Username = user \n
.Password = pass \n;
 mail($toaddress, $subject ,$content, $fromaddress);
 echo  Your username and password has been mailed to you 
;
 ?

And the mail I got had the from address as
[EMAIL PROTECTED]

Can someone help me out please

Best Regards,

Manoj


'I have miles to go before I sleep, and promises to keep'

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



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




Re: [PHP-DB] mail function

2002-07-01 Thread Martin Clifford

Nice, mature response, Jason.  Really smooth! :o)

:chortle:

Martin

 [EMAIL PROTECTED] 06/30/02 09:44AM 
On Sunday 30 June 2002 09:06, CrossWalkCentral wrote:

As this has nothing to do with DBs it should be posted to the php-general 
list.

 When using this fucntion listed bellow with the HTML headder

What function? And what HTML header?

 the email sent does not show the FROM in the FORM filed it just displays it
 in the email message

FORM filed -- is this FROM field or FORM filled (or do you really mean FORM 
filed?)

 Any one have any ideas.

From this confusing mish-mash, I can only guess that you're trying to use the 
mail() function and you're trying to add a FROM header.

 $headers .= From: CrossWalkCentral [EMAIL PROTECTED] \n;

That being the case the manual has an example on how it is done.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk 
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *


/*
No good deed goes unpunished.
-- Clare Booth Luce
*/


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



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




Re: [PHP-DB] mail function

2002-06-30 Thread Jason Wong

On Sunday 30 June 2002 09:06, CrossWalkCentral wrote:

As this has nothing to do with DBs it should be posted to the php-general 
list.

 When using this fucntion listed bellow with the HTML headder

What function? And what HTML header?

 the email sent does not show the FROM in the FORM filed it just displays it
 in the email message

FORM filed -- is this FROM field or FORM filled (or do you really mean FORM 
filed?)

 Any one have any ideas.

From this confusing mish-mash, I can only guess that you're trying to use the 
mail() function and you're trying to add a FROM header.

 $headers .= From: CrossWalkCentral [EMAIL PROTECTED] \n;

That being the case the manual has an example on how it is done.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *


/*
No good deed goes unpunished.
-- Clare Booth Luce
*/


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




[PHP-DB] mail function

2002-06-29 Thread CrossWalkCentral

When using this fucntion listed bellow with the HTML headder

the email sent does not show the FROM in the FORM filed it just displays it
in the email message



Any one have any ideas.



$headers .= From: CrossWalkCentral [EMAIL PROTECTED] \n;




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




Re: [PHP-DB] mail() function

2002-06-11 Thread Lisi

If you are on Windows you can just point to your ISP's SMTP server in your 
.ini file.

At 11:02 AM 6/10/02 +0200, Dib, Walid (MED, Stagiaire GEMS) wrote:
Hello

I want to test the mail() function locally, i'm using esays php, how can I
do that?
thanks

Walid



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


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




[PHP-DB] mail() function

2002-06-10 Thread Dib, Walid (MED, Stagiaire GEMS)

Hello

I want to test the mail() function locally, i'm using esays php, how can I
do that?
thanks

Walid





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


Re: [PHP-DB] mail() function

2002-06-10 Thread Edward Marczak

On 6/10/02 5:02 AM, Dib, Walid (MED, Stagiaire GEMS) [EMAIL PROTECTED]
pressed the keys forming the message:

 Hello
 
 I want to test the mail() function locally, i'm using esays php, how can I
 do that?

Not sure what esays php is, but you don't say what platform you're on.
Basically, you need some kind of mail server.  If you're on Linux or MacOS
X, great: you've got sendmail built in.  If you're on Windows, you either
need an SMTP product running locally, or you need one you can connect to.
-- 
Ed Marczak
[EMAIL PROTECTED]


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




[PHP-DB] mail function help

2002-04-04 Thread CrossWalkCentral

For some reason the mail command will not work on all systems mybe I am
using it wrong can some one provide some feedback on this.

here is a code snip.

$msg = \tFirst Name: $custfname\n

\tLast Name: $custlname\n

\tEmail Address: $custemail\n

\tCategory: $dservice\n

\tDescription: $custpdes\n;

$recipient = $custcatergory;

$subject = $adminsubsupport;

$mailheaders = From: $adminfrmsupport  \n;

$mailheaders .= Reply-To: $email\n\n;

mail($recipient, $subject, $msg, $mailheaders);




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




[PHP-DB] mail() function

2002-01-08 Thread Osman Omar

Hi all,

I use mail() function to send automatic email to me
but when I receive the email, I found that send date is not correct (send
date is in future)
How do I correct this problem

I use PHP 4.1.0
platform win98se
apache 1.3.22

Thanks


-- 
PHP Database 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-DB] Mail() function and the php.ini file

2001-09-10 Thread Jeff Panis

I'm attempting to setup the PHP module to allow the mail() function to work.
As I understand, I need to edit the php.ini file? I can't locate the file to
edit. Can someone point me in the right direction? I'm using OSX Server.

Thanks,
Jeff Panis
[EMAIL PROTECTED]


-- 
PHP Database 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-DB] mail function

2001-08-14 Thread Tom Hodder



check that you have either specified

[mail function]
; For Win32 only.
SMTP = mail.myserver.com

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

or the sendmail path here;

; For Unix only.  You may supply arguments as well (default:
'sendmail -t -i').
;sendmail_path = /usr/bin/sendmail

otherwise mail cannot send mail at all.






-Original Message-
From: Travis Cannell [mailto:[EMAIL PROTECTED]]
Sent: 14 August 2001 03:27
To: [EMAIL PROTECTED]
Subject: [PHP-DB] mail function


hi all,

I cant seem to get my mail function to work. OK so i am a noob, that might
have something to do with it.  I am using a script I found called the HTML
Mime Mail Class, which does everything i need except actually send the mail.
I am guessing that there is some config problems, but i am not sure.  Even
when i try and use the mail() function i get a server error.  So i guess
that my problem is that my return address is messed up.  Does it have to  be
my own domain, or the domain that the server is running on?  Can i set the
return address as a hotmail account, or do i need my own server mail
program?  And is there anything that i need to config in the php.ini file?

Thanks for helping,

T P K Cannell



--
PHP Database 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 Database 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-DB] mail function

2001-08-13 Thread Travis Cannell

hi all,

I cant seem to get my mail function to work. OK so i am a noob, that might
have something to do with it.  I am using a script I found called the HTML
Mime Mail Class, which does everything i need except actually send the mail.
I am guessing that there is some config problems, but i am not sure.  Even
when i try and use the mail() function i get a server error.  So i guess
that my problem is that my return address is messed up.  Does it have to  be
my own domain, or the domain that the server is running on?  Can i set the
return address as a hotmail account, or do i need my own server mail
program?  And is there anything that i need to config in the php.ini file?

Thanks for helping,

T P K Cannell



-- 
PHP Database 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-DB] mail function

2001-03-07 Thread Liz Bander

I need to make an email link in a table.  The username is displayed as 
text; I need it to be a link through which I can send email.  Is this 
possible in php?  The following is the code for that I'm using:

function show_logged_users($user) {

   $query = "select distinct uid, cn from log left join ldap.ldap on 
log.user like ldap.ldap.uid order by ldap.ldap.sn";

   connect();
   $result = mysql_query($query);

   if (($result)  (mysql_num_rows($result)  0)) {
 while ($line = mysql_fetch_row($result)) {
   $opts[$line[0]] = $line[1];
 }
   } else {
 $opts[0] = "Error in show_logged_users()";
   }

   show_select($opts, $user);
}

   td
 font face="Arial, Helvetica, sans-serif" size="-1" 
color="#FF"bUser/b/font
   /td
   td
 select name="user"
 ? show_logged_users($user) ?
 /select
   /td


What I need is the ? show_logged_users($user) ? statement to turn itself 
into a mailto: statement to that clicking on the user name will bring up an 
email addressed to username @domain.com  Is this possible?  Is there any 
code out there that I can get a look at?

Thanks,

Liz


-- 
PHP Database 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]