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? > >

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

RE: [PHP] PHP Mail Function

2009-06-21 Thread Ashley Sheridan
On Sat, 2009-06-20 at 20:30 -0600, David Swenson wrote: > Julian, > > From my understanding of PHP's mail() function, it doesn't do anything > more than send to the address you specified. > > On that note, I'd check things like: > Email address typos > The email your sending to your domain, is it

RE: [PHP] PHP Mail Function

2009-06-20 Thread David Swenson
Julian, >From my understanding of PHP's mail() function, it doesn't do anything more than send to the address you specified. On that note, I'd check things like: Email address typos The email your sending to your domain, is it already being forwarded? If so, do you get the email at your gmail acc

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

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

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

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ć
do you have sendmail or smtp configured properly. Yao should test that first. Try to put instad of SMTP=localhost name of some other server, taht you can connect and send mail from. - Original Message - From: Anthony Ritter <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 19. studeni 2

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