Problems with Email Form

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Misiu
Posts: 15
Joined: Sat 11. Jun 2005, 16:35
Location: Copenhagen
Contact:

Problems with Email Form

Post 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ł
Last edited by Misiu on Sun 12. Jun 2005, 00:12, edited 1 time in total.
Pappnase

Post by Pappnase »

Misiu
Posts: 15
Joined: Sat 11. Jun 2005, 16:35
Location: Copenhagen
Contact:

Re: problems with Email Form

Post 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ł
Pappnase

Post by Pappnase »

hello

before you create more content upgrade to version 1.2.3! thats teh recommend version wich you should use!
Misiu
Posts: 15
Joined: Sat 11. Jun 2005, 16:35
Location: Copenhagen
Contact:

Post 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
Pappnase

Post by Pappnase »

hello

disable the cache for the mail from structure!
Misiu
Posts: 15
Joined: Sat 11. Jun 2005, 16:35
Location: Copenhagen
Contact:

Post 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
Pappnase

Post 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!
Misiu
Posts: 15
Joined: Sat 11. Jun 2005, 16:35
Location: Copenhagen
Contact:

Post 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
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

H Misiu,

instead of:

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

try:

IT|email|1|Your Email: |40,100||300
Misiu
Posts: 15
Joined: Sat 11. Jun 2005, 16:35
Location: Copenhagen
Contact:

Post 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
Pappnase

Post 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
Misiu
Posts: 15
Joined: Sat 11. Jun 2005, 16:35
Location: Copenhagen
Contact:

Post 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
Misiu
Posts: 15
Joined: Sat 11. Jun 2005, 16:35
Location: Copenhagen
Contact:

Post 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
Post Reply