Page 1 of 1

Problems with Email Form

Posted: Sat 11. Jun 2005, 16:45
by Misiu
Hi I'm using phpwcms ver. 1.1-RC4 I have some problem with the Email form. I define the form fields in the following way:

IT|name|1|Your Name: |40,100||300
IT|mail|1|Your Email: |40,100||300
TA|text|0|Text: |20,3||300
SC|country|0|Country: |10,100|US|300
IH|redirect|0||10,100|http://www.misiu.dk/index.php?id=49,23,0,0,1,0|0
IH|redirect_error|1||10,100|http://www.misiu.dk/index.php?id=50,24,0,0,1,0|0

however instead of sending e-mail I get redirected to the starting page (http://www.misiu.dk (intro)). Weird thing is that sometimes it worked and actually the e-mail was sent correctly, but most of the time I get redirected to the intro page and nothinng is sent. Hope somebody could help me with this one!
Thanks in advance!

~ Michał

Posted: Sat 11. Jun 2005, 17:40
by Pappnase

Re: problems with Email Form

Posted: Sun 12. Jun 2005, 00:17
by Misiu
Yeah, I checked the phpwcms-docu.de documentation for Email Form, and to me it looks like all I did is o.k. ... I created a custom redirection ... but now I just don't know anymore ... I really can't find any errors ... problem is that sometime it sends sometimes doesn't ... recently however most often it doesn't, I thought there could be some problem with cache ... but I tried to clean up all the cache in my browser, close it down, open up again, restart computer, I even tried to log on as admin in one browser and view page in other ... nothing helps ... really hope you could help ...

~ Michał

Posted: Sun 12. Jun 2005, 02:50
by Pappnase
hello

before you create more content upgrade to version 1.2.3! thats teh recommend version wich you should use!

Posted: Mon 13. Jun 2005, 16:50
by Misiu
Pappnase wrote:hello

before you create more content upgrade to version 1.2.3! thats teh recommend version wich you should use!
Hi I installed the newest version 1.2.3, and it works fine. However, the problem with the Email Form still remains. Sometimes it works, sometime it doesn't ... I tried to send an email from my website and it worked fine. Later my friend tried the same and it didn't, finally I couldn't send anything either ... I was redirected to the starting page, in stead of the 'success' page, and nothig was sent. I thought it could have something to do with the cache. i delited it and then it worked for me, however it didn't for my fried. I tried to use the new 'Email contact form' ... the redirection works fine, however nothing gets send ... I never received any e-mail ... but the settings look fine to me. Is there anything special I need to do with the 'Email contact form', in order to make it send e-mails?

All the best

~ Michal

Posted: Mon 13. Jun 2005, 21:53
by Pappnase
hello

disable the cache for the mail from structure!

Posted: Tue 14. Jun 2005, 01:26
by Misiu
Hey,

How exactly do I do that? Do I do it from the backend (I can only see 'reset or delete cache' functions .... or do I need to edit some file ...?

Thanks for all your hints and support!

~ Michal

Posted: Tue 14. Jun 2005, 05:17
by Pappnase
hello

goto the sitestructure where you're mailfrom is. click on edit this structure. and at the end of the page you saw visible etc. and the box cache off!

Posted: Tue 14. Jun 2005, 10:57
by Misiu
Hi,

I disabled cache, but unfortunately the situation stays the same ... the new 'Email contact form' works for the correct redirection i.e. to the success/error pages, however it doesn't send e-mail ... the old 'Email Form' after an attempt to send a message redirected me to the starting page.

Do we have any other options...?

thx in advance to all that could contribute...

~ Michal

Posted: Tue 14. Jun 2005, 11:07
by pepe
H Misiu,

instead of:

IT|mail|1|Your Email: |40,100||300

try:

IT|email|1|Your Email: |40,100||300

Posted: Tue 14. Jun 2005, 11:25
by Misiu
pepe wrote:H Misiu,

instead of:

IT|mail|1|Your Email: |40,100||300

try:

IT|email|1|Your Email: |40,100||300

Hi

I changed mail -> email ... nothing changed, still the same problem :?

Hmmm ... what could be wrong ... it really buffles me ...?!

Cheers,

~ Michal

Posted: Tue 14. Jun 2005, 14:45
by Pappnase
hello

Code: Select all

IT|email|1|Your Email: |40,100||300
is right i have an error in the docu!

edit: have edit the docu

Posted: Tue 14. Jun 2005, 19:24
by Misiu
Pappnase wrote:hello

Code: Select all

IT|email|1|Your Email: |40,100||300
is right i have an error in the docu!

edit: have edit the docu
Hi Pepe,

I have corrected the IT|email|1|Your Email: |40,100||300 I turned off all the caching both when creating the 'Contact' in the site structure as well as creating the article. I have deleted the 'Contact' in the site structure and created it all again, just to see if that would change something.

My Email Form code looks as follows:

Code: Select all

IT|firstname|1|Your Name: |40,100|anon.|300
IT|email|1|Your Email: |40,100||300
SC|country|0|Country: |10,100|US|300
TA|info|0|Text: |20,3||300
IH|language|0||10,100|EN|0
IH|redirect|0||10,100|http://www.misiu.dk/index.php?success|0
IH|redirect_error|0||10,100|http://www.misiu.dk/index.php?error|0
I still have the same problem, instead of being redirected to 'success' or 'error' page, after pressing 'send' button, I get redirected to the starting page 'intro' on my http://www.misiu.dk homepage .... no e-mail gets sent.

The settings in the conf.inc.php are:

Code: Select all

// smtp values
$phpwcms['SMTP_FROM_EMAIL']   = 'my_email@my_domain.com'; // reply/from email address
$phpwcms['SMTP_FROM_NAME']    = 'Michal M. Biedrzycki'; // reply/from name
$phpwcms['SMTP_HOST']         = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT']         = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER']       = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH']         = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER']         = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS']         = ''; // default SMTP password
What could be wrong ...?? Why I can't get the Email Form to send a mail ... what's wrong with the redirection? :(

Hope we'll finally be able to somehow solve this issue....

Best regards from Copnehagen,

~ Misiu

Posted: Wed 15. Jun 2005, 22:27
by Misiu
Hey,

I finally got the Email Contact Form to work. I made a very simple form, looked through the http://www.phpwcms.de/forum/viewtopic.p ... email+form post and now it works. The only little problem is, when I get the e-mail, the sender field is empty ... it is simply sent from an unknown sender. The subject is there though? Any ideas??

Regrads,

~ Michal