Re: [PHP] Sending mail from localhost

2009-05-30 Thread Ashley Sheridan
On Sat, 2009-05-30 at 15:01 +0530, Sumit Sharma wrote: > I have already un-commented the smtp settings as > > SMTP = localhost > smtp_port = 25 > > do I need to change any other settings. > > Sumit > > > > On Sat, May 30, 2009 at 3:06 PM, Ashley Sheridan > wrote: > On Sat, 2009-05-3

Re: [PHP] Sending mail from localhost

2009-05-30 Thread Ashley Sheridan
On Sat, 2009-05-30 at 14:41 +0530, Sumit Sharma wrote: > Hi, > > I am new to php and not able to send mail from localhost. when trying to do > so getting following response: > > > *Warning*: mail() [function.mail ]: Failed > to connect to mailserver at "localhost"

[PHP] Sending mail from localhost

2009-05-30 Thread Sumit Sharma
Hi, I am new to php and not able to send mail from localhost. when trying to do so getting following response: *Warning*: mail() [function.mail ]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use

Re: [PHP] sending mail from localhost

2007-06-13 Thread Daniel Brown
On 6/13/07, Richard Lynch <[EMAIL PROTECTED]> wrote: Intent inschment. Sorry I didn't get this message sooner, but Gmail's spam filter blocked the message for apparently using "fake filler text" or something. Luckily, however, it didn't interrupt my daily flow of "w4ys 2 rnake rny P3N|$ b1g

Re: [PHP] sending mail from localhost

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 2:07 pm, Daniel Brown wrote: > As for the SPAM filter stuff, all of the rest makes sense, but the > Reply-to: header actually goes against the original spirit and > intention of the design. Refer to RFC 822 Part 4 Section 1 --- the > reply-to header is intended for use as

Re: [PHP] sending mail from localhost

2007-06-13 Thread Daniel Brown
On 6/13/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, June 13, 2007 1:09 pm, Daniel Brown wrote: > Is that a fact, Richard? It was always my understanding that the > raw connection to the SMTP server initiated by the PHP mail() > functions and Sendmail required the \r\n separator for

Re: [PHP] sending mail from localhost

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 1:09 pm, Daniel Brown wrote: > Is that a fact, Richard? It was always my understanding that the > raw connection to the SMTP server initiated by the PHP mail() > functions and Sendmail required the \r\n separator for every field > other than SUBJECT (included in the DATA

Re: [PHP] sending mail from localhost

2007-06-13 Thread Daniel Brown
On 6/13/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, June 13, 2007 8:51 am, Daniel Brown wrote: > $from = "[EMAIL PROTECTED]"; > //$reply_to = "[EMAIL PROTECTED]"; // Same address, so not needed. Some spam filters and some email clients will behave rather badly if you don't have Reply-to

Re: [PHP] sending mail from localhost

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 8:51 am, Daniel Brown wrote: > $from = "[EMAIL PROTECTED]"; > //$reply_to = "[EMAIL PROTECTED]"; // Same address, so not needed. Some spam filters and some email clients will behave rather badly if you don't have Reply-to: as well. Use it. > $headers .= "X-Mailer: PHP".phpv

Re: [PHP] sending mail from localhost

2007-06-13 Thread Daniel Brown
On 6/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Wed, 2007-06-13 at 09:51 -0400, Daniel Brown wrote: > > It's also not necessary to combine single and double quotes with > join marks (.'s) as you have it. While this isn't the problem, and > Stut is absolutely correct, your code woul

Re: [PHP] sending mail from localhost

2007-06-13 Thread Robert Cummings
On Wed, 2007-06-13 at 09:51 -0400, Daniel Brown wrote: > > It's also not necessary to combine single and double quotes with > join marks (.'s) as you have it. While this isn't the problem, and > Stut is absolutely correct, your code would look cleaner if you did it > as follows: > > $to = "[

Re: [PHP] sending mail from localhost

2007-06-13 Thread Daniel Brown
On 6/13/07, Stut <[EMAIL PROTECTED]> wrote: Ross wrote: > ; For Win32 only. > sendmail_from = mail.blue-fly.co.uk This should be an email address not just a domain. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php It's also not

Re: [PHP] sending mail from localhost

2007-06-13 Thread Stut
Ross wrote: ; For Win32 only. sendmail_from = mail.blue-fly.co.uk This should be an email address not just a domain. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sending mail from localhost

2007-06-13 Thread Ross
I usually use a phpmailer class but am creating something from scratch. when I use the most basic example I can find: $to = '[EMAIL PROTECTED]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [EMAIL PROTECTED]' . "\r\n" . 'Reply-To: [EMAIL PROTECTED]' . "\r\n" . 'X-M