View previous topic :: View next topic |
Author |
Message |
wally007 -
Joined: 13 Jan 2004 Posts: 17
|
Posted: Sun Jun 11, 2006 9:14 pm Post subject: Web form issues , cant figure it out |
|
|
hey. I've been using abyss ever since i started hosting web sites and i've never been stuck as much as i'm now. ( my experience level = ok html/css , never done any php coding )
My php script called form2mail just doesnt seem to work. it is php script (i found on hotscripts.com) , edited the way its suppoused to be ( ie field names matching html form field names , email addy where to send results to ect ) and it is in root folder. my form is dreamweaver8 made , very simple ( name,email message).
When i try it on my server , script seems to work as i see in Windows task manager php-cgi.exe executed , and page gets redirected to site where i indicated in form2mail.php file.
Also after clicking SUBMIT i see php-cgi.exe is trying to use port 25 and i ALLOW it on my firewall. ( i also tried to with firewall disabled , just in case ). But i NEVER get any email.
php5 is WORKING good. I have mp3 lister php script working and also stand alone coppermine gallery working good as well. what could be wrong ?
by the way , i DONT have email client set up on this Windows XP SP2. i'm using web based yahoo account.
Sorry for long post , and thanks in advance. i'm sure i'm missing something simple yet crucial. |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Jun 12, 2006 2:46 pm Post subject: Re: Web form issues , cant figure it out |
|
|
wally007,
Your Yahoo email account is used to receive email. What you need here is to configure your SMTP server (usually the SMTP server of your ISP) in php.ini.
Please read http://www.aprelium.com/forum/viewtopic.php?t=7319 for a similar topic. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
wally007 -
Joined: 13 Jan 2004 Posts: 17
|
Posted: Mon Jun 12, 2006 3:42 pm Post subject: |
|
|
Thanks. After hours and hours of mindless trying yesterday i got this far.
On my Mac , when i configure Mail.app with incomming/outgoing server as well as user name and password for my pop3 accnt form gets submited and i recieve it in my email.
Then on my Windows machine ( that's gonna be server ) after setting up SAME account info in outlook/thunderbird it didnt work. Then i thought about setting up error file for cgi scripts. Of course error that it gave me was exactly the one you suggested. so i looked at php.ini but there's few places where smtp is mentioned ( for win32 platform ). could you please suggest values that should be used ?
Code: |
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
[Date]
; Defines the default timezone used by the date functions
;date.timezone = PST
[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
; runtime, you can define these variables by calling define_syslog_variables().
define_syslog_variables = Off
[mail function]
; For Win32 only.
SMTP = smtp.dslextreme.com
smtp_port = 25
; For Win32 only.
;sendmail_from = mail.dslextreme.com
|
this is the way i edited it. i added values : PST ( timezone) , smtp.dslextreme.com and mail.dslextreme.com.
are those correct ?
thanks |
|
Back to top |
|
|
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Mon Jun 12, 2006 4:03 pm Post subject: |
|
|
You need to uncomment
Code: | ;date.timezone = PST |
and
Code: | ;sendmail_from = mail.dslextreme.com |
(e.g, remove the ";") _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
|
wally007 -
Joined: 13 Jan 2004 Posts: 17
|
Posted: Tue Jun 13, 2006 12:17 am Post subject: |
|
|
The Inquisitor wrote: | You need to uncomment
Code: | ;date.timezone = PST |
and
Code: | ;sendmail_from = mail.dslextreme.com |
(e.g, remove the ";") |
Thanks , but STILL no worky. my php.ini part looks like this ( part that i changed values )
Code: | ;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
[Date]
; Defines the default timezone used by the date functions
date.timezone = PST
[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
; runtime, you can define these variables by calling define_syslog_variables().
define_syslog_variables = Off
[mail function]
; For Win32 only.
SMTP = smtp.dslextreme.com
smtp_port = 25
; For Win32 only.
sendmail_from = mail.dslextreme.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
|
Since on windows machine it doesnt seem to use outlook/thunderbidrs settings , how does php know user name and password ? I didnt see where to enter that info.
Just to be clear smtp.dslextreme.com is my ISPs outgoing server and mail.dslextreme.com is incomming server.
by the way , form seems to work now , it does say mail was sent ( probably meaning script done its job ) and redirects me to page i specified but i still dont get any emails.
darn , if i wasnt stuborn mofo i could have just skipped form part and just use my email from the beginning. But now that i'm knee deep in this i just cant let it go.... |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Tue Jun 13, 2006 2:54 am Post subject: |
|
|
sendmail_from, needs to be an e-mail address, not a web address. |
|
Back to top |
|
|
wally007 -
Joined: 13 Jan 2004 Posts: 17
|
Posted: Tue Jun 13, 2006 3:53 am Post subject: |
|
|
thanks , but i tried that as well. It doesnt work either way , but at least i know now what value it should be now. Oh well , i'm gonna go cry now. |
|
Back to top |
|
|
wally007 -
Joined: 13 Jan 2004 Posts: 17
|
Posted: Tue Jun 13, 2006 5:55 am Post subject: |
|
|
Well thanks guys but it didnt work out without using hacks.
After about spending 30+ hours trying to figure it out , i stumbled across nice little script that emulated Unix's sendmail -t command on windows platform.
My php.ini now looks like this
Code: | ;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
[Date]
; Defines the default timezone used by the date functions
date.timezone = PST
[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
; runtime, you can define these variables by calling define_syslog_variables().
define_syslog_variables = Off
[mail function]
; For Win32 only.
;SMTP = smtp.dslextreme.com
smtp_port = 25
; For Win32 only.
;sendmail_from = wally007@dslextreme.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/lib/sendmail -t |
This script http://glob.com.au/sendmail/ is located in c:\usr\lib\ directory. All i had to do was set up its ini file with my smtp / login / password info and then include script's path in php.ini as shown above. Now it magicly WORKS. I cant believe how i got stuck on something this trivial.
( btw , i commented out Win32 commands when i used sendmail -t , it didnt work with them enabled ) |
|
Back to top |
|
|
pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
Posted: Thu Jun 15, 2006 3:16 pm Post subject: Email Server |
|
|
Hi wally007,
You can set up your own email server on Win32. This may be of interest to you if you have a permanent connection. I run Mercury/32 for email. You will need a domain or sub-domain name. (You can get the subdomain YOURNAME.dyndns.org at http://dyndns.org)
You can install Mercury 32 from:
http://pmail.com
ftp://ftp.usm.maine.edu/pegasus/mercury32/m32-401a.exe
This program fits in with your sendmail program as the receiver of sendmail. When setting up sendmail (or your PHP.ini file), the SMTP server would be YOURNAME.dyndns.org.
If you'd like any help regarding this, I'd be willing to help you. _________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|
Back to top |
|
|
wally007 -
Joined: 13 Jan 2004 Posts: 17
|
Posted: Sat Jun 24, 2006 1:15 am Post subject: |
|
|
Thanks Stephen for suggestion. As of right now i think my ISPs email for the form will work. Sometime in the future i might want to run my own email server , i'll remeber Mercury32.
Again thanks a lot. |
|
Back to top |
|
|
pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
|
Back to top |
|
|
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Sat Dec 09, 2006 8:25 pm Post subject: |
|
|
pkSML wrote: | Admins, please remove all Abmosterjo9's junk. |
Done. |
|
Back to top |
|
|
|