close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

repeat region not working in email

Thread began 3/30/2010 11:41 am by brian177569 | Last modified 4/01/2010 5:06 pm by brian177569 | 1733 views | 6 replies

brian177569

repeat region not working in email

Using PC, WINDOWS XP, Dreamweaver 8, ASP, VB SCRIPT

I am trying to add a repeat region within the body of an email which is using a recordset loop to despatch mail. The repeat region displays all the names of the recipients of the emails i.e.

A copy of this email has been sent to:
user 1
user 2
user 2
etc

If I add the repeat region to Universal Email, the loop will only send an email to the 1st user
but all the repeat region names are displayed.

If I remove the repeat region the mail is sent to all recipients and the recordset loop works OK.

THIS VERSION LOOPS THROUGH THE RECORDSET OK BUT NO REPEAT:

<table width="46%" border="1" cellpadding="2" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<td width="28%" class="style1"><div align="right">enquiry date: </div></td>
<td width="72%" class="style1"><div align="left"><%=(rsAFLASenq.Fields.Item("datinsert").Value)%></div></td>
</tr>

<tr>
<td class="style1"><div align="right">company: </div></td>
<td class="style1"><div align="left"><%=(rsAFLASenq.Fields.Item("strcompany").Value)%></div></td>
</tr>
<tr>
<td class="style1"><div align="right">country:</div></td>
<td class="style1"><div align="left"><%=(rsAFLASenq.Fields.Item("strcountry").Value)%></div></td>
</tr>

<tr>
<td class="style1"><div align="right"></div></td>
<td class="style1"><div align="left"><a href="http://www.agcce.com/emaillogin.asp">Visit Login Page to View Request and update Request Diary </a></div></td>
</tr>
</table>

THIS VERSION PRODUCES AN ERROR, BUT STILL SEND EMAIL AND ADDS THE REPEAT REGION BUT ONLY SENDS TO 1st RECIPIENT:

This email was sent to:
<table width="46%" border="0" cellspacing="0" cellpadding="2">
<%
While ((Repeat1__numRows <> 0) AND (NOT rsUsers.EOF))
%>
<tr>
<td><%=(rsUsers.Fields.Item("strname").Value)%></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rsUsers.MoveNext()
Wend
%>
</table><br />
<table width="46%" border="1" cellpadding="2" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<td width="28%" class="style1"><div align="right">enquiry date: </div></td>
<td width="72%" class="style1"><div align="left"><%=(rsPTFEenq.Fields.Item("datinsert").Value)%></div></td>
</tr>

<tr>
<td class="style1"><div align="right">company: </div></td>
<td class="style1"><div align="left"><%=(rsPTFEenq.Fields.Item("strcompany").Value)%></div></td>
</tr>
<tr>
<td class="style1"><div align="right">country:</div></td>
<td class="style1"><div align="left"><%=(rsPTFEenq.Fields.Item("strcountry").Value)%></div></td>
</tr>

<tr>
<td class="style1"><div align="right"></div></td>
<td class="style1"><div align="left"><a href="http://www.agcce.com/emaillogin.asp">Visit Login Page to View Request and update Request Diary </a></div></td>
</tr>
</table>

The tables are used for formatting of the email.

many thanks
Brian Welsh

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