close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Send Confirmation Email

Thread began 11/13/2012 2:50 pm by phill401410 | Last modified 11/16/2012 9:28 am by phill401410 | 6040 views | 7 replies |

phill401410

Send Confirmation Email

I am sending an email via emailComeBack.php. When the recipient clicks on Unsubscribe I want an email sent back to me saying the recipient is unsubscribing. No data base connection here.

In the email template IBCF2012.php I have "Unsubscribe" linked to IBCRF-ThankYouUnsubscribe.php. In IBCRF-ThankYouUnsubscribe.php I have set the Properties Form Action by clicking on the Data Sources button and in Field setting the URL to <?php echo(isset($_SESSION["waue_IBCRF-ThankYouUnsubscribe_1_Log"])?$_SESSION["waue_IBCRF-ThankYouUnsubscribe_1_Log"]:""); ?>

Also in IBCRF-ThankYouUnsubscribe.php I have set the Server Behavior Universal Email 1 (webassist/email/templates/Blank_5.php) From button to the Select Data Binding <?php echo (isset($_SESSION["waue_IBCRF-ThankYouUnsubscribe_1_From"])?$_SESSION["waue_IBCRF-ThankYouUnsubscribe_1_From"]:""); ?>

Doesn't send the email.

Have tried a couple other combinations but cannot seem to hit on the right one. Hoping I am going in the right direction here, can you take a look? Thanks.

Attached Files
WAUniversalEmail 13NOV12.zip
Sign in to reply to this post

Jason ByrnesWebAssist

It's not going to work this way.

In the unsubscribe link, you will need to pass the email as a URL parameter:


<a href="http://mydomain.com/unsubscripe.php?email=johndoe@company.com">Unsubscribe</a>

most hosts require that the from address be a valid email address for your domain but you can set the return Address to use a dynamic value.

Open the bindings panel, click the plus button and select URL variable, set the URL Variable name to email, and use that binding for the return address setting.

Sign in to reply to this post

phill401410

Send Confirmation Email cont.

Jason
Getting there. Here is where I am at.

The page emailComeBack.php emails the template IBCRF2012.php correctly.

In the template IBCRF2012.php I linked the word Unsubscribe in the footer (passed the email as a URL parameter) to <a href="http://ibcrf.org/IBCRF-ThankYouUnsubscribe.php?email=phillthill@gmail.com">.

In the file IBCRF-ThankYouUnsubscribe.php I added the URL Variable "mail" to the bindings panel.

#1 scenario for file IBCRF-ThankYouUnsubscribe.php
In the Server Behavior Universal Email 1 (webassist/email/templates/Blank_5.php) I assigned Trigger to any form post.
I assigned From to the URL variable, email, <?php echo $_GET['email']; ?>.
I assigned To to <?php echo (isset($_SESSION["waue_IBCRF-ThankYouUnsubscribe_1_To"])?$_SESSION["waue_IBCRF-ThankYouUnsubscribe_1_To"]:""); ?>.

When I click on Unsubscribe in the email I am directed to IBCRF-ThankYouUnsubscribe.php?email=phillthill@gmail.com
Unfortunately, this scenario does not send an email back to me.

#2 scenario for file IBCRF-ThankYouUnsubscribe.php
In the Server Behavior Universal Email 1 (webassist/email/templates/Blank_5.php). I assigned Trigger to the URL variable, email, <?php echo $_GET['email']; ?>.
I assigned From to <?php echo(isset($_SESSION["waue_IBCRF-ThankYouUnsubscribe_1_From"])?$_SESSION["waue_IBCRF-ThankYouUnsubscribe_1_From"]:""); ?>.
I assigned To to <?php echo(isset($_SESSION["waue_IBCRF-ThankYouUnsubscribe_1_To"])?$_SESSION["waue_IBCRF-ThankYouUnsubscribe_1_To"]:""); ?>.

When I click on Unsubscribe in the email I "think" the email back to me has fired because the page I am directed to is the Server Behavior Universal Email 1 Go To Page address IBCRF-ThankYouUnsubscribe.html not IBCRF-ThankYouUnsubscribe.php.
Unfortunately, this scenario does not send an email back to me either.

Could you suggest a couple more ideas please?

Attached Files
WAUniversalEmail 14NOV12.zip
Sign in to reply to this post

Jason ByrnesWebAssist

dont use the form post as the trigger.

for the trigger, click the lightning bolt icon and select the mail URL binding.

Sign in to reply to this post

phill401410

Send Confirmation Email cont.

Jason
Bingo!
This works for trigger
$_GET['email'] sends to IBCRF-ThankYouUnsubscribe.html
This does not work
$_GET[''] sends to IBCRF-ThankYouUnsubscribe.php?email=phillthill@gmail.com
From
<?php echo (isset($_SESSION["waue_IBCRF-ThankYouUnsubscribe_1_To"])?$_SESSION["waue_IBCRF-ThankYouUnsubscribe_1_To"]:""); ?>
To
myaddress@mysite.com

Thank you!

Sign in to reply to this post

phill401410

Unsubscribe email

One more step, please. I am having an issue getting an Unsubscribe confirming email back to me to link to the address of the original email recipient.

The scenario is I am sending an email, IBCRF2012.php, via emailComeBack.php.
When the recipient clicks on Unsubscribe another email sent back to me, templates_13.php, saying the recipient is unsubscribing does not include the address of the original email recipient of IBCRF2012.php.
You can see i have tried a couple things on templates_13.php but obviously not getting the recipients address in the body of the email.

Is this doable?

Attached Files
WAUniversalEmail 16NOV12.zip
Sign in to reply to this post

Jason ByrnesWebAssist

use:
<?php echo $_GET['email']; ?>


to write the recipients email in the body

Sign in to reply to this post

phill401410

Send Confirmation Email

Jason
Works like a charm. Thank you!

Sign in to reply to this post

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