close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cannot get php form to email

Thread began 1/26/2013 3:46 pm by smorris99 | Last modified 7/10/2013 2:56 pm by Jason Byrnes | 9716 views | 11 replies |

smorris99

Cannot get php form to email

I am using data bridge, and have created a new form and just want the form contents emailed to me.

I have tested the php email event using a little php script:
train-station.com/samplemail.php and I successfully receive the emails so the php path and configuration to sendmail seem to be working ok.

I have created a form called :
train-station.com/Sell2.php that form seems to be working exactly as I want it to but no matter how I configure the Form Function tab, no email is sent. I have found the documentation isn't helping me.

I have also attached the simple files in a zip.

Steve

Attached Files
Archive.zip
Sign in to reply to this post

Jason ByrnesWebAssist

What version of Data Bridge are you using?

Make sure you have version 1.1.3 installed, if you have a previous version, uninstall it from the extension manager and install the newer version.

once you install the 1.1.3 version, delete the following files from your site:
webassist/progress_bar/jquery-blockui-formprocessing.js
webassist/email/mail_php.php
webassist/email/mailformatting_php.php

the go to the server behaviors panel, double click the universal email server behavior and set the Go To page to redirect to another page after sending the email.

make sure to upload the newer versions of the files that where deleted. if you continue to have a problem, please send a copy of the webassist/email/waue_Sell2_2.php file

Sign in to reply to this post

smorris99

Fixed!

That seems to have solved the problem(deleting the old files). Now I'll check out how to edit the email templates and we'll be good to go.

Steve

Sign in to reply to this post

Jason ByrnesWebAssist

on the data bridge support page, see the "Customize the elements in your form-generated emails" tutorial for details on editing the email template:
data-bridge/

Sign in to reply to this post

smorris99

Almost there

Thanks, It's all done.

The comments field doesnt wrap like I would expect a text field to. is there a php code piece I'm missing to tell that field to wrap, rather than it just wrapping in the middle of words etc.

Steve

Sign in to reply to this post

Jason ByrnesWebAssist

in the email template file, try editing the style.

change:

<td style="font-size: 12px; padding: 3px;"><?php echo(str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval):$pval))); ?></td>


to:
<td style="font-size: 12px; padding: 3px;white-space:pre-wrap;"><?php echo(str_replace("\n","<BR />",(is_array($pval)?implode(", ",$pval):$pval))); ?></td>

Sign in to reply to this post

smorris99

Text Still not wrapping

The text in the comments field is still not wrapping properly. Any other thoughts?

Steve

Sign in to reply to this post

Jason ByrnesWebAssist

can you provide a screen shot so i can get a better sense of how it is wrapping.

Sign in to reply to this post

smorris99

example of wrapping

It's wrapping on "seems" picture attached.

you could also just see it at Sell2.php

Steve

Sign in to reply to this post

Jason ByrnesWebAssist

ok, so it's in the form that the problem happens not the email itself...


in the webassist/forms/fd_newfromblank_default.css file edit the following css:


form.NewFromBlank_Default textarea.formTextarea_Medium {
background-color:#FFF;
padding:5px 5px 5px 5px;
width:382px;
height:150px;
white-space:pre;
overflow:auto;
margin:0;
margin-left:2px;
}




to:

form.NewFromBlank_Default textarea.formTextarea_Medium {
background-color:#FFF;
padding:5px 5px 5px 5px;
width:382px;
height:150px;
white-space:pre-wrap;
overflow:auto;
margin:0;
margin-left:2px;
}
Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...