Use the Pear Mail package. In particular the smtp class.
It will save you much grief and time.
On 3/6/2010 11:54 PM, Kannan wrote:
Hello
I am creating a application for our college using the
php.In that i want to send mail to all who are all the list.
For that i am just simply use
Sofia Jacob (CA) wrote:
I'm getting problems with the mail() function.
ERROR:
Warning: mail() [function.mail]: Failed to connect to mailserver at port
25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in
C:\wamp\www\php_sandbox\user_auth_fns.php on line 170
I don't know exactly if this problem belongs to this news forum. This is
more or less a SMTP question.
The email servers names are kept into the mail MIME headers even if the
message only passed through them and was then forwarded the servers
names and IP's. This is done for anti-spam
I think you're thinking of spam injection through register_globals. If
so, yes it is vulnerable.
You need to force the variable data to come from the $_POST variable:
[code]
$name = $_POST['name'];
$phone = $_POST['phone'];
$user_mail = $_POST['user_mail'];
$my_email = $_POST['my_email'];
Php Mysql wrote:
mail function in php requires to use 'sendmail'. But I have only
'qmail' on the box. How I can send email in PHP?
Thanks
just pretend it doesn't say sendmail but qmail. It works on both :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Php Mysql wrote:
mail function in php requires to use 'sendmail'. But I have only
'qmail' on the box. How I can send email in PHP?
Thanks
Hi,
After u installed qmail, there is a qmail compatible sendmail
created for you in /var/lib/qmail/bin (i think that's where it should be).
As qmail
is that mean that I don't really have to install any mail server or sendmail
prgram on my testing server??
Jasper Howard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
i use apache on my windows xp machine and have never gotten around to
settings up any kind of sendmail program, I'm
Message-
From: Dre [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 6:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: mail() function problem
Sorry .. but I'm really so new at this
I'm using Apache Server on a MS Windows XP Pro. OS, and I'm
trying to send a mail
do you have a sendmail program on your testing server?
--
--
Jasper Howard :: Database Administration
Velocity7
1.530.470.9292
http://www.Velocity7.com/
--
Dre [EMAIL
I'm using an Apache server .. doesn't it come with a sendmail program ??
I really don't know
Jasper Howard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
do you have a sendmail program on your testing server?
--
--
Sorry .. but I'm really so new at this
I'm using Apache Server on a MS Windows XP Pro. OS, and I'm trying to send a
mail through a form ..
what do I need to install or configure to be able to do this.
thanks in advance
Dre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I'm using an
i use apache on my windows xp machine and have never gotten around to
settings up any kind of sendmail program, I'm pretty sure you have to
download one or atleast its some extra configuration.
--
--
Jasper Howard :: Database
Please switch to a UNIX box.For example Fedora.
Because it has everythings that you need.
--- Dre [EMAIL PROTECTED] wrote:
I'm using an Apache server .. doesn't it come with a
sendmail program ??
I really don't know
Jasper Howard [EMAIL PROTECTED] wrote in
message
news:[EMAIL PROTECTED]
If you use Windows as your server,You must install
M$Exchange server.It is a mailserver under Windows.
Of course,If you want to install Linux,I can help u.
It has benefit for u.
Even i made a group on yahoo phplovers.
You can join to my group will get help.
It has 56 members.
My email address is
PROTECTED]
Subject: [PHP] Re: mail() function problem
Sorry .. but I'm really so new at this
I'm using Apache Server on a MS Windows XP Pro. OS, and I'm
trying to send a mail through a form .. what do I need to
install or configure to be able to do this.
thanks in advance
Dre [EMAIL
Please help me with this. Can someone give me an example of their
php.ini on the settings of the mail function.
~WILL~
Will wrote:
Hello All,
I have a question. I installed PHP on a windows XP machine.
When I try to send a form it says:
Warning: mail(): sendmail_from not set in php.ini or
Hi,
Tuesday, March 9, 2004, 12:05:22 AM, you wrote:
W Please help me with this. Can someone give me an example of their
W php.ini on the settings of the mail function.
W ~WILL~
A wild guess but try it with \r\n as line endings, I don't run the
server under windows so can't help with the ini
Will wrote:
My sendmail_from is as follows:
sendmail_from = [EMAIL PROTECTED]
Did you restart Apache (assuming you're using the module) after making
this change?
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Rolf Berkenbosch wrote:
Hi All,
I have a big problem with the mail function in PHP.
I have installed PHP 4.3.3. But no email where send
With the mail function. If I run this script as root. There
Is no problem..
What do I need to change??
Thanks,
Rolf
hm I think the webserver
Hello,
On 01/10/2004 11:36 AM, Rolf Berkenbosch wrote:
I have a big problem with the mail function in PHP.
I have installed PHP 4.3.3. But no email where send
With the mail function. If I run this script as root. There
Is no problem..
What do I need to change??
Which platform as you using,
Hello,
On 11/01/2003 07:10 PM, [EMAIL PROTECTED] wrote:
I try to send from my pc a mail with the function mail(), but if doesn't work, I have tried several time, but nothing, I don't know what could be, because the same script work well in a remote host.
You need to specify valid sender and
Manuel Lemos wrote:
Hello,
On 10/03/2003 12:44 PM, Kristian Snabb wrote:
How do I set up the mail() function in php.ini.
How do I define the username and password? My smtp service requires me
to log on.
I'm using Apache 2.0.47 on WinXP Pro.
There is no way to set SMTP authentication using
Hello,
On 10/03/2003 12:44 PM, Kristian Snabb wrote:
How do I set up the mail() function in php.ini.
How do I define the username and password? My smtp service requires me
to log on.
I'm using Apache 2.0.47 on WinXP Pro.
There is no way to set SMTP authentication using the mail() function.
You
On Thu, 11 Sep 2003 11:24:29 +0545, Deependra B. Tandukar
[EMAIL PROTECTED] wrote:
Dear all,
Recently installed PHP in my Linux server. It says, mail function is not
enabled? How is turn this on?
That means that the configure script couldn't find your sendmail program.
You
need to tell
Deependra B. Tandukar wrote:
Dear all,
Recently installed PHP in my Linux server. It says, mail function is not
enabled? How is turn this on?
mail is handled by the server's smtp program. In Linux, this is
sendmail, and should be installed by default. Haven't a clue about
Windows (I don't do
If you are doing Windows, you set up SMTP in the php.ini to your mail
server, mine is SMTP = 192.168.16.2, and I also set up
sendmail_from = [EMAIL PROTECTED]
--
Kind Regards
David
Anagram Systems
http://www.anagram-sys.co.uk/
http://www.web-planets.com/davec/techsitedb/
Deependra B. Tandukar
Brad Esclavon [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have made a simple script to mail an email to a person on my domain. i
have tested the script with different values and i still cannot get the
email. when i execute the mail function, it returns true, so i know it
gets
I put this PHP script on web server:
?php
if (mail([EMAIL PROTECTED], brati, peda, From: Peda)== TRUE)
print(U redu je);
else
print(Greska);
?
But It seems that mail function doesn't work. I don't get any e-mail.
Can anyone tell me what is wrong.
Does mail() return true? I mean, do
At 10:39 21-7-03, you wrote:
I put this PHP script on web server:
?php
if (mail([EMAIL PROTECTED], brati, peda, From: Peda)== TRUE)
print(U redu je);
else
print(Greska);
?
But It seems that mail function doesn't work. I don't get any e-mail.
Can anyone tell me what is wrong.
Does
Thank you!!!
Headers solved my problem.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does mail() return true? I mean, do you get printed U redu je? If so,
your
email should've been sent by PHP.
You are really missing a bunch of headers. I'm not sure if this is your
problem, but I think it's not a bad idea to include more headers, also
because more and more ISP's add some
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
Does mail() return true? I mean, do you get printed U redu je? If so,
When PHP sends an email to a non existing email address such as
[EMAIL PROTECTED], the warning mail you normally get returned often does not
arrive in your mailbox.
Hello,
On 06/12/2003 02:32 PM, Diana wrote:
I totally agree with your first sentence *grin*.
Anyways, I won`t be able to use your class because my
server is kind of locked in their network, meaning I
don`t have the possibility to connect outside, only to
their servers (NT servers). And as
I totally agree with your first sentence *grin*.
Anyways, I won`t be able to use your class because my
server is kind of locked in their network, meaning I
don`t have the possibility to connect outside, only to
their servers (NT servers). And as Exchange servers
don`t use SMTP (meaning the whole
--- Diana [EMAIL PROTECTED] wrote:
I totally agree with your first sentence *grin*.
Anyways, I won`t be able to use your class because my
server is kind of locked in their network, meaning I
don`t have the possibility to connect outside, only to
their servers (NT servers). And as Exchange
Hi,
my company set their server up not to talk SMTP
(disabled all -- that guy told me), and my tries to
connect or talk to any of their Exchange servers
failed :( so he must be true. Got onto their NT
servers though ;)
All the company uses Outlook Exchange, they use
mapi to talk to each other.
Hi,
just today I stumbled into the same problem. It is
true, I got this answer from an expert:
Unfortunately this will not work. SMTP relaying is
disabled on all the
Exchange connector servers and a standard Exchange
mailbox server does
not
support SMTP. The only way that you can send SMTP
Hello,
On 06/11/2003 05:38 PM, Diana wrote:
Hi,
just today I stumbled into the same problem. It is
true, I got this answer from an expert:
Unfortunately this will not work. SMTP relaying is
disabled on all the
Exchange connector servers and a standard Exchange
mailbox server does
not
support
Hello,
On 06/10/2003 04:44 PM, Matthias Wulkow wrote:
a friend of mine is trying to set up an automated mailing function.
The platform is Windows he's using the last PHP release at this
time.
He asks me how to do it with Exchange, because it doesn't speak SMTP
or not correctly? What is the
The mail() function will only send one mail at a time, to send multiple
mails you would write a loop like this (presuming you had your mail
addresses ready in an array called $emails):
foreach ($emails as $email) {
mail($email, your subject, your message);
}
Denis L. Menezes [EMAIL
On Tuesday 04 March 2003 21:13, Patrick Schnegg wrote:
The mail() function will only send one mail at a time, to send multiple
mails you would write a loop like this (presuming you had your mail
addresses ready in an array called $emails):
foreach ($emails as $email) {
mail($email, your
Just in case you don't know, you can easily make an array out of your string
of emails by exploding using the commas as separators:
$emails = explode (,, $stringOfEmails);
Patrick Schnegg [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
The mail() function will only send one mail at a
Oh, silly me. Commas are indeed accepted. My apologies.
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 2:18 PM
Subject: Re: [PHP] Re: mail() function
On Tuesday 04 March 2003 21:13, Patrick Schnegg
13:14
To: [EMAIL PROTECTED]
Subject: [PHP] Re: mail() function
The mail() function will only send one mail at a time, to send multiple
mails you would write a loop like this (presuming you had your mail
addresses ready in an array called $emails):
foreach ($emails as $email) {
mail($email
add an extra variable to your mail function. php takes an optional 4th
parameter, which adds features like From and Reply. example:
$extra = From: $name $email\r\n\Reply-To: $email;
so the mail function would be:
mail($recipient,$subject,$body,$extra);
Hope this helped.
Ml [EMAIL PROTECTED]
Hello,
On 03/01/2003 08:35 AM, Mirza Muharemagic wrote:
Hi all,
are there any restrictions for mail function, when I use Bcc? how
many email adresses can i put in Bcc, are there any PHP
restriction, or just memory restriction, or something else?
Put them all in a single Bcc: header
Dale schrieb:
I am trying to configure the php.ini file so that I can use the mail
function in my code. The problem I am facing is that I get the following
error message when I try to run my code:
Warning: mail() [function.mail]: SMTP server response: 550 Relaying is
prohibited
this is
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
I use the mail function tons, never had a problem. I am working with a client with
a different
hosting vendor, they are using PHP 4.2.3, which I guess was a recient upgrade,
anyway I was
informed by the client that he wasnt getting
what has to be configured, and how, on a bsd server to allow the mail()
function to work in php? using sendmail?
php.ini
Use the path to sendmail there, with the -t as suggested, and *YES* the
quotes *ARE* supposed to be part of it:
sendmail_path = /path/to/sendmail -t
You may also need to
I wonder if theres a way to *HIDE* some parts from the Heading of the
emails sent with PHP. Im trying to create an anonymous mail sender but
in the header of the message appears:
Received: (from httpd@localhost)
by www.whateverdomain.com (8.10.2/8.10.2) id g69MEA527130;
On Thu, 11 Jul 2002, Richard Lynch wrote:
I honestly have no idea how to forge an email routing path, just know it can
be done, and is not rocket-science. But you're going to have to dig into
the guts of sendmail or equivalent at a minimum, or search out send spam to
1,000,000 people!!!
I don't really think there is... I've been trying this for a while now...
César aracena [EMAIL PROTECTED] wrote in message
012501c2278c$afdebcb0$81c405c8@gateway">news:012501c2278c$afdebcb0$81c405c8@gateway...
Hi all.
I wonder if there's a way to *HIDE* some parts from the Heading of the
Hello,
On 07/07/2002 07:49 PM, Kirk Babb wrote:
I'm using argosoft's mailserver with SMTP authentication, and would like to
know how to pass the usr pwd inside php's mail() function. Please help me
out here, I've RT*M without gaining an understanding of this.
No, mail() function does not
Thanks - I'm heading there now. I appreciate the help.
-Kirk
Manuel Lemos [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
On 07/07/2002 07:49 PM, Kirk Babb wrote:
I'm using argosoft's mailserver with SMTP authentication, and would like
to
know how
Hi friend,
I am using the SMTP server which needs authentication.
And where did you put the username/password in that will authenticate
PHP?... :-)
I dunno where you have to put it, and maybe you just can't do that, but you
can't expect PHP to just magically know your password...
--
Like
Hello,
On 06/10/2002 12:07 PM, Phil Schwarzmann wrote:
Whenever a user runs the mail function, an e-mail messsage is sent
properly but the page just hangs.
Has anyone else had this problem?
I heard it happens on Windows but I am not sure why. It looks like it is
missing \r\n somewhere.
Hello,
On 05/27/2002 04:38 PM, Jochem Kempe wrote:
It appears to me that there is something wrong with the mail() function,
I've got an Apache 2.0.36 webserver in an Windows XP environment,
now everythin seems to work just fine until I try to execute this:
mail([EMAIL PROTECTED], My
You can add further variables to the end of your current mail() function to
specify the name of who its from, and the email address that they will send
the message to when they use the reply function on their email program, like
this:
mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3,
On Monday 06 May 2002 06:31, Matthew Ward wrote:
You can add further variables to the end of your current mail() function to
specify the name of who its from, and the email address that they will send
the message to when they use the reply function on their email program,
like this:
Diana Castillo wrote:
Diana Castillo wrote:
Hi, if I use the mail function, as in :
mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3);
The mail comes from Webserver How can I change the from ?
Just as the manual says, the 4th parameter which is optional allows you
to
If you declare
Here is code that works:
?php
session_name(ESLpostcard);
session_start();
$img_encoded = base64_encode($image_data);
mail($theiremail, You Have A Christmas Postcard, , from: \$yourname\
$youremail\r\n
.Content-Type: multipart/mixed;
If you declare a header after you used html or echoed something, it will fail.
header(Location: http://www.winwhole.com.hk/sent.php;)
HTH.
Here is some code that works:
?php
session_name(ESLpostcard);
session_start();
$img_encoded = base64_encode($image_data);
mail($theiremail, You Have A
Sorry but I am a bit of a newbie at this.
So do you mean that I am supposed write it like this?
else
{
$mailheaders = From: $email\r\n;
$mailheaders .= Reply-To: $email\r\n;
$mailheaders .= Content-Type: text/html; charset=iso-8859-1\r\n;
$remarks .= brbr$items;
mail([EMAIL PROTECTED],
Is it possible to use php's mail function to send an html formated email
(one of your pages or a newsletter, whatever...)? If so, how?
yes...
Make a header called etc.
Content-type: text/html
Regards,
Johan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
$mailheaders = From: \Do Not Reply\\r\nReply-To: Do Not Reply@Do Not
Reply\n;
If I use the above headers it says from Do Not [EMAIL PROTECTED]
Does anyone know how to make it just say Do Not Reply?
You cant... but try making it like this:
$mailheaders = FROM: Do Not Reply
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Kyle Smith) wrote:
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
It's in the docs, examples and all.
There are not a lot of guarantees. A big part of the problem is that
you can't get instant feedback. Your mail server may queue the message
and not even send it right away, or it could get sent, and your mail
server doesn't find out for several minutes while the message goes out
on the 'net
67 matches
Mail list logo