close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Universal email and repeat region not working

Thread began 6/07/2010 5:25 pm by webassist10600 | Last modified 3/02/2011 3:33 pm by karen183060 | 2819 views | 24 replies |

webassist10600

Universal email and repeat region not working

I saw this thread a couple of time al-ready on the forum but I couldn't find the solution.
I use Universal E-mail 3.0.7 in a ASP environment. A newsletter needs to be sent with articles in a repeat region. The newsletter has to be sent to different e-mails coming from the database, I use therefore the Recordset Loop in the To recipient.
The newsletter is sent to all the addresses but the newsletter is empty, the articles are not shown.
Help would be very appreciate. Thanks.

Attached Files
emailing.asp.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the record set being used in the email is filtered on the "NieuwsbriefID" query string variable.

However, the forms action is blank, so does not pass that variable when the form posts:

<form action="" method="post" name="emailings" id="emailings">




change that to:
<form action="emailing.asp?NieuwsbriefID=<%= Request.QueryString("NieuwsbriefID") %>" method="post" name="emailings" id="emailings">

Sign in to reply to this post

webassist10600

Thanks Jason for your post. I tried it but it is still not working. I see in the code of the page online that the ID is passed but the e-mails are still empty. Could it be something else?

Sign in to reply to this post

Jason ByrnesWebAssist

OK, at line 255, change:

While ((Repeat2__numRows <> 0) AND (NOT artikelen.EOF))


to:

While (NOT artikelen.EOF)
Sign in to reply to this post

webassist10600

now I get only the first e-mail with all the articles. The rest of e-mails are still empty...

Sign in to reply to this post

Jason ByrnesWebAssist

OK, lets change:

While (NOT artikelen.EOF)




to:

artikelen.MoveFirst
While (NOT artikelen.EOF)
Sign in to reply to this post

webassist10600

Microsoft OLE DB Provider for ODBC Drivers error '80040e18'

Rowset position cannot be restarted.

/admin/verzenden/emailing.asp, line 247

Sign in to reply to this post

Jason ByrnesWebAssist

Ok, lets try this then:

artikelen.Requery
While (NOT artikelen.EOF)
Sign in to reply to this post

webassist10600

well that almost made the trick...the strange thing is that the introduction text, not a part of the repeat region, is only shown in the first e-mail...

MailBody = MailBody & (nieuwsbrief.Fields.Item("IntroTekst").Value)

Sign in to reply to this post

Jason ByrnesWebAssist

yeah, that's because at that point the recordset is still at the end.

change:

artikelen.Requery
While (NOT artikelen.EOF)



back to:

While (NOT artikelen.EOF)




then change line 277:

Wend


to:

Wend
artikelen.Requery
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...