I've answered myself, thanks all!
It's definitely $form[message] = stripslashes($form[message]);
mail(...);
Lmlweb [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hosted web, so option to turn on or off is up to the hosting company, not
me.
stripslashes
How can I do that - controlling via .htaccess? Pointing me to references
would be good.
TIA
LML
Miguel Cruz [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Tue, 2 Apr 2002, lmlweb wrote:
Hosted web, so option to turn on or off is up to the hosting company,
Why not just do
foreach($form as $key = $value)
{
$form[$key] = stripslashes($form[$key]);
}
Eric
- Original Message -
From: lmlweb [EMAIL PROTECTED]
To:
Sent: Tuesday, April 02, 2002 11:04 PM
Subject: Re: [PHP] Mail function acting a bit differently
I've answered myself
On Wednesday 03 April 2002 12:06, lmlweb wrote:
How can I do that - controlling via .htaccess? Pointing me to references
would be good.
The manual is a good reference.
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
/*
Remember: Silly is a state of Mind, Stupid is a way of Life.
Actually, that type of stuff is at the top of all e-mails. You'd always see
it if you set your e-mail client to show you the headers. So, it may be
something with your e-mail client. Can you provide the code you're using to
send the e-mail? The mail() part would suffice.
Tyler Longren
Sure, it just passes it off to the MTA. If the MTA drops the ball later
on we don't know about it. Check your logs.
On Mon, 25 Mar 2002, Kevin Stone wrote:
Anyone run into this problem before? I've got a simple email parser
that I've set up for our clients to access from their websites.
I would check the mail logs on the smtp server ?(if you have access)
or... try this and see if ANY mail is bveing sent to you (assumes a unix
server with sendmail (or compatible) binary installed)
$fp=fopen('./tmp', 'w');
fputs($fp, 'Subject: '.$reportsubject.chr(10));
fputs($fp,
Your smtp is valid? Try error checking for that? See you php.ini. If you are
running it on localhost you might try the same smtp that is used in your
emailer. I gaffed on that once. :)
Brad Wright wrote:
Hi all... I have a line in a page that should send me an email when the page
is loaded.
Just a note...
Make sure your server's IP address is not black holed by some spam list...
-Jason Garber
IonZoft.com
At 08:22 AM 2/4/2002 +0100, TV Karthick Kumar wrote:
Hi,
I use a form on my website for the visitors to send me the feedback and
use the mail() to do this job for me.
Monday, February 04, 2002, 12:17:27 AM, recebi de John P. Donaldson:
John I've tried several PHP form processors, and all of
John them have trouble sending the form contents to a Yahoo
John address. When I change the address to something other
John than a Yahoo account, it sends the form
Hi,
Monday, February 04, 2002, 12:17:27 AM, recebi de John P. Donaldson:
John I've tried several PHP form processors, and all of
John them have trouble sending the form contents to a Yahoo
John address. When I change the address to something other
John than a Yahoo account, it sends the
I found out it was my SMTP server that was actually
having the problem sending to Yahoo accounts, not PHP.
I changed which server my PHP script used to send
mail and it sent it to my Yahoo account no problem.
John
--- Alex Shi [EMAIL PROTECTED] wrote:
Hi,
Monday, February 04, 2002,
Hi,
I use a form on my website for the visitors to send me the feedback and
use the mail() to do this job for me. And I get mails without any
problems I am happy... :-)..
Karthick
I've tried several PHP form processors, and all of
them have trouble sending the form contents to a
Yes it is.
A good place to start is with the manual (http://www.php.net/mail), where
you will find an explanation of how to do it.
Cheers
Jon
-Original Message-
From: Gregory Jon Welling/Parts Trading Inc. [mailto:[EMAIL PROTECTED]]
Sent: 05 December 2001 11:07
To: [EMAIL PROTECTED]
@mail( [EMAIL PROTECTED], $subject, $body, From: $fromemail\nContent-Type:
text/plain; charset=\windows-1250\ );
- Original Message -
From: Ben Clumeck [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 21. studeni 2001 01:58
Subject: [PHP] mail() function
I am new to PHP. I am trying to
@mail( [EMAIL PROTECTED], $subject, $body, From: $fromemail);
- Original Message -
From: Avdija A. Ahmedhodziæ [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 21. studeni 2001 02:06
Subject: Re: [PHP] mail() function
@mail( [EMAIL PROTECTED], $subject, $body, From:
$fromemail\nContent
See:
http://www.php.net/manual/en/function.mail.php
an example lives there. The key here is that additional headers, such as
From: will go in the optional additional_headers parameter.
Regards,
Philip Olson
On Tue, 20 Nov 2001, Ben Clumeck wrote:
I am new to PHP. I am trying to specify
It's probably thinking that Do Not Reply is a user name, so try:
Do Not Reply [EMAIL PROTECTED]
and see how that goes
-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 10:50 AM
To: PHP User Group
Subject: [PHP] mail() function
Hello,
Great help dude, it works fine now. Much appreciated.
I created mainfile.php which is a form that is submited to thanks.php, which
contains just the small mail function stuff and a call to include
mailbody.inc, which has all the fields layed out nicely on screen for the
user to see as well as
Can someone please just run me through the different sections of the mail
function please cause i understand you can change the from address etc aswell
This is in the manual. Read it, try it and if you can't get it to run
properly ask your question again. Don't forget to describe what you
Sendmail should (by default) attempt to send the mail immediately... If
it can't deliver it on that attempt, then it should be queued to send
again later (30 mins?)...
Unless you've configured sendmail differently, it should attempt to
deliver as soon as the mail is sent from PHP.
You can
hey ryan try something like this
mail([EMAIL PROTECTED], Quote Request, $message, From:
[EMAIL PROTECTED]\nX-Mailer: PHP/ . phpversion());
hope this helps
cya tim
-
Tim Taubert | [EMAIL PROTECTED] |
solution? How about a way to get an error message of some kind?
Ryan
-Original Message-
From: Tim Taubert [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 9:09 AM
To: PHP Mailingliste
Subject: RE: [PHP] mail function fails
hey ryan try something like this
mail([EMAIL PROTECTED], Quote
PROTECTED] | http://www.shogunat.com/rg/
-
-Original Message-
From: Shrout, Ryan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 3:30 PM
To: PHP Mailingliste
Subject: RE: [PHP] mail function fails
I tried
Darn, still didn't work.
Anyone else have a suggestion? Or a way to view an error message of some
kind?
Ryan Shrout
-Original Message-
From: Tim Taubert [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 9:51 AM
To: PHP Mailingliste
Subject: RE: [PHP] mail function fails
mh
hmmm...
i just copied your code and changed the email address to mine and it
worked. $message was set to 'blah'.
this tells me you either have a problem with your email address or
$message.
why don't you echo $message along with Email NOT sent!.
mail messages are particular about
that sendmail is not configured to allow others to use
it? Is there a quick easy way to fix this?
Thanks!
Ryan
-Original Message-
From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 10:57 AM
To: Shrout, Ryan
Subject: RE: [PHP] mail function fails
-
From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 02, 2001 10:57 AM
To: Shrout, Ryan
Subject: RE: [PHP] mail function fails
RPM's tend to hose installations. May I suggest:
rpm -qa | grep php
rpm -e [insert php rpm name here]
rpm -e
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Richard Kurth) wrote:
Way does this not work it sends to the recipient but it will not
send to the bcc this is right out of the manual.
$recipient .= [EMAIL PROTECTED];
$subject = Hello;
$message .= The is the message\n;
$message .=
Krupiski Marcin [EMAIL PROTECTED] wrote:
Hi everbody !
When I use mail() function it seems not to work
what I can find in logs is :
Apr 24 16:51:01 xxx sendmail[10688]: f3OEp1U10688: SYSERR(nobody): Cannot
create ./dff3OEp1U10688: Permission denied
Why it doesn't work ???
I
in PHP.ini
you have to specify the outgoing mail server:
[mail function]
SMTP= smtp.blah.com ; for Win32 only
sendmail_from= [EMAIL PROTECTED] ; for Win32 only
;sendmail_path=;for unix only, may supply arguments as well (default is
'sendmail -t -i')
-elias
http://www.kameelah.org/eassoft
Hi,
I have PHP 4.0 with IIS on Win2K and I think compiled
everything right.
I'm not sure how this works on Win32, but on unix it's fine. It's
the mail()
function.
ex. mail("[EMAIL PROTECTED]","My Subject","My Test");
and it returns: Warning: Server Error in C:\PHP/index.php on line
Try adding a
if (!mail(blah blah, balh blah )) {
echo "Mail not sent";
}
if (mail(blah bal.)) {
echo "Mail sent";
}
Try these and subsitute what ever is in the mail() with your relevant
information.
- Original Message -
From: RealGM [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
April, 2001 5:40 PM
Subject: Re: [PHP] Mail Function
Thanks for the reply...
It comes back mail sent, but nothing is actually arriving..
- Original Message -
From: Zeus [EMAIL PROTECTED]
To: RealGM [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, April 11, 2001 7:29 PM
Hi
You mast have some mail server installed, or an access to one.
Then you have to configure your PHP.ini file:
1. If you are running under Windows:
[mail function]
SMTP= address of the mail server (mailserver.com
or IP address)
sendmail_from = [EMAIL
Use \r\n which is spec, and unfriendly mailers from Microsoft won't "embrace
and extend" enough to accept just \n which is Unix-standard.
What a surprise.
Oh -- it won't be HTML email. For *that* you need to send mime attachments.
There are multiple functions to do this in code archives such
201 - 236 of 236 matches
Mail list logo