Re: [PHP] php mail() function and ezmlm

2010-01-13 Thread vikash . iitb
Can you send it to other email addresses? -- Vikash Kumar http://vika.sh On Thu, Jan 14, 2010 at 12:16 PM, Bob Strasser wrote: > I'm having trouble sending info from a form to the list-subscr...@domain > Does anyone know why ezmlm doesn't recognize the mail() function? > >

[PHP] php mail() function and ezmlm

2010-01-13 Thread Bob Strasser
I'm having trouble sending info from a form to the list-subscr...@domain Does anyone know why ezmlm doesn't recognize the mail() function?

Re: [PHP] php mail() function

2009-11-25 Thread James Prentice
It looks like using XAMPP wasn't strictly necessary. I tried running this example again using my previous versions of mysql and apache and it worked fine. So the key is to configure Sendmail as described at the URL I gave. On Wed, Nov 25, 2009 at 10:58 AM, James Prentice wrote: > After a long del

Re: [PHP] php mail() function

2009-11-25 Thread James Prentice
After a long delay, I've finally got mail working. I had decided to move on in the book that I'm working through (Head First PHP & MySQL) but doubled back to address the mail issue again. This is how I finally got it to work: 1. Switched to XAMPP for linux rather than using my existing versions of

Re: [PHP] php mail() function

2009-10-26 Thread John Black
Bob McConnell wrote: I strongly recommend you call the help desk at Shaw and ask them to explain what is happening. They should know what is going on with their servers. Everyone on this list appears to be guessing at the problem, which is not likely to help you. But they are educated guesses :

RE: [PHP] php mail() function

2009-10-26 Thread Bob McConnell
From: James Prentice > I have tried setting both $to and $email to be the same shaw address > since I assumed it should be recognized by the mail server, but it's > still getting bounced. So why is 'www-d...@homemade' being listed as > the sender? Any ideas? I strongly recommend you call the help

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
But it seems like the 'From:' address being given to the PHP mail() function is maybe being ignored, because the error log lists 'www-d...@homemade' as being the sender, rather than listing the shaw address. The snippet from the PHP code: $email = $_POST['email']; ... mail($to, $subject, $msg, 'F

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
I also suspect that the problem is due to the sender address, but I have tried using the shaw email address for the From: address that's given to the mail() function and it still gets bounced. It seems like the ISP should consider that address valid. On Sat, Oct 24, 2009 at 2:20 PM, Per olof Lju

Re: [PHP] php mail() function

2009-10-24 Thread Per olof Ljungmark
James Prentice wrote: It sends the bounced message to /var/mail/www-data and I get this: --19BE8A70109.1256417846/homemade Content-Description: Delivery report Content-Type: message/delivery-status Reporting-MTA: dns; homemade X-Postfix-Queue-ID: 19BE8A70109 X-Postfix-Sender: rfc822; www-d...@h

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
It sends the bounced message to /var/mail/www-data and I get this: --19BE8A70109.1256417846/homemade Content-Description: Delivery report Content-Type: message/delivery-status Reporting-MTA: dns; homemade X-Postfix-Queue-ID: 19BE8A70109 X-Postfix-Sender: rfc822; www-d...@homemade Arrival-Date: Sa

Re: [PHP] php mail() function

2009-10-24 Thread John Black
James Prentice wrote: > Also, I notice that in the mail.log file, the 'from:' value is 'www-d...@homemade'. The actual 'from:' value is provided to the php mail() function via a web form, so should be somebody's email address (e.g. my own in this case). I think PHP will use the apache user and

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
Thanks, John. I set up the sasl_passwd file as per your instructions but am still getting status=bounced. I'm wondering, what should the values in main.cf be for 'myhostname' and 'mydestination'? These pages give some info on the Shaw mail servers, but I'm not certain which I should be using: htt

Re: [PHP] php mail() function

2009-10-24 Thread John Black
Paul M Foster wrote: > 4. All due respect to Kranthi, but I believe he's wrong about relaying mail from your webserver to the ISP's mailserver. I believe the ISP's mailserver doesn't care, as long as the mail comes from your "pipe". You could probably call yourself "pi...@pepperoni.com" and your

Re: [PHP] php mail() function

2009-10-23 Thread Paul M Foster
On Fri, Oct 23, 2009 at 09:11:25PM -0700, James Prentice wrote: > I found the mail server for my ISP (shawmail.vc.shawcable.net) and > edited main.cf in the following manner: > > myhostname = shawcable.net > relayhost = [shawmail.vc.shawcable.net] > > I still don't receive the mail from the PHP

Re: [PHP] php mail() function

2009-10-23 Thread kranthi
i never worked with postfix, but form my experience with hmail server i can say that you need to relay through a mail account of ISP(not the server itself) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php mail() function

2009-10-23 Thread James Prentice
I found the mail server for my ISP (shawmail.vc.shawcable.net) and edited main.cf in the following manner: myhostname = shawcable.net relayhost = [shawmail.vc.shawcable.net] I still don't receive the mail from the PHP script though. The error log from /var/log/mail.log is this: Oct 23 21:00:31 h

RE: [PHP] php mail() function

2009-10-23 Thread Bob McConnell
From: Paul M Foster > Regarding the rejection of dynamic IPs by smarthosts, are you saying > that it's a "blacklist" of sorts that lets them know an IP is dynamic? > (Serious question. I don't know the mechanism by which they determine > what is and isn't a dynamic IP.) You are talking about two

Re: [PHP] php mail() function

2009-10-23 Thread John Black
Paul M Foster wrote: Regarding the rejection of dynamic IPs by smarthosts, are you saying that it's a "blacklist" of sorts that lets them know an IP is dynamic? (Serious question. I don't know the mechanism by which they determine what is and isn't a dynamic IP.) I run my own mail server and us

Re: [PHP] php mail() function

2009-10-22 Thread kranthi
i faced the same problem quite a few times. the general email route is php script -> sender smtp server -> receiving mail server in your case path 2 is broken. meaning port 25 is blocked by your ISP the work around is: 1. see if your ISP provides you with an SMTP account that is not blocked (OR)

Re: [PHP] php mail() function

2009-10-22 Thread Paul M Foster
On Thu, Oct 22, 2009 at 11:40:34PM -0500, Shawn McKenzie wrote: > This is fairly accurate in premise but just to clarify. Mailservers > don't operate like this by default and there is really no "trust". > There are public blacklists that a mailserver can be configured to use > that tell the mai

Re: [PHP] php mail() function

2009-10-22 Thread Shawn McKenzie
Paul M Foster wrote: > On Thu, Oct 22, 2009 at 06:24:14PM -0700, James Prentice wrote: > > One other note. People look at me like I'm crazy when I mention this, > but I've seen it quite a bit at various internet mail servers. > Sometimes, in order to accept email from you, the internet mail server

Re: [PHP] php mail() function

2009-10-22 Thread Paul M Foster
On Thu, Oct 22, 2009 at 06:24:14PM -0700, James Prentice wrote: > How would I determine my ISP's SMPT server ID? And do I need to edit > main.cf in order to use that server? What ID? There's no ID needed. You just configure postfix to relay any non-local mail sent to it to the SMTP server at your

Re: [PHP] php mail() function

2009-10-22 Thread James Prentice
How would I determine my ISP's SMPT server ID? And do I need to edit main.cf in order to use that server? Also, is there a way to test the script just sending an email locally? I tried sending the email to use...@localhost, but the email was still not received. On Thu, Oct 22, 2009 at 4:15 PM,

Re: [PHP] php mail() function

2009-10-22 Thread LinuxManMikeC
The problem is you won't be trusted to deliver mail directly to most mail servers unless you have a static IP. Even then thats no guarantee. What you have to do is relay through your ISP's SMTP server where you're "trusted". You should also be able to setup PHP to use your ISP's SMTP server and

[PHP] php mail() function

2009-10-22 Thread James Prentice
I'm trying to use the php mail() function to send a mail within a php script. This is using PHP 5.2.4 and Ubuntu Hardy Heron linux. The script runs fine and the return value of the mail function is TRUE, but the mail is never received. I'm trying to send an email to my gmail account via the local s

RE: [PHP] PHP Mail Function

2009-06-21 Thread Ashley Sheridan
t; > Anyway those are somethings you could try as you have supplied no code > to check syntax and/or given any other testing you've tried. > > Good Luck, > David > > > -Original Message- > From: Julian Muscat Doublesin [mailto:opensourc...@gmail.com] > S

RE: [PHP] PHP Mail Function

2009-06-20 Thread David Swenson
ou've tried. Good Luck, David -Original Message- From: Julian Muscat Doublesin [mailto:opensourc...@gmail.com] Sent: Saturday, June 20, 2009 1:59 PM To: php-general@lists.php.net Subject: [PHP] PHP Mail Function Hello Everyone, I have written an e-mail function that sends e-mai

[PHP] PHP Mail Function

2009-06-20 Thread Julian Muscat Doublesin
Hello Everyone, I have written an e-mail function that sends e-mail to my domain that forwards it to a gmail account. When I use the gmail address directly it works fine. When I use my mail domain i don't get anything. Has anyone experienced this? Can anyone give me some advice? Thanks in advan

[PHP] PHP Mail function

2007-04-05 Thread Zhimmy Kanata
For whatever reason I can't pass the variable $email into the mail function to make it send me an email..can anyone help? Here is my code body { background: #131313; font-family: Verdana, Arial; font-weight: bold; font-size: 9px; color: #FF; }

Re: [PHP] php mail function vs smtp server

2005-10-31 Thread Richard Lynch
On Mon, October 31, 2005 5:22 am, Paul Waring wrote: > On Mon, Oct 31, 2005 at 12:56:01PM +0200, Clive wrote: >> Thanks I actually want to send 24 000 emails with 2 meg attachments. Woof. mail() is DEFINITELY the wrong answer! Firing up an SMTP connection and spewing 24,000 emails with 2 meg att

Re: [PHP] php mail function vs smtp server

2005-10-31 Thread Richard Lynch
On Mon, October 31, 2005 4:10 am, Clive wrote: > does anyone know whats better/uses less resource etc: > > If I run a loop to send a 1000 emails, should I use php's mail > fucntions > or send directly to the servers smtp server. SMTP PHP's mail() function was never designed for high-volume email.

Re: [PHP] php mail function vs smtp server

2005-10-31 Thread Paul Waring
On Mon, Oct 31, 2005 at 12:56:01PM +0200, Clive wrote: > Thanks I actually want to send 24 000 emails with 2 meg attachments. Oh. You definitely don't want to be using an external SMTP server if you can help it then, and you should really be splitting those up into chunks (no more than 1,000 at a

Re: [PHP] php mail function vs smtp server

2005-10-31 Thread Marcus Bointon
On 31 Oct 2005, at 10:34, Richard Heyes wrote: Depends on your setup. If you're on Linux/Unix you could use the mail() function along with the "-odq" option to Sendmail/Postfix/ Exim etc (fifth argument to the mail() function) which will dump all the mails into the MTAs queue. After this, th

Re: [PHP] php mail function vs smtp server

2005-10-31 Thread Paul Waring
On Mon, Oct 31, 2005 at 12:38:09PM +0200, Clive wrote: > what I mean is: im using a class called phpmailer and it has the option > to sent to a smtp server, I suppose this means that they do open a > socket to the smtp server. All that means is that you can specify an external SMTP server (e.g.

Re: [PHP] php mail function vs smtp server

2005-10-31 Thread Richard Heyes
Clive wrote: Hi does anyone know whats better/uses less resource etc: If I run a loop to send a 1000 emails, should I use php's mail fucntions or send directly to the servers smtp server. Depends on your setup. If you're on Linux/Unix you could use the mail() function along with the "-odq"

Re: [PHP] php mail function vs smtp server

2005-10-31 Thread Richard Davey
Hi Clive, Monday, October 31, 2005, 10:10:02 AM, you wrote: > does anyone know whats better/uses less resource etc: > If I run a loop to send a 1000 emails, should I use php's mail fucntions > or send directly to the servers smtp server. Use PEAR Mail Queue. Cheers, Rich -- Zend Certified En

Re: [PHP] php mail function vs smtp server

2005-10-31 Thread Paul Waring
On Mon, Oct 31, 2005 at 12:10:02PM +0200, Clive wrote: > does anyone know whats better/uses less resource etc: > > If I run a loop to send a 1000 emails, should I use php's mail fucntions > or send directly to the servers smtp server. What do you mean by "send directly"? Are you thinking of send

[PHP] php mail function vs smtp server

2005-10-31 Thread Clive
Hi does anyone know whats better/uses less resource etc: If I run a loop to send a 1000 emails, should I use php's mail fucntions or send directly to the servers smtp server. clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP mail function From header not working

2003-02-13 Thread Marco Alting
When I try to use a php script, to send an email, the From header is replaced by a senders email address of my provider. Is there any way to make it so my email address shows up in the From header? In the script I used fake addresses, because of client privacy reasons... -- PHP General Maili

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

2002-08-17 Thread N. Pari Purna Chand
- From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 17, 2002 11:49 PM Subject: Re: [PHP] PHP - mail() function problem > On Saturday 17 August 2002 21:08, N. Pari Purna Chand wrote: > > Hi guys, > > > > I am facin

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

2002-08-17 Thread N. Pari Purna Chand
- From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 17, 2002 11:49 PM Subject: Re: [PHP] PHP - mail() function problem > On Saturday 17 August 2002 21:08, N. Pari Purna Chand wrote: > > Hi guys, > > > > I am facin

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

2002-08-17 Thread Jason Wong
On Saturday 17 August 2002 21:08, N. Pari Purna Chand wrote: > Hi guys, > > I am facing a strange problem, > php's mail() function is not working when a php page is executed thru > apache, > but the same page which has mail() function is working fine and is sending > mails > when php is used as a

[PHP] PHP - mail() function problem

2002-08-17 Thread N. Pari Purna Chand
Hi guys, I am facing a strange problem, php's mail() function is not working when a php page is executed thru apache, but the same page which has mail() function is working fine and is sending mails when php is used as a scripting language in shell. I'm using xmail's sendmail and xmail as MTA on

[PHP] Php mail() function is not working for me

2002-07-02 Thread Balaji Ankem
Hi friend, I am getting the following problem from last 6 months..still I couldn't solve this problem. >>Warning: Failed to Connect in c:\www\imac\email.php on line 18 >>Warning: Failed to Connect in c:\www\imac\email.php on line 22 Email.php just visited your site and submitted

Re: [PHP] PHP MAIL function...why wont it work????

2002-03-07 Thread DL Neil
Brad, [I've put this back on the list, because someone who's into PHP's MAIL() from Linux might be able to help] > OK, I 'KISS'ed' it. The line now reads: > mail("[EMAIL PROTECTED]", "Please call if this works", "Hi there", > "From: [EMAIL PROTECTED]"); > and works fine. BUT, if i put my email a

Re: [PHP] PHP MAIL function...why wont it work????

2002-03-01 Thread DL Neil
Brad, > Yep it is a linux box. Ok, seeing that's 'sweet', go for "KISS"! See earlier comments about simplifying and once 'plain vanilla' is working, add back the optional headers/multiple lines, etc. Will be easier to work out what's breaking things, and then address that issue. Regards, =dn

Re: [PHP] PHP MAIL function...why wont it work????

2002-02-28 Thread Brad Wright
Yep it is a linux box. > From: "DL Neil" <[EMAIL PROTECTED]> > Reply-To: "DL Neil" <[EMAIL PROTECTED]> > Date: Thu, 28 Feb 2002 22:55:59 - > To: "Brad Wright" <[EMAIL PROTECTED]>, "PHP General List" > <[EMAIL PROTE

Re: [PHP] PHP MAIL function...why wont it work????

2002-02-28 Thread DL Neil
Hi Brad, > Hi all... I have a line in a page that should send me an email when the page > is loaded. > mail("[EMAIL PROTECTED]", "worked", "Line 1\nLine 2\nLine 3"); > when i load the page...i get NO error msgs, but the function does not send > the mail. There is no record of any activity in the

[PHP] PHP MAIL function...why wont it work????

2002-02-27 Thread Brad Wright
Hi all... I have a line in a page that should send me an email when the page is loaded. Here is the line i am using: mail("[EMAIL PROTECTED]", "worked", "Line 1\nLine 2\nLine 3"); when i load the page...i get NO error msgs, but the function does not send the mail. There is no record of any ac

Re: [PHP] PHP mail() function. Help please...

2001-11-18 Thread Anthony Ritter
Thank you! It works fine. Regards, Tony -- PHP General 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] PHP mail() function. Help please...

2001-11-18 Thread Avdija A . Ahmedhodžić
19. studeni 2001 01:07 Subject: [PHP] PHP mail() function. Help please... > I'm reading J.Meloni's tutorial on page 119 in "Fast and Easy" and she is > explaining using the PHP mail function. > > There are two scripts for this example... > > One is the .htm

[PHP] PHP mail() function. Help please...

2001-11-18 Thread Anthony Ritter
I'm reading J.Meloni's tutorial on page 119 in "Fast and Easy" and she is explaining using the PHP mail function. There are two scripts for this example... One is the .html file which lays out the form with input boxes, a textarea box and a submit button. It is: Simple Feedback Form Y

[PHP] Re: !!! URGENT [PHP] php mail() function Problem

2001-10-19 Thread Yasuo Ohgaki
If your sendmail is set up correctly, you should be able to send mail. Check your sendmail. Look for sendmail Manul, FAQ, etc, since it's not PHP problem. -- Yasuo Ohgaki Simos Varelakis wrote: > Hi to everyone > > i have problem with php4 mail() function. > > Os:mandrake 7.2 Mailprog:Sendm

[PHP] !!! URGENT [PHP] php mail() function Problem

2001-10-18 Thread Simos Varelakis
Hi to everyone i have problem with php4 mail() function. Os:mandrake 7.2 Mailprog:Sendmail the following php code does not send e-mail my /var/log/mail/info files log the following thewall sendmail[8313]: f9HAE9I08313: from=apache, size=0, class=0, nrcpts=0, relay=apache@localhost my php.

Re: [PHP] PHP mail() function

2001-07-27 Thread Mark Maggelet
t; >- Original Message - >From: Mark Maggelet <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Sent: Friday, July 27, 2001 12:14 PM >Subject: Re: [PHP] PHP mail() function > > >On Fri, 27 Jul 2001 11:11:57 -0600, Kevin Leavell ([EMAIL

Re: [PHP] PHP mail() function

2001-07-27 Thread Kevin Leavell
Subject: Re: [PHP] PHP mail() function On Fri, 27 Jul 2001 11:11:57 -0600, Kevin Leavell ([EMAIL PROTECTED]) wrote: >mail0 is sending mail that can't be received by aol or my local isp. > That >same mail can be received by other sites on that same server. The >mail doesn't

Re: [PHP] PHP mail() function

2001-07-27 Thread Mark Maggelet
On Fri, 27 Jul 2001 11:11:57 -0600, Kevin Leavell ([EMAIL PROTECTED]) wrote: >mail0 is sending mail that can't be received by aol or my local isp. > That >same mail can be received by other sites on that same server. The >mail doesn't bounce but I am getting a few DSN errors in my maillog. it so

[PHP] PHP mail() function

2001-07-27 Thread Kevin Leavell
mail0 is sending mail that can't be received by aol or my local isp. That same mail can be received by other sites on that same server. The mail doesn't bounce but I am getting a few DSN errors in my maillog. My site is hosted at a major hosting company. Funny enough, when the scripts were run