[include:'includes/tags.lasso'] [include:'includes/session.lasso'] [Variable: 'title' = 'Tell a Friend'] [Variable: 'body' = '/includes/page_tell_a_friend.lasso'] [Variable: 'mode' = 'page'] [variable:'indexthispage'='no'] [Variable: 'Search_Author' = ''] [Variable: 'Search_Mode' = ''] [Variable: 'Search_Keyword' = ''] [Variable: 'Search_Holiday' = ''] [Variable: 'Search_Category' = ''] [Variable: 'skiprecords' = '0'] [variable:'friend_response'=(Action_Param:'friend_response')] [variable:'your_from_name'=(Action_Param:'your_from_name')] [variable:'your_from_email'=(Action_Param:'your_from_email')] [variable:'friend_from_name'=(Action_Param:'friend_from_name')] [variable:'friend_from_email'=(Action_Param:'friend_from_email')] [variable:'friend_message'=(Action_Param:'friend_message')] [variable:'action'=(Action_Param:'action')] (insert: 'tf_index'=(var: 'tf_index')); inline: $tf_inline; variable:'friend_subject'='A Friend Recommends: ' + (field:'tf_title'); variable:'title'=(field:'tf_title'); variable:'teaser'=(field:'tf_teaser'); /inline; ?> [if:(var:'action')=='Send Email'] [if:(var:'friend_from_name')=='' || (var:'friend_from_email')=='' || (var:'friend_message')=='' || (var:'your_from_name')=='' || (var:'your_from_email')==''] [variable:'friend_status'='failed'] [else] [email_send: -To=(var:'friend_from_email'), -bcc='lewis@cumuli.com', -extramimeheaders=(array: 'Reply-To'=$your_from_email), -From='thrifty@thriftyfun.com', -Subject=(var:'friend_subject'), -Body=(include:'includes/email_tell_a_friend.lasso')] [variable:'friend_status'='sent'] [/if] [/if] [include:'/includes/template.lasso']