[mailto:dmag...@gmail.com]
Enviado el: MiƩrcoles, 06 de Mayo de 2009 01:08 a.m.
Para: Emiliano Boragina
CC: php-db@lists.php.net
Asunto: Re: [PHP-DB] mail
Emiliano Boragina wrote:
?php
if(isset($_POST[empresa]) isset($_POST[nombre])
isset($_POST[telefono]) isset($_POST[mail])
isset
Emiliano Boragina wrote:
?php
if(isset($_POST[empresa]) isset($_POST[nombre])
isset($_POST[telefono]) isset($_POST[mail])
isset($_POST[asunto]) isset($_POST[mensaje]) )
{
snip
I test this code to send mail, but I am testing this printing $contenido.
If nothing is ISSET must be
///
+ _
-Mensaje original-
De: Chris [mailto:dmag...@gmail.com]
Enviado el: MiƩrcoles, 06 de Mayo de 2009 01:08 a.m.
Para: Emiliano Boragina
CC: php-db@lists.php.net
Asunto: Re: [PHP-DB] mail
Emiliano Boragina wrote:
?php
if(isset($_POST[empresa]) isset
if($empresa == || $nombre == || $telefono == || $mail == ||
$asunto == || $mensaje == )
{
snip
I want to know somthing: this || operator is OR, and de logic in my code
is: if one of variables is empty and the rest not send the mail, it isnt?
Looks like it to me.
If I want all field
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
You can have
'blah'.}
else {
.'blah'
because that is what you currently have.
opps sorry for the typos
you cant have
I'm replying off-list as this isn't a database question, but check out the
pear mail class at:
http://pear.php.net
It handles SMTP authentication. The standard mail() function does not.
HTH
-Micah
On Monday 14 February 2005 10:12 am, ReClMaples wrote:
I have a quick, probably easy to
if you echo $Sent, what do you get?
bastien
From: Valerie [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Mail Header Redirect
Date: Tue, 5 Oct 2004 08:24:26 -0400
I have an email that is sent upon submission of a form. I need to redirect
to a confirmation page if email is sent
When I echo $sent, it returns 1.
Thanks,
Valerie
- Original Message -
From: Bastien Koert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, October 05, 2004 10:03 AM
Subject: RE: [PHP-DB] Mail Header Redirect
if you echo $Sent, what do you get?
bastien
From
can you put some output in the function itself to see if its the function
that blowing up and or if its the mail call...
bastien
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Bastien Koert [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Mail Header Redirect
Date: Tue
:10 PM
Subject: Re: [PHP-DB] Mail Header Redirect
can you put some output in the function itself to see if its the function
that blowing up and or if its the mail call...
bastien
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Bastien Koert [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject
Hi there,
Thanks for the help, I've sorted it out now - stupid me :-) You know what
it's like sometimes, you work that hard on different things that something
which should be really simple just goes over your head - well, it does mine
anyway :-)
Very much appreciated.
Chris
Hey Chris,
Chris Payne wrote:
I'm having a major problem. I'm trying to send a message FROM Windows XP
Pro, now this is where it get weird - in some mail packages it WORKS, and in
some it doesn't. Basically it's an HTML email which is sent when a form is
completed, the results are stored in a DB and then
I think where the bounces goes is really a matter of mailserver
configuration more than PHP itself... not sure about that really though ...
I only use the mail() function to send mail from the website to the
webmaster ... so that I don't have to expose the actual email addy on the
site
At 03:02 09-04-2004, Jochem Maas wrote:
Justin Patrin wrote:
Sounds alot more like advertising than sanity ... there's not much
trickery in using the mail() function ... only if you want to attach
files can it get a bit tricky (encoding the file and inserting the
result), but in reality, there's
Hello,
On 04/08/2004 08:25 PM, Ryan Jameson wrote:
... Is there a way to get the bounces to go to the reply to address?
I've never really cared to, but now that he mentions it ... It would be
nice.
If you use this class, you can just specify the bounce address in
Return-Path header and the class
Jochem Maas wrote:
Justin Patrin wrote:
accurate. If it is, why hasn't the mail function been modified in
the more recent builds? I've been using PHP since it was invented
never had a problem with mail.
Also note that your form page is currently using the PHP mail()
function, which doesn't
At 00:01 08-04-2004, Ryan Jameson (USA) wrote:
I know this isn't technically DB related but this is the list that I
use. I'd just like to know if anyone else thinks the below statement is
accurate. If it is, why hasn't the mail function been modified in the
more recent builds? I've been using PHP
?
I've never really cared to, but now that he mentions it ... It would be
nice.
Ryan
-Original Message-
From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 6:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Mail() - Preposterous Accusation
At 00:01 08-04
to the reply to address?
I've never really cared to, but now that he mentions it ... It would be
nice.
Ryan
-Original Message-
From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 6:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Mail() - Preposterous
On Tuesday 24 February 2004 00:18, [EMAIL PROTECTED] wrote:
This post is somewhat OT -- please forgive me. I've spent over 3 days
trying to get sendmail configured and I've lost some patience and
reasoning ability in the process.
I have a Linux (RH9), Apache 2.0.48, PHP 4.3.4, MySQL GUI that
Wong [EMAIL PROTECTED]
02/23/2004 11:10 AM
To:
[EMAIL PROTECTED]
cc:
Subject:
Re: [PHP-DB] mail() and sendmail configuration
On Tuesday 24 February 2004 00:18, [EMAIL PROTECTED] wrote:
This post is somewhat OT -- please forgive me. I've spent over 3 days
trying to get sendmail
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
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
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
Assuming you use MySQL (for example...) do something like :
?
$result=mysql_query(SELECT * FROM Table) or die(mysql_error());
While($row = mysql_fetch_object($result)) {
$MyVar .= $row-MyField;
}
mail([EMAIL PROTECTED],this is may
email,$MyVar,From:[EMAIL PROTECTED]);
?
Sincerely
berber
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
This is not so much a database question. The answer is yes, it can be. You
can read the documentation to find out how.
http://www.php.net/manual/en/function.mail.php
A quick example is:
?php
$body = '';
foreach ($_POST as $key= $val){
$body .= $key = $val\n;
}
mail ($address, Form
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
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
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
, 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
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
I would say this can be done (-:
Run a quck search on freshmeat.net, sourceforge.net,
of course the manual http://www.php.net/manual/en/ref.mail.php,
and http://www.hotscripts.com/, just to name a few places to start. Or
just search for mailing list php on Google.
There are a ton of mailing
Is there any way to receive mail via PHP?
What I am interested in doing is creating a double opt-in e-mail list
whereby someone can subscribe to an e-mail service via an on-line form.
Upon
doing so, they would get a confirmation e-mail. Replying to this e-mail
would confirm the subscription
Quite doable.
Check the IMAP functions.
Ignatius
- Original Message -
From: Baumgartner Jeffrey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 5:19 PM
Subject: [PHP-DB] Mail() and replies
Is there any way to
Take a look at http://phpmailer.sourceforge.net/ a very usefull php
class for sending e-mail including attachements.
Rene.
-Original Message-
From: Nikos Gatsis [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 12, 2003 3:21 AM
To: PHP-mailist
Subject: [PHP-DB] - mail() with atachment
Hello,
On 01/12/2003 09:21 AM, Nikos Gatsis wrote:
Does anybody knows how to send a mail through a php page using mail() function including an attachment file?
Just try this class that provides exactly what you need and more and is
very easy:
http://www.phpclasses.org/mimemessage
--
did you restart apache?
epeloke@echoma
n.com (Edward
Did you restart the server? Are you sure you modified the right php.ini?
On Thu, 2002-10-31 at 14:53, Edward Peloke wrote:
I know this is off topic to the db list but..
I am attempting to use the mail function. I have set the smtp in the
php.ini file to my smtp server but when I run the
yep and I still get the same error...I modified the ini file in my windows
directory..I assume that is the right one.
Eddie
-Original Message-
From: Marco Tabini [mailto:marcot;tabini.ca]
Sent: Thursday, October 31, 2002 2:24 PM
To: Edward Peloke
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP
To: Edward Peloke
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] mail()
did you restart apache?
epeloke@echoma
n.com (EdwardTo: [EMAIL PROTECTED]
Peloke) cc:
Subject: [PHP
Hi Manoj Japher,
add the following (see in context)
?
$toaddress = [EMAIL PROTECTED];
^
addslashes(...)
$fromaddress = [EMAIL PROTECTED];
^
addslashes(...)
$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:
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
Could you not simply extract all the email addresses from the DB as you
would any other data, then loop thru the result set calling PHP's mail()
function for every record retrieved?
while($row=mysql_fetch_assoc($result))
{
extract($row);
//Presume's '$email ' is the name of the field in which
:38 AM
Subject: RE: [PHP-DB] Mail problem
Could you not simply extract all the email addresses from the DB as you
would any other data, then loop thru the result set calling PHP's mail()
function for every record retrieved?
while($row=mysql_fetch_assoc($result))
{
extract($row);
//Presume's
Pawlik [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 2:47 PM
To: [EMAIL PROTECTED]; Russ
Subject: Re: [PHP-DB] Mail problem
Of course, but
PHP is on Linux machine where I don't have sendmail, because my
mail server is on different machine, and that's my problem
Bartek
Hello,
On 12/31/1969 09:00 PM, Unknown Sender wrote:
Of course, but
PHP is on Linux machine where I don't have sendmail, because my
mail server is on different machine, and that's my problem
If you are allowed, you can install sendmail in your machine and
configure to route all mail
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
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
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
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
Here is the section from my PHP.INI
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = [EMAIL PROTECTED]
; For Unix only. You may supply arguments as well (default:
'sendmail -t -i').
;sendmail_path =
I presume you mean the SMTP server set in my mail
just change the SMTP to your ISP's SMTP server, i.e. the server you use to
send mail from your regular mail account.
At 06:45 PM 4/22/02 +0100, Alex Francis wrote:
Here is the section from my PHP.INI
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = [EMAIL
Alex,
That's the info in question!
Here is the section from my PHP.INI
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = [EMAIL PROTECTED]
; For Unix only. You may supply arguments as well (default:
'sendmail -t -i').
;sendmail_path =
I presume
Can I set this to use the SMTP Server at my ISP but still use the database
and PHP files in house. I don't want to make any changes to either the php
pages or the database at the ISP until I have got it all working. Although I
suppose I could set up another site and database at my ISP.
Alex
in transmission.
From: DL Neil [EMAIL PROTECTED]
To: Alex Francis [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
049e01c1ea16$8a0cf690$0600a8c0@jrbrown
[EMAIL PROTECTED]
Subject: Re: [PHP-DB] Mail
Date: Mon, 22 Apr 2002 18:53:58 +0100
Message-ID: 060401c1ea26$fcebc050$0600a8c0
this confidentiality and
to advise the sender immediately of any error in transmission.
From: DL Neil [EMAIL PROTECTED]
To: Alex Francis [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
049e01c1ea16$8a0cf690$0600a8c0@jrbrown
[EMAIL PROTECTED]
Subject: Re: [PHP-DB] Mail
Date: Mon, 22 Apr 2002 18
You do not show where $fromemail, $friendemail and $fromname are defined.
Shouldn't $toaddress be the first item in your mail function?
Try echoing these 3 variables to make sure it is what you think it should be.
HTH
MB
James Kupernik [EMAIL PROTECTED] said:
I'm trying to run a mail
You know that $fromaddress must have the correct header's to, right?
Like just [EMAIL PROTECTED] will not be interepreted but something like
Reply-to:[EMAIL PROTECTED]
will set the Reply-to header correctly.
Also, did you try taking out the dynamic values and just entering a hardcoded test
-Original Message-
From: Adam Voigt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 11:02 AM
To: James Kupernik
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] mail()
You know that $fromaddress must have the correct header's to, right?
Like just [EMAIL PROTECTED
on 1/15/02 7:38 AM, Adam Royle at [EMAIL PROTECTED] appended the
following bits to my mbox:
I have been trying for months now (on and off) to get mail() working in
OS X. I
- I am using PHP v4.0.6 on Mac OS X 10.1 (pre-compiled with cool options
from entropy.ch)
- I installed Communigate
Malcolm,
I Have been trying to change the Return-Path: when using mail() but to no
success. I have followed the examples in the documentation. Is there any
hidden trick - Iam using apache 1.3.14, php 4.1.1 and sendmail 8.9.3.
=There's been some grouching on the lists about spam and vague
1. Message sends.
2/3. The code used is as per the annotated on line PHP manual
[EMAIL PROTECTED]
11-Jan-2002 02:10
There used to be a note with a complete set of headers to use with the mail
function but somehow now its gone so here they are again hope it helps :)
on 1/12/02 7:36 AM, Malcolm White at [EMAIL PROTECTED] appended the
following bits to my mbox:
4. No error messages. An email constructed as above sends perfectly - but
the return path defaults to the apache user (in my case www) not the
supplied return path. I tested the header construction
Malcolm,
Thank you for all this info. Let's take it one step at a time:-
1. Message sends.
=yes, answers 1 and 4 highlight the problem with email (not just email from PHP!) -
there are no guarantees...
(except that the developer will suffer severe headaches and recurring nightmares)
2/3.
On Wednesday, December 12, 2001, at 01:14 AM, Cristian Pozzer wrote:
my php.ini file has the following line in it:
SMTP = mail.attbi.com
my php script is as follows:
?
$email = to_email;
$from = from_email;
$mesg = This is a test email. \r\n;
if (mail($email, Test, $mesg, $from))
On Wednesday, December 12, 2001, at 06:12 AM, Rick Emery wrote:
The mail() function works fine. $email must be set to you email
program,
NOT an email server.
Should be something like /bin/sendmail. If you don't have access to
this
function, then you cannot send mail.
So where would
: Wednesday, December 12, 2001 10:33 AM
To: PHP List; Rick Emery
Subject: Re: [PHP-DB] Mail() Not working
On Wednesday, December 12, 2001, at 06:12 AM, Rick Emery wrote:
The mail() function works fine. $email must be set to you email
program,
NOT an email server.
Should be something like
olinux:
I do not know the answer to your question.
However, I would alternatively suggest that you send the email to each
person individually. That is to say, loop through your recipient array and
use mail() to send the message to each recipient, as opposed to creating a
bcc array and then
I think you might want to be a little more specific as to what you are
trying to accomplish. Give us some more details and we would be glad to
help you out!
HTH
Sam Masiello
Software Quality Assurance Engineer
Synacor
(716) 853-1362 X289
[EMAIL PROTECTED]
-Original Message-
From:
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
At 22.06.2001 16:22, you wrote:
Very strange
Warning: mail() is not supported in this PHP build in
/virtual/sergio/public/prova.php on line 18
What's this ?
This is _totally_ unrelated to php-db, and should have been posted on the
php-general list!
But basically your php install hasn't
e, sergio (oz. admin), rekompajlaj php na serverju z mail() funkcijo
omogoceno, oz. jo omogoci kako drugace, ce znas:)
p.s. in ni prova, nego je proba :)
lp, tomaz
At 22.06.2001 16:22, you wrote:
Very strange
Warning: mail() is not supported in this PHP build in
At 26.04.2001 16:20, you wrote:
I was wondering if anyone had any ideas on how I can setup a email system ,
internal using php and mysql only .. No Imap Server, or POP. Can someone
please guide me in the right direction ,, this is email sysetm would be only
for registered members. I am setting up
I believe mail works completely different on unix. It probably doesn't
suffer the same problems, because it's a direct call to an external process.
Lookup "sendmail"
""Free Beachler"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Someone else has tested this
The function ini.set() should be the one to use, but it doesn't set all
options for security reasons. See
http://www.php.net/manual/en/function.ini-set.php for details. You should
also check the annotations for email functions for other options.
Michael J. Upchurch
Partner2Partner
I'm not sure but I think you must have a smtp server program running to
configure as your smtp server.
HTH.
Jayme.
-Mensagem Original-
De: Free Beachler [EMAIL PROTECTED]
Para: [EMAIL PROTECTED]
Enviada em: quarta-feira, 7 de maro de 2001 14:48
Assunto: [PHP-DB] mail server
hi all,
Paul Schreiber has written, in PHP, an email class. His opening comments
are given below, but ii doesn't do what you want. He might be worth
emailing however.
If you were on a Linux/Unix/etc box you could use exim, as it can be
configured to be either it's own SMTP mailer or to use the ISP's.
onzai Web Design
http://www.bonzai.org.za
- Original Message -
From: "Randall Barber" [EMAIL PROTECTED]
To: "Rudi Ahlers" [EMAIL PROTECTED]
Sent: Sunday, March 04, 2001 9:14 PM
Subject: Re: [PHP-DB] Mail Form error
There are only 4 parameters allowed in the mail funct
82 matches
Mail list logo