[PHP] Re: Mail Function In PHP

2010-03-07 Thread Al
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

[PHP] Re: mail() function HELP

2008-03-04 Thread Shawn McKenzie
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

[PHP] Re: mail function

2006-02-27 Thread Cristian MARIN
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

[PHP] Re: mail function-new line-security

2005-09-28 Thread A.J. Brown
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] Re: mail function and qmail

2004-09-26 Thread M. Sokolewicz
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] Re: mail function and qmail

2004-09-26 Thread Catalin Trifu
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

[PHP] Re: mail() function problem

2004-09-02 Thread Dre
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

Re: [PHP] Re: mail() function problem

2004-09-02 Thread Dre
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

[PHP] Re: mail() function problem

2004-09-01 Thread Jasper Howard
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

[PHP] Re: mail() function problem

2004-09-01 Thread Dre
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? -- --

[PHP] Re: mail() function problem

2004-09-01 Thread Dre
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

[PHP] Re: mail() function problem

2004-09-01 Thread Jasper Howard
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

Re: [PHP] Re: mail() function problem

2004-09-01 Thread Pahlevanzadeh Mohsen
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]

Re: [PHP] Re: mail() function problem

2004-09-01 Thread Pahlevanzadeh Mohsen
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

RE: [PHP] Re: mail() function problem

2004-09-01 Thread Lone Wolf
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

[PHP] Re: Mail Function

2004-03-08 Thread Will
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

Re: [PHP] Re: Mail Function

2004-03-08 Thread Tom Rogers
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

Re: [PHP] Re: Mail Function

2004-03-08 Thread Stuart
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

[PHP] Re: Mail function problem

2004-01-10 Thread Jonas
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

[PHP] Re: Mail function problem

2004-01-10 Thread Manuel Lemos
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,

[PHP] Re: mail function error - win32

2003-11-01 Thread Manuel Lemos
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

Re: [PHP] Re: mail() function, how to get it work?

2003-10-06 Thread Burhan Khalid
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

[PHP] Re: mail() function, how to get it work?

2003-10-03 Thread Manuel Lemos
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

[PHP] Re: mail function

2003-09-12 Thread Curt Zirzow
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

[PHP] Re: mail function

2003-09-11 Thread Kae Verens
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

[PHP] Re: mail function

2003-09-11 Thread David
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

[PHP] Re: mail() function failure

2003-08-11 Thread Ivo Fokkema
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

[PHP] Re: mail function

2003-07-21 Thread Ivo Fokkema
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

Re: [PHP] Re: mail function

2003-07-21 Thread Chris Hayes
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

[PHP] Re: mail function

2003-07-21 Thread Peda
Thank you!!! Headers solved my problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mail function

2003-07-21 Thread Ivo Fokkema
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

Re: [PHP] Re: mail function

2003-07-21 Thread Curt Zirzow
* 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.

Re: [PHP] Re: mail() function exchange

2003-06-13 Thread Manuel Lemos
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

Re: [PHP] Re: mail() function exchange

2003-06-12 Thread Diana
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

Re: [PHP] Re: mail() function exchange

2003-06-12 Thread Mark
--- 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

Re: [PHP] Re: mail() function exchange

2003-06-12 Thread Diana
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.

Re: [PHP] Re: mail() function exchange

2003-06-11 Thread Diana
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

Re: [PHP] Re: mail() function exchange

2003-06-11 Thread Manuel Lemos
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

[PHP] Re: mail() function exchange

2003-06-10 Thread Manuel Lemos
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

[PHP] Re: mail() function

2003-03-04 Thread Patrick Schnegg
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

Re: [PHP] Re: mail() function

2003-03-04 Thread Jason Wong
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

[PHP] Re: mail() function

2003-03-04 Thread Patrick Schnegg
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

Re: [PHP] Re: mail() function

2003-03-04 Thread Patrick Schnegg
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

RE: [PHP] Re: mail() function

2003-03-04 Thread M.A.Bond
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

[PHP] Re: mail function works, but always from nobody@localhost!

2003-03-03 Thread KK
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]

[PHP] Re: mail function and Bcc restriction?

2003-03-02 Thread Manuel Lemos
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

[PHP] Re: mail function

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: mail function problems

2002-10-02 Thread David Robley
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

[PHP] Re: mail() function

2002-07-26 Thread Richard Lynch
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

[PHP] Re: Mail() function

2002-07-11 Thread Richard Lynch
I wonder if there’s a way to *HIDE* some parts from the Heading of the emails sent with PHP. I’m 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;

Re: [PHP] Re: Mail() function

2002-07-11 Thread Miguel Cruz
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!!!

[PHP] Re: Mail() function

2002-07-09 Thread vins
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

[PHP] Re: mail function question

2002-07-07 Thread Manuel Lemos
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

[PHP] Re: mail function question

2002-07-07 Thread Kirk Babb
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

[PHP] Re: Mail() function problem

2002-07-02 Thread Richard Lynch
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

[PHP] Re: mail() function hangs

2002-06-10 Thread Manuel Lemos
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.

[PHP] Re: mail() function

2002-05-28 Thread Manuel Lemos
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

[PHP] Re: mail function

2002-05-06 Thread Matthew Ward
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,

Re: [PHP] Re: mail function

2002-05-06 Thread Jason Wong
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:

[PHP] Re: mail function

2002-05-05 Thread Austin Marshall
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

[PHP] Re: mail function

2001-12-20 Thread jtjohnston
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;

[PHP] Re: mail function

2001-12-20 Thread jtjohnston
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

Re: [PHP] Re: mail function

2001-12-20 Thread Peter
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],

[PHP] Re: mail function

2001-12-05 Thread Johan
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

[PHP] Re: mail() function

2001-11-14 Thread Johan Holst Nielsen
$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

[PHP] Re: Mail function....

2001-09-12 Thread CC Zona
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.

[PHP] Re: mail function

2001-08-23 Thread Gabe da Silveira
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