Re: [PHP] Mail function and hotmail

2009-06-10 Thread Sudheer Satyanarayana
Richard was likely suggestion his mail example as listed in his signature Other options include phpmailer pear's mime mail various other classes available www.phpclasses.org Fernando, I recommend you check out the various PHP frameworks out there. Instead of randomly searching for

RE: [PHP] Mail function and hotmail

2009-06-10 Thread Fernando G
Thank you. I'm looking at PEAR Mail_mime right now. It seems promising. Fernando. Date: Wed, 10 Jun 2009 23:14:11 +0530 From: sudhee...@binaryvibes.co.in To: phps...@gmail.com CC: jfer...@hotmail.com; rich...@php.net; php-general@lists.php.net Subject: Re: [PHP] Mail function and hotmail

[PHP] Mail Function

2008-11-03 Thread Will W
Hello all,I did a search and did not find anything I was looking for. What is the limitation of the max emails that the mail function can send to? Thanks, Will

Re: [PHP] Mail Function

2008-11-03 Thread Daniel P. Brown
On Mon, Nov 3, 2008 at 12:56 PM, Will W [EMAIL PROTECTED] wrote: What is the limitation of the max emails that the mail function can send to? That's limited by three things: 1.) Server resource availability (RAM, CPU, bandwidth). 2.) Server configuration. 3.) Your

Re: [PHP] Mail Function

2008-11-03 Thread Andrew Ballard
On Mon, Nov 3, 2008 at 1:19 PM, Daniel P. Brown [EMAIL PROTECTED] wrote: On Mon, Nov 3, 2008 at 12:56 PM, Will W [EMAIL PROTECTED] wrote: What is the limitation of the max emails that the mail function can send to? That's limited by three things: 1.) Server resource availability

Re: [PHP] mail function and headers

2008-03-13 Thread Alain Roger
Hi Chris, interesting thing, but i get the following error message : *Warning*: mail() [function.mailhttp://test4.rogtek.com/common/function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in */test4/common/sendmail.php* on line *119* how can i solve this by

Re: [PHP] mail function and headers

2008-03-13 Thread Chris
Alain Roger wrote: Hi Chris, interesting thing, but i get the following error message : *Warning*: mail() [function.mail http://test4.rogtek.com/common/function.mail]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in */test4/common/sendmail.php* on line *119*

Re: [PHP] mail function and headers

2008-03-13 Thread Alain Roger
hiChris, i've read several forums where this mail() function from PHP initial package is not so great. Therefore a lot of people use PHPMailer which is more convenient for that purpose...especially more flexible. thanks a lot for your help. Alain On Thu, Mar 13, 2008 at 8:35 AM, Chris [EMAIL

Re: [PHP] mail function and headers

2008-03-13 Thread Chris
Alain Roger wrote: hiChris, i've read several forums where this mail() function from PHP initial package is not so great. mail() works fine. phpmailer (and zendmailer, swiftmailer and other such packages) help you with things like: - sending through an smtp server - putting a multipart

[PHP] mail function and headers

2008-03-12 Thread Alain Roger
Hi, i'm playing a little bit with the mail function from PHP 5.2.4 and email headers. here is a snippet of my code: $headers = 'From: '.$email. .$fromname. \r\n.'Reply-To:'.$email.\r\n.'X-Mailer: PHP/' . phpversion(); if (mail($to, $subject, $body,$headers)) { ... } where: $fromname =

Re: [PHP] mail function and headers

2008-03-12 Thread Daniel Brown
On Wed, Mar 12, 2008 at 10:28 AM, Alain Roger [EMAIL PROTECTED] wrote: Hi, i'm playing a little bit with the mail function from PHP 5.2.4 and email headers. here is a snippet of my code: $headers = 'From: '.$email. .$fromname. \r\n.'Reply-To:'.$email.\r\n.'X-Mailer: PHP/' .

Re: [PHP] mail function and headers

2008-03-12 Thread spacemarc
2008/3/12, Daniel Brown [EMAIL PROTECTED]: You have the From: header parameters reversed. Try this: ? $headers = From: .$fromname. .$email.\r\n; $headers .= Reply-To: .$email.\r\n; $headers .= X-Mailer: PHP/.phpversion().\r\n; /* */ ? you can add these headers:

Re: [PHP] mail function and headers

2008-03-12 Thread Alain Roger
ok i will try... what about UTF-8 to ensure unicode ? my website and especially the form which will send this email, will be filled in by several nationalities... spanish, english, french, slovak, german,,... so isn't it easier to set up utf-8 ? A. On Wed, Mar 12, 2008 at 4:11 PM, spacemarc

Fwd: [PHP] mail function and headers

2008-03-12 Thread Alain Roger
ok i will try... what about UTF-8 to ensure unicode ? my website and especially the form which will send this email, will be filled in by several nationalities... spanish, english, french, slovak, german,,... so isn't it easier to set up utf-8 ? A. On Wed, Mar 12, 2008 at 4:11 PM, spacemarc

Re: [PHP] mail function and headers

2008-03-12 Thread Alain Roger
ok, so this is what i got and it is still remaining... :-( Received: from serdev ([127.0.0.1]) by home.com with MailEnable ESMTP; Wed, 12 Mar 2008 16:40:18 +0100 Date: Wed, 12 Mar 2008 16:40:18 +0100 Subject: subject 3 To: [EMAIL PROTECTED] From: raf, news [EMAIL PROTECTED] Reply-To: [EMAIL

Re: [PHP] mail function and headers

2008-03-12 Thread Chris
as you can see my Return-Path is still pointing on the wrong direction :-( any other idea ? return-path is set with the 5th mail() param: mail($to, $subject, $body, $headers, '[EMAIL PROTECTED]'); -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List

Re: [PHP] mail() function HELP

2008-03-04 Thread Stut
On 4 Mar 2008, at 21:18, 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

Re: [PHP] mail() function HELP

2008-03-04 Thread Shawn McKenzie
Stut wrote: On 4 Mar 2008, at 21:18, 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

Re: [PHP] mail() function HELP

2008-03-04 Thread Stut
, March 04, 2008 4:57 PM Subject: Re: [PHP] mail() function HELP On 4 Mar 2008, at 21:18, 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

Re: [PHP] mail() function HELP

2008-03-04 Thread Shawn McKenzie
Stut wrote: Please include the list when replying. And please don't top-post, it makes proper quoting difficult. On 4 Mar 2008, at 22:10, Sofia Jacob (CA) wrote: Yes, I did that first and I get the error: Warning: mail() [function.mail]: Failed to connect to mailserver at mail.yahoo.ca

[PHP] Mail function doesn't work

2007-11-05 Thread Alberto García Gómez
What could happen that my mail function isn't working. I check twice my php.ini conf and it's fine. I test sendmail manually and it's OK. I also try to send mails with sendmail stoped and started and nothing happen Este correo ha sido enviado desde el Politécnico de Informática Carlos Marx de

RE: [PHP] Mail function doesn't work

2007-11-05 Thread Jay Blanchard
[snip] What could happen that my mail function isn't working. I check twice my php.ini conf and it's fine. I test sendmail manually and it's OK. I also try to send mails with sendmail stoped and started and nothing happen [/snip] Can we see your code? -- PHP General Mailing List

Re: [PHP] Mail function doesn't work

2007-11-05 Thread Per Jessen
Alberto García Gómez wrote: What could happen that my mail function isn't working. I check twice my php.ini conf and it's fine. I test sendmail manually and it's OK. I also try to send mails with sendmail stoped and started and nothing happen Does your mail-server otherwise work? /Per

Re: [PHP] Mail function doesn't work

2007-11-05 Thread Jim Lucas
Alberto García Gómez wrote: What could happen that my mail function isn't working. I check twice my php.ini conf and it's fine. I test sendmail manually and it's OK. I also try to send mails with sendmail stoped and started and nothing happen Este correo ha sido enviado desde el Politécnico

Re: [PHP] mail function

2007-08-02 Thread Siavash Miri
: Animesh Joshi [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, August 01, 2007 3:20 AM Subject: [PHP] mail function I've installed IIS (Internet information services on my windows XP machine. I've also installed php 5.0 from www.php.net. I'm trying to use the mail() function

Re: [PHP] mail function

2007-08-02 Thread Stut
Animesh Joshi wrote: I've installed IIS (Internet information services on my windows XP machine. I've also installed php 5.0 from www.php.net. I'm trying to use the mail() function in a simple php script which uses a html form. However, i'm not able to send the mail using the mail($to,

[PHP] mail function

2007-08-01 Thread Animesh Joshi
I've installed IIS (Internet information services on my windows XP machine. I've also installed php 5.0 from www.php.net. I'm trying to use the mail() function in a simple php script which uses a html form. However, i'm not able to send the mail using the mail($to, $subject, $message,

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 6:33 pm, Tanner Postert wrote: I am currently running PHP 5.1.4 Fedora Core 5 i'm trying to exectute the following test script. ?php $to = '[EMAIL PROTECTED]'; $subject = 'the subject'; $message = 'body'; $headers = 'From: [EMAIL PROTECTED]' . \r\n .

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Chris
Richard Lynch wrote: On Thu, July 12, 2007 6:33 pm, Tanner Postert wrote: I am currently running PHP 5.1.4 Fedora Core 5 i'm trying to exectute the following test script. ?php $to = '[EMAIL PROTECTED]'; $subject = 'the subject'; $message = 'body'; $headers = 'From: [EMAIL PROTECTED]' .

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Tanner Postert
apache is definitely listed in the trusted users, as I mentioned, I can send from dozens of other domains, its just one specific domain that I can't. i'll let you know the results of sending the email from outside of php. On 7/12/07, Chris [EMAIL PROTECTED] wrote: Richard Lynch wrote: On Thu,

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Tanner Postert
mail function returns 1(true) whether or not i'm sending to the new virtual host domain name or any random domain name. turns out sendmail function does the same thing, so it looks like it's a sendmail problem... but how is that possible if i've never configured anything for this new domain

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Tanner Postert
figured it out... the domain in question's dns is set to CNAME to the main domain on that server, whereas, the remaining domains are just using the A record with the IP. I changed one of the other domains to use the CNAME and it did the same thing. So looks like thats the culprit. I'll have to

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Tijnema
On 7/13/07, Tanner Postert [EMAIL PROTECTED] wrote: figured it out... the domain in question's dns is set to CNAME to the main domain on that server, whereas, the remaining domains are just using the A record with the IP. I changed one of the other domains to use the CNAME and it did the same

Re: [PHP] mail function from and reply to address problem

2007-07-13 Thread Tanner Postert
thanks, thats exactly where I went. looks like i'm on the right track. On 7/13/07, Tijnema [EMAIL PROTECTED] wrote: On 7/13/07, Tanner Postert [EMAIL PROTECTED] wrote: figured it out... the domain in question's dns is set to CNAME to the main domain on that server, whereas, the remaining

RE: [PHP] mail function from and reply to address problem

2007-07-12 Thread Steve Perkins
Subject: [PHP] mail function from and reply to address problem I am currently running PHP 5.1.4 Fedora Core 5 i'm trying to exectute the following test script. ?php $to = '[EMAIL PROTECTED]'; $subject = 'the subject'; $message = 'body'; $headers = 'From: [EMAIL PROTECTED]' . \r\n . 'Reply

[PHP] mail function from and reply to address problem

2007-07-12 Thread Tanner Postert
I am currently running PHP 5.1.4 Fedora Core 5 i'm trying to exectute the following test script. ?php $to = '[EMAIL PROTECTED]'; $subject = 'the subject'; $message = 'body'; $headers = 'From: [EMAIL PROTECTED]' . \r\n . 'Reply-To: [EMAIL PROTECTED]' . \r\n . 'X-Mailer: PHP/' .

Re: [PHP] mail function problem

2007-07-05 Thread Daniel Brown
On 7/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Chris a écrit : web2 wrote: Chris a écrit : Try this: ? $email = [EMAIL PROTECTED]; $headers = From: .$email.\r\n; $headers .= X-Mailer: PHP/.phpversion().\r\n; if(mail([EMAIL PROTECTED],essai,test,$headers)) { echo OK:

Re: [PHP] mail function problem

2007-07-05 Thread web2
Chris a écrit : web2 wrote: Chris a écrit : Try this: ? $email = [EMAIL PROTECTED]; $headers = From: .$email.\r\n; $headers .= X-Mailer: PHP/.phpversion().\r\n; if(mail([EMAIL PROTECTED],essai,test,$headers)) { echo OK: .ini_get('sendmail_path'); } else { echo NOK:

Re: [PHP] mail function problem

2007-07-05 Thread Tijnema
On 7/5/07, Daniel Brown [EMAIL PROTECTED] wrote: On 7/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Chris a écrit : web2 wrote: Chris a écrit : Try this: ? $email = [EMAIL PROTECTED]; $headers = From: .$email.\r\n; $headers .= X-Mailer: PHP/.phpversion().\r\n;

Re: [PHP] mail function problem

2007-07-05 Thread Daniel Brown
On 7/5/07, Tijnema [EMAIL PROTECTED] wrote: he's running it on the web, as the CLI worked ;) Yeah, I knew it was mentioned before, but I couldn't remember. I think I have early-onset Alzheimer's. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General

Re: [PHP] mail function problem

2007-07-04 Thread web2
Chris a écrit : Try this: ? $email = [EMAIL PROTECTED]; $headers = From: .$email.\r\n; $headers .= X-Mailer: PHP/.phpversion().\r\n; if(mail([EMAIL PROTECTED],essai,test,$headers)) { echo OK: .ini_get('sendmail_path'); } else { echo NOK: .ini_get('sendmail_path'); } ? Note Same

Re: [PHP] mail function problem

2007-07-04 Thread Chris
web2 wrote: Chris a écrit : Try this: ? $email = [EMAIL PROTECTED]; $headers = From: .$email.\r\n; $headers .= X-Mailer: PHP/.phpversion().\r\n; if(mail([EMAIL PROTECTED],essai,test,$headers)) { echo OK: .ini_get('sendmail_path'); } else { echo NOK: .ini_get('sendmail_path'); } ?

Re: [PHP] mail function problem

2007-07-03 Thread web2
Daniel Brown a écrit : On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Daniel Brown a écrit : On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've already checked : - the mail logs : no mail send - and the apache error and access logs : nothing except this : 192.168.0.1 - -

Re: [PHP] mail function problem

2007-07-03 Thread Chris
Try this: ? $email = [EMAIL PROTECTED]; $headers = From: .$email.\r\n; $headers .= X-Mailer: PHP/.phpversion().\r\n; if(mail([EMAIL PROTECTED],essai,test,$headers)) { echo OK: .ini_get('sendmail_path'); } else { echo NOK: .ini_get('sendmail_path'); } ? Note Same result : NOK

Re: [PHP] mail function problem

2007-07-02 Thread web2
I've already checked : - the mail logs : no mail send - and the apache error and access logs : nothing except this : 192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] GET /~ee/mail.php HTTP/1.1 200 49291 - Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Re: [PHP] mail function problem

2007-07-02 Thread Daniel Brown
On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've already checked : - the mail logs : no mail send - and the apache error and access logs : nothing except this : 192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] GET /~ee/mail.php HTTP/1.1 200 49291 - Mozilla/5.0 (Windows; U; Windows

Re: [PHP] mail function problem

2007-07-02 Thread web2
Daniel Brown a écrit : On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've already checked : - the mail logs : no mail send - and the apache error and access logs : nothing except this : 192.168.0.1 - - [02/Jul/2007:14:07:22 +0200] GET /~ee/mail.php HTTP/1.1 200 49291 -

Re: [PHP] mail function problem

2007-07-02 Thread Daniel Brown
On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Daniel Brown a écrit : On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I've already checked : - the mail logs : no mail send - and the apache error and access logs : nothing except this : 192.168.0.1 - - [02/Jul/2007:14:07:22

Re: [PHP] mail function problem

2007-07-02 Thread Daniel Brown
On 7/2/07, Daniel Brown [EMAIL PROTECTED] wrote: {snip} Note Sorry, hit the button before I was done typing. Note the trailing \r\n after the X-Mailer line as well. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List

Re: [PHP] mail function problem

2007-07-01 Thread Chris
[EMAIL PROTECTED] wrote: Hi, I'm running PHP 5.2.3 on Solaris 10 (AMD64). My mail function doesn't send any mail, the return value of mail function is false... But sendmail_path value is OK in php.ini, and I've tried to send a mail with sendmail on console with the same user (the apache

[PHP] mail function problem

2007-06-29 Thread web2
Hi, I'm running PHP 5.2.3 on Solaris 10 (AMD64). My mail function doesn't send any mail, the return value of mail function is false... But sendmail_path value is OK in php.ini, and I've tried to send a mail with sendmail on console with the same user (the apache user), and everything's ok...

Re: [PHP] Mail function

2007-04-05 Thread Shafiq Rehman
Hi, What i understand is, you have written a new function for sending emails. Are you passing all the variables to that function? If not, you have to pass. or you can use my function ?php // function declaration, This function can send only HTML emails function sendMail ($toEmail, $subject,

Re: [PHP] Mail function

2007-04-05 Thread Zhimmy Kanata
Hi, Tried it...but it didn't work...Not sure why. I am using a respectable ISP and they are looking at the problem although they tend to take their time. I figure I must not be passing the variable. I will post my entire code. For all those that help again thank you. ?php

[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 ?php require(config.php); require(functions.php); //echo some styles to spice it up... echo style body { background: #131313;

[PHP] Mail function

2007-04-04 Thread Zhimmy Kanata
Hi, I am working on a program to create a registration feature through a email notificaiton much like this list. For functional use but also for personal training. However, I can't seem to pass the variable into the mail function() ? If I echo the variable it displays it so it must

[PHP] Mail function undefined in PHP6

2007-03-17 Thread Tijnema !
Hi, I have PHP6 installed (Snapshot:200703141130) and somehow it says now that the mail function is undefined, i have sendmail installed in /usr (is in $PATH) my configure command: './configure' '--prefix=/usr' '--with-pear' '--enable-all' '--with-apxs2' '--without-fbsql' '--without-interbase'

Re: [PHP] Mail function undefined in PHP6

2007-03-17 Thread Robert Cummings
On Sat, 2007-03-17 at 11:07 +0100, Tijnema ! wrote: Hi, I have PHP6 installed (Snapshot:200703141130) and somehow it says now that the mail function is undefined, i have sendmail installed in /usr (is in $PATH) my configure command: './configure' '--prefix=/usr' '--with-pear'

Re: [PHP] Mail function undefined in PHP6

2007-03-17 Thread Tijnema !
On 3/17/07, Robert Cummings [EMAIL PROTECTED] wrote: On Sat, 2007-03-17 at 11:07 +0100, Tijnema ! wrote: Hi, I have PHP6 installed (Snapshot:200703141130) and somehow it says now that the mail function is undefined, i have sendmail installed in /usr (is in $PATH) my configure command:

Re: [PHP] mail() function dying half way through. [SOLVED]

2006-06-11 Thread Dave M G
Chris, Richard, Thank you for your advice. Inserting sleep(1) into the script seems to have done the trick. I will also look into the other alternatives you suggest, such as different mail programs and the error output of mail() to see if I can optimize the system further. Thank you for

[PHP] mail() function dying half way through.

2006-06-09 Thread Dave M G
PHP List, I have a database of about 120 users. Each weak I send out a newsletter. So far as I know, it's been working fine for the last couple of years. Then recently some users emailed me to let me know that they haven't been receiving all the messages. I added extra output to my script to

Re: [PHP] mail() function dying half way through.

2006-06-09 Thread Chris
Dave M G wrote: PHP List, I have a database of about 120 users. Each weak I send out a newsletter. So far as I know, it's been working fine for the last couple of years. Then recently some users emailed me to let me know that they haven't been receiving all the messages. I added extra

Re: [PHP] mail() function dying half way through.

2006-06-09 Thread Richard Lynch
On Fri, June 9, 2006 12:59 am, Dave M G wrote: I have a database of about 120 users. Each weak I send out a newsletter. So far as I know, it's been working fine for the last couple of years. Then recently some users emailed me to let me know that they haven't been receiving all the messages.

[PHP] mail function in 4.2.2

2006-06-01 Thread Aaron Todd
I am working with a server that has version 4.2.2 on it. I know...I know...its old. Its my ISPs server so I don't have too much control over it. Anyway, I am seeing a problem where when I use the mail function to send out an email only some of the messages get to the destination. I wrote a

Re: [PHP] mail function in 4.2.2

2006-06-01 Thread chris smith
On 6/1/06, Aaron Todd [EMAIL PROTECTED] wrote: I am working with a server that has version 4.2.2 on it. I know...I know...its old. Its my ISPs server so I don't have too much control over it. Anyway, I am seeing a problem where when I use the mail function to send out an email only some of

Re: [PHP] mail function in 4.2.2

2006-06-01 Thread Aaron Todd
Thanks for the reply. I'll ask the ISP about throtteling next time I talk with them. I would also like to mention that I am also getting intermitent results when just sending a single email. One if the web pages I am testing is a support request form. When the form is submitted it sends an

Re: [PHP] mail function in 4.2.2

2006-06-01 Thread Chris
Aaron Todd wrote: Thanks for the reply. I'll ask the ISP about throtteling next time I talk with them. I would also like to mention that I am also getting intermitent results when just sending a single email. One if the web pages I am testing is a support request form. When the form is

Re: [PHP] Mail function problems

2006-03-20 Thread Richard Lynch
. On Sun, March 19, 2006 3:50 pm, Paul Goepfert wrote: Hi all, Has anyone had this problem before? I have a web server that resides on a windows platform (According to phpinfo()). I used the php mail function to send out a test message to make sure that the mail function would work when needed

[PHP] Mail function problems

2006-03-19 Thread Paul Goepfert
Hi all, Has anyone had this problem before? I have a web server that resides on a windows platform (According to phpinfo()). I used the php mail function to send out a test message to make sure that the mail function would work when needed. I sent out the test message and I didn't get an email

[PHP] mail function

2006-02-26 Thread Mohsen Pahlevanzadeh
Dear all, I wanna mail to x user that x can't see my IP address. Do you know same function? --Mohsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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

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 sending

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

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 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 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, the

Re: [PHP] php mail function vs smtp server

2005-10-31 Thread Paul Waring
at a time really) using something like PEAR Queue as has already been suggested. There also another option with the class: using the sendmail program, but won't the php mail function use sendmail anyway As far as I know, mail() just sends stuff to whatever the sendmail binary is on your system

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. It

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

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

2005-09-29 Thread Torgny Bjers
Peppy wrote: AJ, So what your reply means is that I should not have a new line character in any variable on my page??? Of course you can have newlines in your email message, just make sure that any user input is received through POST, and that you run a regular expression to validate that

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

2005-09-28 Thread Peppy
AJ, So what your reply means is that I should not have a new line character in any variable on my page??? Then is there any way to format the email so it is readable? Thanks.

[PHP] mail function-new line-security

2005-09-27 Thread Peppy
I have been working on making my contact forms more secure. In my research, the occurence of the new line character \n at the end of the $headers variable in the mail function seems to be a security risk and opens one up to injection of spam email. This part I understand. I have been unable

Re: [PHP] Mail Function

2005-07-22 Thread Richard Lynch
On Tue, July 19, 2005 4:31 pm, Cabbar Duzayak said: I have a web site that is going to have around total of 10-20 thousand unique users, about 1000 unique hits per day on shared hosting. I have been using PHP's internal mail mechanism with the local smtp server on my hosting company, but it

[PHP] Mail Function

2005-07-19 Thread Cabbar Duzayak
Hi, I have a web site that is going to have around total of 10-20 thousand unique users, about 1000 unique hits per day on shared hosting. I have been using PHP's internal mail mechanism with the local smtp server on my hosting company, but it is more like a hit-and-miss kind of thing. And,

Re: [PHP] Mail function

2005-05-18 Thread Richard Lynch
On Tue, May 17, 2005 3:53 pm, [EMAIL PROTECTED] said: I have a script which send emails using mail() function. I have 100 email addresses and i set up the script to send 1 email every 10 seconds. So, it will take 1000 seconds to send all 100 emails. My question is: If I stop the script

[PHP] Mail function

2005-05-17 Thread virtualsoftware
Hi, I have a script which send emails using mail() function. I have 100 email addresses and i set up the script to send 1 email every 10 seconds. So, it will take 1000 seconds to send all 100 emails. My question is: If I stop the script after,let's say 12 seconds, it will send only 1 email

[PHP] mail() function

2005-02-09 Thread Bosky, Dave
I can't seem to get the mail function to work. Is there a way to authenticate before sending mail, I believe this is my issue. Also in my php.ini file the parameter sendmail_path is empty. Is this a required parameter for sending mail? I'm using Windows/IIS. Thanks, Dave HTC

Re: [PHP] mail() function

2005-02-09 Thread John Holmes
Bosky, Dave wrote: I can't seem to get the mail function to work. Is there a way to authenticate before sending mail, I believe this is my issue. No. Manuel will be along soon to tell you to look at the SMTP classes on phpclasses.org, though. ;) There are classes there that do this, so try them.

Re: [PHP] mail() function

2005-02-09 Thread Manuel Lemos
, though. ;) There are classes there that do this, so try them. Thank you for the introduction, John. ;-) Dave, as John mentioned the PHP mail() function does not know how to authenticate. You may want to try this class that comes with a wrapper function named smtp_mail(). It works like the mail

Re: [PHP] mail() function on linux

2005-01-18 Thread Richard Lynch
Nicolae Serban wrote: I have this code to send an e-mail !!! $ok=mail($dest, $subject, $mesaj, From: $expe\r\n .Reply-To: $expe\r\n .X-Mailer: PHP/ . phpversion()); It works on windows, i must change something to work on linux No, but the

[PHP] mail() function on linux

2005-01-17 Thread Nicolae Serban
I have this code to send an e-mail !!! $ok=mail($dest, $subject, $mesaj, From: $expe\r\n .Reply-To: $expe\r\n .X-Mailer: PHP/ . phpversion()); It works on windows, i must change something to work on linux Thanks -- PHP General Mailing List

[PHP] mail function and qmail

2004-09-26 Thread php mysql
mail function in php requires to use 'sendmail'. But I have only 'qmail' on the box. How I can send email in PHP? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() function problem

2004-09-02 Thread Dre
I'm developing uner Windows at home .. but I'm pretty sure that my host is running Unix or Unix like systems on their machines Pahlevanzadeh Mohsen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Please install a mailserver until your SMTP server will be up. When your SMTP server is

[PHP] mail() function problem

2004-09-01 Thread Dre
Hi I was trying to use the mail() function, but it did not work, maybe because of some settings problem or something that I can't figure out I went online and tried to execute the following //=== ?php $from = $_POST['from']; $subject

[PHP] mail() function problem

2004-09-01 Thread Dre
Hi I was trying to use the mail() function, but it did not work, maybe because of some settings problem or something that I can't figure out I went online and tried to execute the following //=== ?php $from = $_POST['from']; $subject

Re: [PHP] mail() function problem

2004-09-01 Thread Pahlevanzadeh Mohsen
Please install a mailserver until your SMTP server will be up. When your SMTP server is down,mail func doesn't work. My suggesstion: Please work under UNIX systems. Yours,Mohsen --- Dre [EMAIL PROTECTED] wrote: Hi I was trying to use the mail() function, but it did not work, maybe because of

Re: [PHP] mail() function problem

2004-09-01 Thread James Kaufman
On Wed, Sep 01, 2004 at 06:09:04PM +0300, Dre wrote: Hi I was trying to use the mail() function, but it did not work, maybe because of some settings problem or something that I can't figure out I went online and tried to execute the following

[PHP] MAIL function sends as anonymouse@mydomain.com instead of what I specify in php.ini?

2004-08-09 Thread BOOT
I am sure that this is a problem with my MTA configuration not PHP itself, but any help would be appreciated. PHP is set to use sendmail (although I understand that my server may be using qmail and not really sendmail?) It seems that whatever SMPT settings I place in php.ini ignores. (SMTP

Re: [PHP] MAIL function sends as anonymouse@mydomain.com instead of what I specify in php.ini?

2004-08-09 Thread Robby Russell
On Mon, 2004-08-09 at 08:56, BOOT wrote: I am sure that this is a problem with my MTA configuration not PHP itself, but any help would be appreciated. PHP is set to use sendmail (although I understand that my server may be using qmail and not really sendmail?) It seems that whatever SMPT

Re: [PHP] MAIL function sends as anonymouse@mydomain.com instead of what I specify in php.ini?

2004-08-09 Thread Jason Wong
On Monday 09 August 2004 23:56, BOOT wrote: I am sure that this is a problem with my MTA configuration not PHP itself, but any help would be appreciated. PHP is set to use sendmail (although I understand that my server may be using qmail and not really sendmail?) Makes no practical

[PHP] mail() function not working

2004-07-31 Thread Robin Wilson
Hi I am not a php programmer but have installed a php based blog. When the php script tries to use the mail() function it fails. Does the mail function rely on the sendmail server? Is there a way to make the mail() function just send via an external smtp server? Thanks in advance Robin ---

<    1   2   3   4   5   >