[PHP] Re: mail() function problem
is that mean that I don't really have to install any mail server or sendmail prgram on my testing server?? Jasper Howard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i use apache on my windows xp machine and have never gotten around to settings up any kind of sendmail program, I'm pretty sure you have to download one or atleast its some extra configuration. -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using an Apache server .. doesn't it come with a sendmail program ?? I really don't know Jasper Howard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] do you have a sendmail program on your testing server? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 = $_POST['subject']; $content = $_POST['content']; $to = [EMAIL PROTECTED]; $headers = From:.$from; if(mail($to, $subject, $content, From: $from)) { echosent; } else{ echo not sent; } ? //=== the variable values sent from a Form in another and they are sent correctly but I keep having this error //=== Warning: mail(): Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line 194 //=== my php.ini settings for the mail function are //= [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 sendmail_from = [EMAIL PROTECTED] //= thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: mail() function problem
Thank you Lone , I will try it out Lone Wolf [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] What you need to do is set your SMTP server inside the php.ini file... [mail function] SMTP = smtp.server.com ; for win32 only sendmail_from = [EMAIL PROTECTED] ; for win32 only ;sendmail_path = ;for unix only, may supply arguments as well ; (default is sendmail -t) The test string I used to make sure my example worked: ?php print mail ('[EMAIL PROTECTED]', 'No need for reply -- PHP test!', /* subject */ hi JohnnLine 2n);/* body*/ ? Robert -Original Message- From: Dre [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 6:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: mail() function problem Sorry .. but I'm really so new at this I'm using Apache Server on a MS Windows XP Pro. OS, and I'm trying to send a mail through a form .. what do I need to install or configure to be able to do this. thanks in advance Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using an Apache server .. doesn't it come with a sendmail program ?? I really don't know Jasper Howard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] do you have a sendmail program on your testing server? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 = $_POST['subject']; $content = $_POST['content']; $to = [EMAIL PROTECTED]; $headers = From:.$from; if(mail($to, $subject, $content, From: $from)) { echosent; } else{ echo not sent; } ? //=== the variable values sent from a Form in another and they are sent correctly but I keep having this error //=== Warning: mail(): Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line 194 //=== my php.ini settings for the mail function are //= [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 sendmail_from = [EMAIL PROTECTED] //= thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mail() function problem
do you have a sendmail program on your testing server? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 = $_POST['subject']; $content = $_POST['content']; $to = [EMAIL PROTECTED]; $headers = From:.$from; if(mail($to, $subject, $content, From: $from)) { echosent; } else{ echo not sent; } ? //=== the variable values sent from a Form in another and they are sent correctly but I keep having this error //=== Warning: mail(): Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line 194 //=== my php.ini settings for the mail function are //= [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 sendmail_from = [EMAIL PROTECTED] //= thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mail() function problem
I'm using an Apache server .. doesn't it come with a sendmail program ?? I really don't know Jasper Howard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] do you have a sendmail program on your testing server? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 = $_POST['subject']; $content = $_POST['content']; $to = [EMAIL PROTECTED]; $headers = From:.$from; if(mail($to, $subject, $content, From: $from)) { echosent; } else{ echo not sent; } ? //=== the variable values sent from a Form in another and they are sent correctly but I keep having this error //=== Warning: mail(): Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line 194 //=== my php.ini settings for the mail function are //= [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 sendmail_from = [EMAIL PROTECTED] //= thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mail() function problem
Sorry .. but I'm really so new at this I'm using Apache Server on a MS Windows XP Pro. OS, and I'm trying to send a mail through a form .. what do I need to install or configure to be able to do this. thanks in advance Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using an Apache server .. doesn't it come with a sendmail program ?? I really don't know Jasper Howard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] do you have a sendmail program on your testing server? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 = $_POST['subject']; $content = $_POST['content']; $to = [EMAIL PROTECTED]; $headers = From:.$from; if(mail($to, $subject, $content, From: $from)) { echosent; } else{ echo not sent; } ? //=== the variable values sent from a Form in another and they are sent correctly but I keep having this error //=== Warning: mail(): Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line 194 //=== my php.ini settings for the mail function are //= [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 sendmail_from = [EMAIL PROTECTED] //= thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mail() function problem
i use apache on my windows xp machine and have never gotten around to settings up any kind of sendmail program, I'm pretty sure you have to download one or atleast its some extra configuration. -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using an Apache server .. doesn't it come with a sendmail program ?? I really don't know Jasper Howard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] do you have a sendmail program on your testing server? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 = $_POST['subject']; $content = $_POST['content']; $to = [EMAIL PROTECTED]; $headers = From:.$from; if(mail($to, $subject, $content, From: $from)) { echosent; } else{ echo not sent; } ? //=== the variable values sent from a Form in another and they are sent correctly but I keep having this error //=== Warning: mail(): Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line 194 //=== my php.ini settings for the mail function are //= [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 sendmail_from = [EMAIL PROTECTED] //= thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: mail() function problem
Please switch to a UNIX box.For example Fedora. Because it has everythings that you need. --- Dre [EMAIL PROTECTED] wrote: I'm using an Apache server .. doesn't it come with a sendmail program ?? I really don't know Jasper Howard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] do you have a sendmail program on your testing server? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 = $_POST['subject']; $content = $_POST['content']; $to = [EMAIL PROTECTED]; $headers = From:.$from; if(mail($to, $subject, $content, From: $from)) { echosent; } else{ echo not sent; } ? //=== the variable values sent from a Form in another and they are sent correctly but I keep having this error //=== Warning: mail(): Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line 194 //=== my php.ini settings for the mail function are //= [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 sendmail_from = [EMAIL PROTECTED] //= thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php = -DIGITAL SIGNATURE--- ///Mohsen Pahlevanzadeh Network administrator programmer My home phone is: +98213810146 My email address is m_pahlevanzadeh at yahoo dot com My website is: http://webnegar.net __ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: mail() function problem
If you use Windows as your server,You must install M$Exchange server.It is a mailserver under Windows. Of course,If you want to install Linux,I can help u. It has benefit for u. Even i made a group on yahoo phplovers. You can join to my group will get help. It has 56 members. My email address is m_pahlevanzadeh at yahoo dot com If you have a question on Linux,I can help u. But it is your chioce...Linux or Windows. When you develop under windows,You must upload it to an UNIX box.May be you will have problem. Please start with Linux as your OS. Yours,Mohsen --- Dre [EMAIL PROTECTED] wrote: Sorry .. but I'm really so new at this I'm using Apache Server on a MS Windows XP Pro. OS, and I'm trying to send a mail through a form .. what do I need to install or configure to be able to do this. thanks in advance Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using an Apache server .. doesn't it come with a sendmail program ?? I really don't know Jasper Howard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] do you have a sendmail program on your testing server? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 = $_POST['subject']; $content = $_POST['content']; $to = [EMAIL PROTECTED]; $headers = From:.$from; if(mail($to, $subject, $content, From: $from)) { echosent; } else{ echo not sent; } ? //=== the variable values sent from a Form in another and they are sent correctly but I keep having this error //=== Warning: mail(): Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line 194 //=== my php.ini settings for the mail function are //= [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 sendmail_from = [EMAIL PROTECTED] //= thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php = -DIGITAL SIGNATURE--- ///Mohsen Pahlevanzadeh Network administrator programmer My home phone is: +98213810146 My email address is m_pahlevanzadeh at yahoo dot com My website is: http://webnegar.net __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: mail() function problem
What you need to do is set your SMTP server inside the php.ini file... [mail function] SMTP = smtp.server.com ; for win32 only sendmail_from = [EMAIL PROTECTED] ; for win32 only ;sendmail_path = ;for unix only, may supply arguments as well ; (default is sendmail -t) The test string I used to make sure my example worked: ?php print mail ('[EMAIL PROTECTED]', 'No need for reply -- PHP test!', /* subject */ hi JohnnLine 2n);/* body*/ ? Robert -Original Message- From: Dre [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 6:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: mail() function problem Sorry .. but I'm really so new at this I'm using Apache Server on a MS Windows XP Pro. OS, and I'm trying to send a mail through a form .. what do I need to install or configure to be able to do this. thanks in advance Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using an Apache server .. doesn't it come with a sendmail program ?? I really don't know Jasper Howard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] do you have a sendmail program on your testing server? -- -- Jasper Howard :: Database Administration Velocity7 1.530.470.9292 http://www.Velocity7.com/ -- Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 = $_POST['subject']; $content = $_POST['content']; $to = [EMAIL PROTECTED]; $headers = From:.$from; if(mail($to, $subject, $content, From: $from)) { echosent; } else{ echo not sent; } ? //=== the variable values sent from a Form in another and they are sent correctly but I keep having this error //=== Warning: mail(): Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\Program Files\Apache Group\Apache2\htdocs\mysite/myfile.php on line 194 //=== my php.ini settings for the mail function are //= [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 sendmail_from = [EMAIL PROTECTED] //= thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Mail function problem
Rolf Berkenbosch wrote: Hi All, I have a big problem with the mail function in PHP. I have installed PHP 4.3.3. But no email where send With the mail function. If I run this script as root. There Is no problem.. What do I need to change?? Thanks, Rolf hm I think the webserver or the user who is running the PHP Script has no access/execute rights for the Mailserver.. Greetings, Veers and sry for my bad english... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Mail function problem
Hello, On 01/10/2004 11:36 AM, Rolf Berkenbosch wrote: I have a big problem with the mail function in PHP. I have installed PHP 4.3.3. But no email where send With the mail function. If I run this script as root. There Is no problem.. What do I need to change?? Which platform as you using, Windows ou Linux/Unix? Did you configure PHP to send messages properly? -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Mail() function problem
Hi friend, I am using the SMTP server which needs authentication. And where did you put the username/password in that will authenticate PHP?... :-) I dunno where you have to put it, and maybe you just can't do that, but you can't expect PHP to just magically know your password... -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php