close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UE send to recipients from recordset

Thread began 4/25/2012 3:24 pm by john70964 | Last modified 4/26/2012 2:21 pm by Jason Byrnes | 1109 views | 9 replies |

john70964

UE send to recipients from recordset

Hello
I am trying to send emails to a group of recipients from a recordset so that each has individual
fields ie Title FName LName etc
At the moment the emails are arriving to the correct addresses but just the first record details are being included.
IE
Record ID 1
Record ID 1
Record ID 1

I thought perhaps using a recordset loop for each required field might be the answer but no.

I am attaching an image which will illustrate that.

Any ideas please?
Many thanks
John

Sign in to reply to this post

Jason ByrnesWebAssist

see this thread form the universal email forum:
showthread.php?t=17869

Sign in to reply to this post

john70964

Thanks Jason
I placed this

<body>
<?php echo($RecipArray[$RecipIndex][0]["[ID]"]); ?>

<p>&nbsp;
and received an error
Notice: Undefined variable: RecipIndex in C:\xampp\htdocs\SJP_php2\email.php on line 173

Notice: Undefined variable: RecipArray in C:\xampp\htdocs\SJP_php2\email.php on line 173

re for the email log settings use
where are these please?

Can the wizard not insert individuals details?

Sign in to reply to this post

Jason ByrnesWebAssist

no, this cannot be done from the wizard, you need to edit the template file that is created after you have run the wizard.


the code change will not go in the main page that apply Universal Email to, it will go in the Universal Email body template file in the webassist/email/templates/ folder

Sign in to reply to this post

john70964

Thanks Jason

I think I did as required but still getting just one record in all emails.

I tried attaching the two php files but the Forum attachments will not allow this so sending a zip

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

Jason ByrnesWebAssist

you have 3 recordset loops, you should only have 1 for the email column.


in the template file, you have this code:

php:
<?php echo($RecipArray[$RecipIndex][0]["[ID]"]); ?>




it should be

php:
<?php echo($RecipArray[$RecipIndex][0]["ID"]); ?>



and you should also have this code at line 1:

php:
<?php

global $RecipArray;
global 
$RecipIndex;
?>





if you continue to have problems, include the webassist/email/waue_email_1.php file in your attachment.

Sign in to reply to this post

john70964

Thanks Jason,
In email.php I placed
<?php
global $RecipArray;
global $RecipIndex;
?>
at line 1

In Templates.php I placed
<title>Blank Template</title>
</head>
<body style="padding: 20px; text-align: center;">
<?php echo($RecipArray[$RecipIndex][0]["ID"]); ?> at Line 23

I still get the first record only in the arriving email

I am zipping
email.php
templates.php
email_WAUE_HTML_WA_Universal_email_1.php

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

Jason ByrnesWebAssist

the code needs to be in template.php, not email .php



in template.php, you should have both pieces of code:
<?php
global $RecipArray;
global $RecipIndex;
?>

<?php echo($RecipArray[$RecipIndex][0]["ID"]); ?>




the 3rd file you sent:
email_WAUE_HTML_WA_Universal_email_1.php

is not the one i asked for, i asked for:
webassist/email/waue_email_1.php

That file will tell e if you editing the correct template file, or even if you are using a template at all, if your not using a template, then the code changes needs to be placed in the webassist/email/waue_email_1.php file, that is why i want to take a look at it.

Sign in to reply to this post

john70964

Thanks Jason

Zip file attached

Attached Files
Original Files2.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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