The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Form submits - writes to database but doesnt process form to email - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Form submits - writes to database but doesnt process form to email (/showthread.php?tid=188) |
Form submits - writes to database but doesnt process form to email - Beverleyh - Jun 22nd, 2009 I have 2 pages - "contact.php" (the form [verified as Form URL]) and "contact_thanks.php" (the process script [verified as Redirect URL]) [Form Field Name] and [Display Name] both match exactly in step 4 - Database Setup. My problem is that the form appears to submit and jumps to the contact_thanks.php page but the variables arn't passed so it doesnt submit to email. It does write to the database though. The form works fine without formtools, and I get the email as expected. I even checked the boxes for "pass on value to redirect page?" for all my form fields but that doesnt help either. Can anyone see why my code isnt working and please advise what I might need to change? Or is there anything I need to check in the forumtool configuration? contact.php - Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> contact_thanks.php - Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> RE: Form submits - writes to database but doesnt process form to email - Beverleyh - Jun 23rd, 2009 Ignore me. I set up swift mailer on SMTP and now it submits to email RE: Form submits - writes to database but doesnt process form to email - Ben - Jun 23rd, 2009 Good to hear it's working now! :-) RE: Form submits - writes to database but doesnt process form to email - sujith - Sep 2nd, 2009 (Jun 23rd, 2009, 6:09 PM)Ben Wrote: Good to hear it's working now! :-) I am facing the same issue. Swift mailer is working fine. But default php sent mail with form tools is not working. The form writes to database. I check the php sent mail function is working with other scripts. I am looking for a solution RE: Form submits - writes to database but doesnt process form to email - Ben - Sep 2nd, 2009 Hi sujith, This could be for a number of reasons. Form Tools does some pretty complicated stuff with the mail function, like sending multi-part emails. This isn't always compatible with all systems, which is why there's a Swift Mailer module. That's a much better way to send emails. So if Swift Mailer is working fine for you, can't you use that? - Ben RE: Form submits - writes to database but doesnt process form to email - sujith - Sep 2nd, 2009 Thanks Ben for your reply and this excellent form tools. I am using swift mailer and its working fine. For academic interest, i asked you about the php mail function. RE: Form submits - writes to database but doesnt process form to email - Ben - Sep 7th, 2009 Ah I see. Thanks! Ben |