close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Recordset emails not arriving

Thread began 4/21/2012 12:18 pm by john70964 | Last modified 4/23/2012 12:06 pm by Jason Byrnes | 2731 views | 15 replies |

john70964

Recordset emails not arriving

I have a contact form with a text box for email addresses.
The box is dynamically connect to a database
The recordset shows correct records on test but
The records do not show in the box and the recordset emails do not arrive.
If I place an email address in the box this arrives correctly.

I wonder if this code shows the problem
Thanks for any help
John
<?php
if (ValidatedField('email','email')) {
if ((strpos((",".ValidatedField("email","email").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {
?>
<span class="serverInvalidState" id="Full_Name_ServerError">Please enter your name</span>
<?php //WAFV_Conditional email.php email(1:)
}
}
}?>
</div>
</div>
</div>
</div>
</div>
<div class="lineGroup">
<div class="fullColumnGroup">
<label for="Email_Address" class="sublabel" > Email<span class="requiredIndicator">&nbsp;*</span></label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span id="Email_Address_Spry">
<input id="Email_Address" name="Email_Address" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("email","Email_Address"):"")); ?>" class="formTextfield_Large" tabindex="2" onblur="hideServerError('Email_Address_ServerError');"/>
<span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldRequiredMsg">Please enter a full email address</span> </span>
<?php
if (ValidatedField('email','email')) {
if ((strpos((",".ValidatedField("email","email").","), "," . "2" . ",") !== false || "2" == "")) {
if (!(false)) {
?>
<span class="serverInvalidState" id="Email_Address_ServerError">Please enter a full email address</span>
<?php //WAFV_Conditional email.php email(2:)
}
}
}?>
</div>
</div>
</div>
</div>
</div>

Sign in to reply to this post

john70964

Entry Deleted

Sign in to reply to this post

john70964

Being quite new to php and reading about pear email it occours to me perhaps I am doing this all wrong.
I am at the moment trying to send my form via my windows2003 server and I wonder if it must go via a php server....
My windows server does require a password.

I am working on my local PC localhost

Sign in to reply to this post

Jason ByrnesWebAssist

I'm not sure i understand the issue correctly, you say that the email address text box is supposed to get it's value from a recordset? The initial value of the text box is not configured to use a recordset.

you then say if you fill in the text box it works...


since it works if you fill in the text box, i am confused by your last message questioning the Email server, if it works by filling in the text box, the email server you are using should be fine.

Sign in to reply to this post

john70964

Thank Jason
I am sorry to be confusing you.
I want the email to go to a number of addresses.

When I look at the headings in the attached image
the email is FROM one address and the
TO is from a recordset.

I wonder is my understanding incorrect? Should the recordset be where it is in the TO field.

I am attaching and image of the UE and the code for the page.

Attached Files
CSS FormbuilderCode Email 2.zip
Sign in to reply to this post

Jason ByrnesWebAssist

click the to button to go to advanced to settings, this is where you can select to use a recordset loop.

Sign in to reply to this post

john70964

I am assuming advanced is the Advanced in a recordset.

The recordset tests OK and the correct records show.

Sign in to reply to this post

Jason ByrnesWebAssist

no, assumption is incorrect.


in the Universal Email behavior, click the "To" button to open the "Advanced To address" settings. This will allow you to select to use a recordset loop for the to address.

Sign in to reply to this post

john70964

Thanks Jason
Getting somewhere now.
The required emails arrived!
I could not see the Advanced To address setting but completed the form as per image which seems to work.

In this case the Name Box seems not to be required?

The comments do not arrive in the email did I do something wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

The form in your screen shot is the advanced to options screen.


  In this case the Name Box seems not to be required?  



do you mean the Name form element? how is validation applied to the name form element, send a copy of the original php page in a zip archive.

  The comments do not arrive in the email did I do something wrong?  




how did you set the email body options? did you select to create a file for the email? I have no way of knowing whether you did something wrong or not. I have now way of know what settings you used to determine if they are wrong or right...

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...