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

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
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). from=www-d...@homemade, size=523, nrcpt=1 (queue active) Oct 24 12:49:40 homemade postfix/error[7530]: B80B7A70109: to=x...@gmail.com, relay=none, delay=0.04, delays=0.03/0/0/0.01

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

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
-technologies.org wrote: 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

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;

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

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

Re: [PHP] php mail() function

2009-10-23 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-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 use

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 James Prentice
@gmail.com wrote: 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

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

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 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 11:40:34PM -0500, Shawn McKenzie wrote: snip 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

[PHP] Mail Command Body Issue - Trying to use 'do while' loop

2009-09-12 Thread c...@hosting4days.com
I'm having a problem with mail body issue trying to use 'do while' loop in the $mail_body var. this line: do { echo $row_get1['name'] } while ($row_get1 = mysql_fetch_assoc ($get1)) will show ok when it's on the page elsewhere (not in the $mail_body var) but typed like: --- ok on web

Re: [PHP] Mail Command Body Issue - Trying to use 'do while' loop

2009-09-12 Thread c...@hosting4days.com
On Sep 12, 2009, at 3:47 PM, c...@hosting4days.com wrote: I'm having a problem with mail body issue trying to use 'do while' loop in the $mail_body var. this line: do { echo $row_get1['name'] } while ($row_get1 = mysql_fetch_assoc ($get1)) will show ok when it's on the page elsewhere

Re: [PHP] mail attachment

2009-09-06 Thread Paul M Foster
On Sat, Sep 05, 2009 at 06:52:53PM +0200, Grega Leskov??ek wrote: How do I attach a file in mail function or do I have to use PEAR (and if how ...). What are the advantages of PEAR? When do You suggest to use PEAR? You *can* attach something to an email using the mail() function, but the

[PHP] mail attachment

2009-09-05 Thread Grega Leskovšek
How do I attach a file in mail function or do I have to use PEAR (and if how ...). What are the advantages of PEAR? When do You suggest to use PEAR? Thanks in advance, -- Peace refuge: http://users.skavt.net/~gleskovs/ When the sun rises I receive and when it sets I forgive;) Grega Leskovšek

Re: [PHP] mail attachment

2009-09-05 Thread Bastien Koert
RTFM Bastien On Saturday, September 5, 2009, Grega Leskovšek legr...@gmail.com wrote: How do I attach a file in mail function or do I have to use PEAR (and if how ...). What are the advantages of PEAR? When do You suggest to use PEAR? Thanks in advance, -- Peace refuge:

[PHP] mail and mysql confirmation of that [double-opt in]

2009-06-29 Thread Grega Leskovsek
how is the best way to check if email address is valid: is this preg_match() OK? preg_match('/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/', $email); How can I make double opt-in mail system? My idea: 1.) I remember the email entered and user data and the sha1($email);

Re: [PHP] mail and mysql confirmation of that [double-opt in]

2009-06-29 Thread tedd
At 4:55 PM +0200 6/29/09, Grega Leskovsek wrote: how is the best way to check if email address is valid: is this preg_match() OK? preg_match('/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/', $email); How can I make double opt-in mail system? My idea: 1.) I remember

Re: [PHP] mail and mysql confirmation of that [double-opt in]

2009-06-29 Thread Shawn McKenzie
Grega Leskovsek wrote: how is the best way to check if email address is valid: is this preg_match() OK? preg_match('/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/', $email); filter_var($email, FILTER_VALIDATE_EMAIL) How can I make double opt-in mail system? My

RE: [PHP] PHP Mail Function

2009-06-21 Thread Ashley Sheridan
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] Sent: Saturday, June 20, 2009 1:59 PM To: php-general@lists.php.net Subject: [PHP] PHP Mail Function Hello Everyone

[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

RE: [PHP] PHP Mail Function

2009-06-20 Thread David Swenson
, 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-mail to my domain that forwards

RE: [PHP] Mail function and hotmail

2009-06-11 Thread Fernando G
appreciated. Thank you, 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 Richard was likely suggestion his mail

RE: [PHP] Mail function and hotmail

2009-06-11 Thread Fernando G
...@hotmail.com To: sudhee...@binaryvibes.co.in; phps...@gmail.com CC: rich...@php.net; php-general@lists.php.net Date: Thu, 11 Jun 2009 10:34:13 -0400 Subject: RE: [PHP] Mail function and hotmail Hello, Thank you all for your cooperation yesterday. I tried PEAR Mail_mime as follows

[PHP] Mail function and hotmail

2009-06-10 Thread Fernando G
Hello, I am sending an html message with and embedded image using the following code: // Read message from html template $message = fread(template.html, filesize(template.html)); // I replace the values in $message that are necessary to // fill the tempalte ... // Generate a boundary string

Re: [PHP] Mail function and hotmail

2009-06-10 Thread Ashley Sheridan
On Wed, 2009-06-10 at 12:59 -0400, Fernando G wrote: Hello, I am sending an html message with and embedded image using the following code: // Read message from html template $message = fread(template.html, filesize(template.html)); // I replace the values in $message that are necessary

Re: [PHP] Mail function and hotmail

2009-06-10 Thread Richard Heyes
Hi, ... Use something that is already proven to work. It will save you an awful lot of time. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org

RE: [PHP] Mail function and hotmail

2009-06-10 Thread Fernando G
I have not idea of what else to use. Your suggestions are appreciated. Fernando. Date: Wed, 10 Jun 2009 18:04:31 +0100 From: rich...@php.net To: jfer...@hotmail.com CC: php-general@lists.php.net Subject: Re: [PHP] Mail function and hotmail Hi, ... Use something that is already

Re: [PHP] Mail function and hotmail

2009-06-10 Thread Bastien Koert
] Mail function and hotmail Hi, ... Use something that is already proven to work. It will save you an awful lot of time. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP

Re: [PHP] Mail function and hotmail

2009-06-10 Thread Richard Heyes
Hi, pear's mime mail I believe I had a hand in that too. It's like a bad rash - it gets everywhere... :-) -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate

RE: [PHP] Mail function and hotmail

2009-06-10 Thread Fernando G
Thanks. I'll check that out. Date: Wed, 10 Jun 2009 18:24:45 +0100 Subject: Re: [PHP] Mail function and hotmail From: rich...@php.net To: phps...@gmail.com CC: jfer...@hotmail.com; php-general@lists.php.net Hi, pear's mime mail I believe I had a hand in that too. It's like a bad

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

Re: [PHP] mail body not decoded by base64_decode

2009-06-02 Thread Manuel Lemos
Hello, on 05/29/2009 12:15 AM vuthecuong said the following: Hi all I'm using below function to send Japanese mail, mail clients such as outlook etc displayed Japanese text withou problems but if I viewed JP mail via web-based mail such as Gmail, the JP subject is normally displayed, however

[PHP] mail body not decoded by base64_decode

2009-05-28 Thread vuthecuong
Hi all I'm using below function to send Japanese mail, mail clients such as outlook etc displayed Japanese text withou problems but if I viewed JP mail via web-based mail such as Gmail, the JP subject is normally displayed, however the JP body still base64 encoded strings, it still was not

Re: [PHP] Mail subject encoding breaks

2009-05-12 Thread Tom Worster
On 5/11/09 11:58 AM, Thodoris t...@kinetix.gr wrote: On 11 May 2009 at 18:25, Thodoris wrote: Hi gang, I am using phpmailer to send some mail notifications in an intranet I've made. This is a sample code: $e-Subject = This is δφκξγκδφη garbidge κηδφκξγσ; Hi,

[PHP] Mail subject encoding breaks

2009-05-11 Thread Thodoris
Hi gang, I am using phpmailer to send some mail notifications in an intranet I've made. This is a sample code: ?php // Include PHP Mailer require 'class/class.phpmailer.php'; // Instantiate the mailer $e = new phpmailer(); $e-From = aco...@host.gr; $e-FromName = Test; $e-Mailer = mail;

Re: [PHP] Mail subject encoding breaks

2009-05-11 Thread Ian
On 11 May 2009 at 18:25, Thodoris wrote: Hi gang, I am using phpmailer to send some mail notifications in an intranet I've made. This is a sample code: $e-Subject = This is δφκξγκδφη garbidge κηδφκξγσ; Hi, I have had success with this in the past: $subject= This is δφκξγκδφη

Re: [PHP] Mail subject encoding breaks

2009-05-11 Thread Thodoris
On 11 May 2009 at 18:25, Thodoris wrote: Hi gang, I am using phpmailer to send some mail notifications in an intranet I've made. This is a sample code: $e-Subject = This is δφκξγκδφη garbidge κηδφκξγσ; Hi, I have had success with this in the past: $subject=

Re: [PHP] MAIL Error

2009-04-24 Thread Jan G.B.
2009/4/22 Daniel Brown danbr...@php.net: On Wed, Apr 22, 2009 at 12:31, Jan G.B. ro0ot.w...@googlemail.com wrote: I believe that you all should just overread the huge signature. You've wasted a lot bandwidth with this discussion about the signature. :-) It's not interesting. You could have

Re: [PHP] MAIL Error

2009-04-24 Thread Jan G.B.
2009/4/22 tedd tedd.sperl...@gmail.com: At 6:31 PM +0200 4/22/09, Jan G.B. wrote: I believe that you all should just overread the huge signature. You've wasted a lot bandwidth with this discussion about the signature. :-) It's not interesting. You could have send your pointless replies to

Re: [PHP] MAIL Error

2009-04-24 Thread tedd
At 11:13 AM +0200 4/24/09, Jan G.B. wrote: 2009/4/22 tedd tedd.sperl...@gmail.com: Your opinion as to IF I should say something, or not, carries little weight. When you've donated enough time helping others on this list, then perhaps that will change. Sorry, but that's a bad attitude in

Re: [PHP] MAIL Error

2009-04-24 Thread Bastien Koert
On Fri, Apr 24, 2009 at 10:03 AM, tedd tedd.sperl...@gmail.com wrote: At 11:13 AM +0200 4/24/09, Jan G.B. wrote: 2009/4/22 tedd tedd.sperl...@gmail.com: Your opinion as to IF I should say something, or not, carries little weight. When you've donated enough time helping others on this

Re: [PHP] MAIL Error

2009-04-24 Thread Jan G.B.
2009/4/24 Bastien Koert phps...@gmail.com: On Fri, Apr 24, 2009 at 10:03 AM, tedd tedd.sperl...@gmail.com wrote: Whereas, your opinion doesn't matter much because you haven't contributed anything I can remember Tedd, it's not my problem that your sight is limited. I don't believe the

RE: [PHP] MAIL Error

2009-04-22 Thread tedd
At 10:45 AM +0530 4/22/09, ramesh.marimu...@wipro.com wrote: Yeah its all garbage. But its from the company. I don't know how to trim it. Can anyone suggest? First, tell your company that they are making a fool of themselves on the net and do they want to continue the practice? After all,

Re: [PHP] MAIL Error

2009-04-22 Thread Jan G.B.
I believe that you all should just overread the huge signature. You've wasted a lot bandwidth with this discussion about the signature. :-) It's not interesting. You could have send your pointless replies to the person, skipping the mailing list, so that we aren't annoyed by your drivel which is

Re: [PHP] MAIL Error

2009-04-22 Thread Daniel Brown
On Wed, Apr 22, 2009 at 12:31, Jan G.B. ro0ot.w...@googlemail.com wrote: I believe that you all should just overread the huge signature. You've wasted a lot bandwidth with this discussion about the signature. :-) It's not interesting. You could have send your pointless replies to the person,

Re: [PHP] MAIL Error

2009-04-22 Thread tedd
At 6:31 PM +0200 4/22/09, Jan G.B. wrote: I believe that you all should just overread the huge signature. You've wasted a lot bandwidth with this discussion about the signature. :-) It's not interesting. You could have send your pointless replies to the person, skipping the mailing list, so that

[PHP] MAIL Error

2009-04-21 Thread ramesh.marimuthu
Hi All, While using $m=new MAIL; I get an error Fatal error: Class 'MAIL' not found in Can anyone help on this? regards, -ramesh P Save a tree...please don't print this e-mail unless you really need to Please do not print this email unless it is absolutely necessary. The information

RE: [PHP] MAIL Error

2009-04-21 Thread Warren Vail
Isn't mail a function and not a class? Warren -Original Message- From: ramesh.marimu...@wipro.com [mailto:ramesh.marimu...@wipro.com] Sent: Tuesday, April 21, 2009 12:29 AM To: php-general@lists.php.net Subject: [PHP] MAIL Error Hi All, While using $m=new MAIL; I get

Re: RE: [PHP] MAIL Error

2009-04-21 Thread zhoo
you don't include the mail class? or the include path is incorrect . 2009-04-21 zhoo 发件人: Warren Vail 发送时间: 2009-04-21 15:41:25 收件人: ramesh.marimu...@wipro.com; php-general@lists.php.net 抄送: 主题: RE: [PHP] MAIL Error Isn't mail a function and not a class? Warren -Original

Re: [PHP] MAIL Error

2009-04-21 Thread Daniel Brown
On Tue, Apr 21, 2009 at 03:28, ramesh.marimu...@wipro.com wrote: Hi All, While using $m=new MAIL; I get an error Fatal error: Class 'MAIL' not found in Can anyone help on this? Maybe if you provided the relevant code and not just a single variable instantiation. Also, per the

Re: [PHP] MAIL Error

2009-04-21 Thread tedd
At 12:58 PM +0530 4/21/09, ramesh.marimu...@wipro.com wrote: P Save a tree...please don't print this e-mail unless you really need to Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are

RE: [PHP] MAIL Error

2009-04-21 Thread ramesh.marimuthu
: [PHP] MAIL Error At 12:58 PM +0530 4/21/09, ramesh.marimu...@wipro.com wrote: P Save a tree...please don't print this e-mail unless you really need to Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments

Re: [PHP] MAIL Error

2009-04-21 Thread kranthi
seems u r company mail server is adding this to all outgoing mails. if that is the case only option is to change configuration settings in the mail server. you can ask the anchorites to do that (i m not optimistic bout that, though). dont use this mail server to send mails to mailing lists

RE: [PHP] MAIL Error

2009-04-21 Thread ramesh.marimuthu
Thanks kranthi -Original Message- From: kranthi [mailto:kranthi...@gmail.com] Sent: Wednesday, April 22, 2009 11:02 AM To: Ramesh Marimuthu (WT01 - Telecom Equipment) Cc: tedd.sperl...@gmail.com; php-general@lists.php.net Subject: Re: [PHP] MAIL Error seems u r company mail server

[PHP] mail() is duplicating

2009-03-13 Thread Rick Pasotto
I have several forms on my site that use the same sequence of events: The first script displays and validates the form data, the second reformats and asks for confirmation or editing, and the third script sends the data in an email to the relevent people. Two of these forms work exactly as

Re: [PHP] Mail subject encoding problem

2009-01-31 Thread Manuel Lemos
Hello, on 01/30/2009 11:43 AM Thodoris said the following: Yes I know that this is not reasonable but using UTF-8 fails. And this seems to work in some cases. I am thinking that this has to do with PHP's internal encoding or something with the OS. I am not sure why that works this way that's

[PHP] Mail subject encoding problem

2009-01-30 Thread Thodoris
.; // $subject = mb_encode_mimeheader($subject,'iso-8859-1','B'); // Set the headers and send the e-mail $headers = 'MIME-Version: 1.0' . \r\n; $headers .= 'Content-type: text/html; charset=utf-8' . \r\n; $headers .= From: t...@foo.com\r\nreply-to: t...@foo.com\r\nx-mailer: PHP; mail($email

Re: [PHP] Mail subject encoding problem

2009-01-30 Thread Per Jessen
Thodoris wrote: I am having a FreeBSD web server for development that is working like a charm when sending mail using something like this: // Define the e-mail content $email = f...@foo,com; $subject = H εργασία: (id: 1868) έκλεισε χωρίς σχόλια.; $message = Αυτό είναι ένα τέστ. Αυτό είναι

Re: [PHP] Mail subject encoding problem

2009-01-30 Thread Thodoris
Thodoris wrote: I am having a FreeBSD web server for development that is working like a charm when sending mail using something like this: // Define the e-mail content $email = f...@foo,com; $subject = H εργασία: (id: 1868) έκλεισε χωρίς σχόλια.; $message = Αυτό είναι ένα τέστ. Αυτό είναι

Re: [PHP] Mail subject encoding problem

2009-01-30 Thread Per Jessen
Thodoris wrote: But for some reason you've specified ISO-8859-1 instead of UTF-8? /Per Jessen, Zürich Yes I know that this is not reasonable but using UTF-8 fails. Fails _how_? Put up the resulting email somewhere for us to see. (the raw email text). If your source files are UTF-8,

[PHP] Mail server that doesn't actually get installed

2008-12-24 Thread Michael S. Dunsavage
I downloaded server2go, and actually got it to work pretty well. However some of my forms send emails, and this project I'm working on is for a friend of mine, and I don't want to make him set up a mail server on his laptop. So is there anything like server2go for mailservers for windows that I

[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

[PHP] mail() and exim4

2008-08-19 Thread Chris Haensel
Good day list, I am having some problems with our new server. exim4 is installed, and I am trying to send a mail via the mail() function. Script: ? ini_set (error_reporting,E_ALL); echo ini_get(error_reporting).p; if(mail([EMAIL PROTECTED],test,ding)) { echo Ja; } else { echo

Re: [PHP] mail() and exim4

2008-08-19 Thread Per Jessen
Nein; } ? Exim is a Mail Transfer Agent. It is normally called by Mail User Agents, not directly from a shell command line. The command line 'sendmail' or 'mail' is also an MUA, as is the PHP mail() function. I don't know anything about exim, but check that you've got 'sendmail' installed

Re: [PHP] mail() and exim4

2008-08-19 Thread Jochem Maas
; } else { echo Nein; } ? Exim is a Mail Transfer Agent. It is normally called by Mail User Agents, not directly from a shell command line. The command line 'sendmail' or 'mail' is also an MUA, as is the PHP mail() function. exim should come with a sendmail compatible wrapper script ... which

[PHP] mail script not working

2008-08-04 Thread Richard Kurth
I have been trying to get this mail script to send an html message and it just sends the html in plain text with all the html code showing. Could somebody tell my way this will not work. When it does send it takes a long time to go through but when I send a plan text message it goes through right

Re: [PHP] mail script not working

2008-08-04 Thread Per Jessen
Richard Kurth wrote: I have been trying to get this mail script to send an html message and it just sends the html in plain text with all the html code showing. Could somebody tell my way this will not work. When it does send it takes a long time to go through but when I send a plan text

[PHP] mail problem (newlines becomes =0A)

2008-06-19 Thread Daniel Brown
Forwarded. Accidentally clicked reply directly to Nitsan. Sorry about that. :-\ On Thu, Jun 19, 2008 at 2:47 AM, Nitsan Bin-Nun [EMAIL PROTECTED] wrote: Umm just for general knowledge, whats the difference between HEREDOC to simple value assignment? As far as i know they both do the

Re: [PHP] mail problem (newlines becomes =0A)

2008-06-19 Thread Jim Lucas
Daniel Brown wrote: Forwarded. Accidentally clicked reply directly to Nitsan. Sorry about that. :-\ On Thu, Jun 19, 2008 at 2:47 AM, Nitsan Bin-Nun [EMAIL PROTECTED] wrote: Umm just for general knowledge, whats the difference between HEREDOC to simple value assignment? As far as i

Re: [PHP] mail problem (newlines becomes =0A)

2008-06-19 Thread Jim Lucas
Daniel Brown wrote: Forwarded. Accidentally clicked reply directly to Nitsan. Sorry about that. :-\ On Thu, Jun 19, 2008 at 2:47 AM, Nitsan Bin-Nun [EMAIL PROTECTED] wrote: Umm just for general knowledge, whats the difference between HEREDOC to simple value assignment? As far as i

Re: [PHP] mail problem (newlines becomes =0A)

2008-06-19 Thread Daniel Brown
On Thu, Jun 19, 2008 at 12:02 PM, Jim Lucas [EMAIL PROTECTED] wrote: umm If this didn't work, most of my HEREDOC sections would not work. AFAIK I have always been able to use name-keyed arrays in my HEREDOC. I have always wrapped them with {...} to allow PHP to better identify them, but

[PHP] mail problem (newlines becomes =0A)

2008-06-18 Thread debussy007
Hi, When a member register in my site, I send him a mail with activation link. This is the string I send: $mailContent = Thank you for your interest in XYZ !\n\n . In order to activate your account, please click the link below.\n\n . (If the link . I tested on my gmail address,

Re: [PHP] mail problem (newlines becomes =0A)

2008-06-18 Thread Wolf
debussy007 wrote: Hi, When a member register in my site, I send him a mail with activation link. This is the string I send: $mailContent = Thank you for your interest in XYZ !\n\n . In order to activate your account, please click the link below.\n\n . (If the link . I tested

Re: [PHP] mail problem (newlines becomes =0A)

2008-06-18 Thread Daniel Brown
On Wed, Jun 18, 2008 at 7:14 PM, Wolf [EMAIL PROTECTED] wrote: Change it to: $mailContent = Thank you for your interest in XYZ! In order to activate your account, please click the link below. (If the link . ; I've always used this and never had a problem with it. If you want to

[PHP] mail() error handling

2008-06-05 Thread Henrik Johansson
Hi. I have a piece of code that uses mail() to, well, send mail. It works, but not the error handling which is as follows: snip $send = @mail( $to, $subject, $body, $headers ); if($send) {header( Location: http://somewhere/thankyou.html; );} else {print Oops, couldn't deliver the message,

Re: [PHP] mail() error handling

2008-06-05 Thread Stut
On 5 Jun 2008, at 09:48, Henrik Johansson wrote: I have a piece of code that uses mail() to, well, send mail. It works, but not the error handling which is as follows: snip $send = @mail( $to, $subject, $body, $headers ); if($send) {header( Location: http://somewhere/thankyou.html; );} else

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

<    1   2   3   4   5   6   7   8   9   10   >