| | 120 | |
|---|
| | 121 | // If There Is No Error, We Process The E-Mail |
|---|
| | 122 | if(empty($error)) { |
|---|
| | 123 | // If Remarks Is Empty, Assign N/A |
|---|
| | 124 | if(empty($yourremarks)) { $yourremarks = 'N/A'; } |
|---|
| | 125 | |
|---|
| | 126 | // Variables Variables Variables |
|---|
| | 127 | $post_title = email_title(); |
|---|
| | 128 | $post_author = the_author('', false); |
|---|
| | 129 | $post_date = the_date('jS F Y @ H:i', '', '', false); |
|---|
| | 130 | $post_category = email_category(); |
|---|
| | 131 | $post_category_alt = strip_tags($post_category); |
|---|
| | 132 | $post_excerpt = get_the_excerpt(); |
|---|
| | 133 | $post_content .= email_content(); |
|---|
| | 134 | $post_content_alt = email_content_alt(); |
|---|
| | 135 | |
|---|
| | 136 | // Template For E-Mail Subject |
|---|
| | 137 | $template_email_subject = stripslashes(get_settings('email_template_subject')); |
|---|
| | 138 | $template_email_subject = str_replace("%EMAIL_YOUR_NAME%", $yourname, $template_email_subject); |
|---|
| | 139 | $template_email_subject = str_replace("%EMAIL_YOUR_EMAIL%", $youremail, $template_email_subject); |
|---|
| | 140 | $template_email_subject = str_replace("%EMAIL_POST_TITLE%", $post_title, $template_email_subject); |
|---|
| | 141 | $template_email_subject = str_replace("%EMAIL_POST_AUTHOR%", $post_author, $template_email_subject); |
|---|
| | 142 | $template_email_subject = str_replace("%EMAIL_POST_DATE%", $post_date, $template_email_subject); |
|---|
| | 143 | $template_email_subject = str_replace("%EMAIL_POST_CATEGORY%", $post_category_alt, $template_email_subject); |
|---|
| | 144 | $template_email_subject = str_replace("%EMAIL_BLOG_NAME%", get_bloginfo('name'), $template_email_subject); |
|---|
| | 145 | $template_email_subject = str_replace("%EMAIL_BLOG_URL%", get_bloginfo('url'), $template_email_subject); |
|---|
| | 146 | $template_email_subject = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_email_subject); |
|---|
| | 147 | |
|---|
| | 148 | // Template For E-Mail Body |
|---|
| | 149 | $template_email_body = stripslashes(get_settings('email_template_body')); |
|---|
| | 150 | $template_email_body = str_replace("%EMAIL_YOUR_NAME%", $yourname, $template_email_body); |
|---|
| | 151 | $template_email_body = str_replace("%EMAIL_YOUR_EMAIL%", $youremail, $template_email_body); |
|---|
| | 152 | $template_email_body = str_replace("%EMAIL_YOUR_REMARKS%", $yourremarks, $template_email_body); |
|---|
| | 153 | $template_email_body = str_replace("%EMAIL_FRIEND_NAME%", $friendname, $template_email_body); |
|---|
| | 154 | $template_email_body = str_replace("%EMAIL_FRIEND_EMAIL%", $friendemail, $template_email_body); |
|---|
| | 155 | $template_email_body = str_replace("%EMAIL_POST_TITLE%", $post_title, $template_email_body); |
|---|
| | 156 | $template_email_body = str_replace("%EMAIL_POST_AUTHOR%", $post_author, $template_email_body); |
|---|
| | 157 | $template_email_body = str_replace("%EMAIL_POST_DATE%", $post_date, $template_email_body); |
|---|
| | 158 | $template_email_body = str_replace("%EMAIL_POST_CATEGORY%", $post_category, $template_email_body); |
|---|
| | 159 | $template_email_body = str_replace("%EMAIL_POST_EXCERPT%", $post_excerpt, $template_email_body); |
|---|
| | 160 | $template_email_body = str_replace("%EMAIL_POST_CONTENT%", $post_content, $template_email_body); |
|---|
| | 161 | $template_email_body = str_replace("%EMAIL_BLOG_NAME%", get_bloginfo('name'), $template_email_body); |
|---|
| | 162 | $template_email_body = str_replace("%EMAIL_BLOG_URL%", get_bloginfo('url'), $template_email_body); |
|---|
| | 163 | $template_email_body = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_email_body); |
|---|
| | 164 | |
|---|
| | 165 | // Template For E-Mail Alternate Body |
|---|
| | 166 | $template_email_bodyalt = stripslashes(get_settings('email_template_bodyalt')); |
|---|
| | 167 | $template_email_bodyalt = str_replace("%EMAIL_YOUR_NAME%", $yourname, $template_email_bodyalt); |
|---|
| | 168 | $template_email_bodyalt = str_replace("%EMAIL_YOUR_EMAIL%", $youremail, $template_email_bodyalt); |
|---|
| | 169 | $template_email_bodyalt = str_replace("%EMAIL_YOUR_REMARKS%", $yourremarks, $template_email_bodyalt); |
|---|
| | 170 | $template_email_bodyalt = str_replace("%EMAIL_FRIEND_NAME%", $friendname, $template_email_bodyalt); |
|---|
| | 171 | $template_email_bodyalt = str_replace("%EMAIL_FRIEND_EMAIL%", $friendemail, $template_email_bodyalt); |
|---|
| | 172 | $template_email_bodyalt = str_replace("%EMAIL_POST_TITLE%", $post_title, $template_email_bodyalt); |
|---|
| | 173 | $template_email_bodyalt = str_replace("%EMAIL_POST_AUTHOR%", $post_author, $template_email_bodyalt); |
|---|
| | 174 | $template_email_bodyalt = str_replace("%EMAIL_POST_DATE%", $post_date, $template_email_bodyalt); |
|---|
| | 175 | $template_email_bodyalt = str_replace("%EMAIL_POST_CATEGORY%", $post_category_alt, $template_email_bodyalt); |
|---|
| | 176 | $template_email_bodyalt = str_replace("%EMAIL_POST_EXCERPT%", $post_excerpt, $template_email_bodyalt); |
|---|
| | 177 | $template_email_bodyalt = str_replace("%EMAIL_POST_CONTENT%", $post_content_alt, $template_email_bodyalt); |
|---|
| | 178 | $template_email_bodyalt = str_replace("%EMAIL_BLOG_NAME%", get_bloginfo('name'), $template_email_bodyalt); |
|---|
| | 179 | $template_email_bodyalt = str_replace("%EMAIL_BLOG_URL%", get_bloginfo('url'), $template_email_bodyalt); |
|---|
| | 180 | $template_email_bodyalt = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_email_bodyalt); |
|---|
| | 181 | |
|---|
| | 182 | // PHP Mailer Variables |
|---|
| | 183 | $mail = new PHPMailer(); |
|---|
| | 184 | $mail->From = $youremail; |
|---|
| | 185 | $mail->FromName = $yourname; |
|---|
| | 186 | foreach($friends as $friend) { |
|---|
| | 187 | $mail->AddAddress($friend['email'], $friend['name']); |
|---|
| | 188 | } |
|---|
| | 189 | $mail->Username = $smtp_info[0]; |
|---|
| | 190 | $mail->Password = $smtp_info[1]; |
|---|
| | 191 | $mail->Host = $smtp_info[2]; |
|---|
| | 192 | $mail->Mailer = get_settings('email_mailer'); |
|---|
| | 193 | $mail->ContentType = get_settings('email_contenttype'); |
|---|
| | 194 | $mail->Subject = $template_email_subject; |
|---|
| | 195 | if(get_settings('email_contenttype') == 'text/plain') { |
|---|
| | 196 | $mail->Body = $template_email_bodyalt; |
|---|
| | 197 | } else { |
|---|
| | 198 | $mail->Body = $template_email_body; |
|---|
| | 199 | $mail->AltBody = $template_email_bodyalt; |
|---|
| | 200 | } |
|---|
| | 201 | // Send The Mail |
|---|
| | 202 | if($mail->Send()) { |
|---|
| | 203 | $email_status = __('Success'); |
|---|
| | 204 | get_header(); |
|---|
| | 205 | // Template For Sent Successfully |
|---|
| | 206 | $template_email_sentsuccess = stripslashes(get_settings('email_template_sentsuccess')); |
|---|
| | 207 | $template_email_sentsuccess = str_replace("%EMAIL_FRIEND_NAME%", $friendname, $template_email_sentsuccess); |
|---|
| | 208 | $template_email_sentsuccess = str_replace("%EMAIL_FRIEND_EMAIL%", $friendemail, $template_email_sentsuccess); |
|---|
| | 209 | $template_email_sentsuccess = str_replace("%EMAIL_POST_TITLE%", $post_title, $template_email_sentsuccess); |
|---|
| | 210 | $template_email_sentsuccess = str_replace("%EMAIL_BLOG_NAME%", get_bloginfo('name'), $template_email_sentsuccess); |
|---|
| | 211 | $template_email_sentsuccess = str_replace("%EMAIL_BLOG_URL%", get_bloginfo('url'), $template_email_sentsuccess); |
|---|
| | 212 | $template_email_sentsuccess = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_email_sentsuccess); |
|---|
| | 213 | echo $template_email_sentsuccess; |
|---|
| | 214 | get_sidebar(); |
|---|
| | 215 | get_footer(); |
|---|
| | 216 | |
|---|
| | 217 | // If There Is Error Sending |
|---|
| | 218 | } else { |
|---|
| | 219 | if($yourremarks == 'N/A') { $yourremarks = ''; } |
|---|
| | 220 | $email_status = __('Failed'); |
|---|
| | 221 | // Template For Sent Failed |
|---|
| | 222 | $template_email_sentfailed = stripslashes(get_settings('email_template_sentfailed')); |
|---|
| | 223 | $template_email_sentfailed = str_replace("%EMAIL_FRIEND_NAME%", $friendname, $template_email_sentfailed); |
|---|
| | 224 | $template_email_sentfailed = str_replace("%EMAIL_FRIEND_EMAIL%", $friendemail, $template_email_sentfailed); |
|---|
| | 225 | $template_email_sentfailed = str_replace("%EMAIL_ERROR_MSG%", $mail->ErrorInfo, $template_email_sentfailed); |
|---|
| | 226 | $template_email_sentfailed = str_replace("%EMAIL_POST_TITLE%", $post_title, $template_email_sentfailed); |
|---|
| | 227 | $template_email_sentfailed = str_replace("%EMAIL_BLOG_NAME%", get_bloginfo('name'), $template_email_sentfailed); |
|---|
| | 228 | $template_email_sentfailed = str_replace("%EMAIL_BLOG_URL%", get_bloginfo('url'), $template_email_sentfailed); |
|---|
| | 229 | $template_email_sentfailed = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_email_sentfailed); |
|---|
| | 230 | } |
|---|
| | 231 | |
|---|
| | 232 | // Logging |
|---|
| | 233 | $email_yourname = addslashes($yourname); |
|---|
| | 234 | $email_youremail = addslashes($youremail); |
|---|
| | 235 | $email_yourremarks = addslashes($yourremarks); |
|---|
| | 236 | $email_postid = email_id(); |
|---|
| | 237 | $email_posttitle = addslashes($post_title); |
|---|
| | 238 | $email_timestamp = current_time('timestamp'); |
|---|
| | 239 | $email_ip = get_email_ipaddress(); |
|---|
| | 240 | $email_host = gethostbyaddr($email_ip); |
|---|
| | 241 | foreach($friends as $friend) { |
|---|
| | 242 | $email_friendname = addslashes($friend['name']); |
|---|
| | 243 | $email_friendemail = addslashes($friend['email']); |
|---|
| | 244 | $log_email_sending = email_log("0, '$email_yourname', '$email_youremail', '$email_yourremarks', '$email_friendname', '$email_friendemail', $email_postid, '$email_posttitle', '$email_timestamp', '$email_ip', '$email_host', '$email_status'"); |
|---|
| | 245 | if(!$log_email_sending) { |
|---|
| | 246 | die('Error Logging E-Mail Sending'); |
|---|
| | 247 | } |
|---|
| | 248 | } |
|---|
| | 249 | |
|---|
| | 250 | // If E-Mail Sent Successfully, We No Not Need The E-Mail Form Anymore |
|---|
| | 251 | if($email_status == __('Success')) { |
|---|
| | 252 | exit(); |
|---|
| | 253 | } |
|---|
| 129 | | $template_email_error = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_email_error); |
|---|
| 130 | | echo $template_email_error; |
|---|
| 131 | | get_sidebar(); |
|---|
| 132 | | get_footer(); |
|---|
| 133 | | exit(); |
|---|
| 134 | | } |
|---|
| 135 | | |
|---|
| 136 | | // Variables Variables Variables |
|---|
| 137 | | $post_title = email_title(); |
|---|
| 138 | | $post_author = the_author('', false); |
|---|
| 139 | | $post_date = the_date('jS F Y @ H:i', '', '', false); |
|---|
| 140 | | $post_category = email_category(); |
|---|
| 141 | | $post_category_alt = strip_tags($post_category); |
|---|
| 142 | | $post_excerpt = get_the_excerpt(); |
|---|
| 143 | | $post_content .= email_content(); |
|---|
| 144 | | $post_content_alt = email_content_alt(); |
|---|
| 145 | | |
|---|
| 146 | | // Template For E-Mail Subject |
|---|
| 147 | | $template_email_subject = stripslashes(get_settings('email_template_subject')); |
|---|
| 148 | | $template_email_subject = str_replace("%EMAIL_YOUR_NAME%", $yourname, $template_email_subject); |
|---|
| 149 | | $template_email_subject = str_replace("%EMAIL_YOUR_EMAIL%", $youremail, $template_email_subject); |
|---|
| 150 | | $template_email_subject = str_replace("%EMAIL_POST_TITLE%", $post_title, $template_email_subject); |
|---|
| 151 | | $template_email_subject = str_replace("%EMAIL_POST_AUTHOR%", $post_author, $template_email_subject); |
|---|
| 152 | | $template_email_subject = str_replace("%EMAIL_POST_DATE%", $post_date, $template_email_subject); |
|---|
| 153 | | $template_email_subject = str_replace("%EMAIL_POST_CATEGORY%", $post_category_alt, $template_email_subject); |
|---|
| 154 | | $template_email_subject = str_replace("%EMAIL_BLOG_NAME%", get_bloginfo('name'), $template_email_subject); |
|---|
| 155 | | $template_email_subject = str_replace("%EMAIL_BLOG_URL%", get_bloginfo('url'), $template_email_subject); |
|---|
| 156 | | $template_email_subject = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_email_subject); |
|---|
| 157 | | |
|---|
| 158 | | // Template For E-Mail Body |
|---|
| 159 | | $template_email_body = stripslashes(get_settings('email_template_body')); |
|---|
| 160 | | $template_email_body = str_replace("%EMAIL_YOUR_NAME%", $yourname, $template_email_body); |
|---|
| 161 | | $template_email_body = str_replace("%EMAIL_YOUR_EMAIL%", $youremail, $template_email_body); |
|---|
| 162 | | $template_email_body = str_replace("%EMAIL_YOUR_REMARKS%", $yourremarks, $template_email_body); |
|---|
| 163 | | $template_email_body = str_replace("%EMAIL_FRIEND_NAME%", $friendname, $template_email_body); |
|---|
| 164 | | $template_email_body = str_replace("%EMAIL_FRIEND_EMAIL%", $friendemail, $template_email_body); |
|---|
| 165 | | $template_email_body = str_replace("%EMAIL_POST_TITLE%", $post_title, $template_email_body); |
|---|
| 166 | | $template_email_body = str_replace("%EMAIL_POST_AUTHOR%", $post_author, $template_email_body); |
|---|
| 167 | | $template_email_body = str_replace("%EMAIL_POST_DATE%", $post_date, $template_email_body); |
|---|
| 168 | | $template_email_body = str_replace("%EMAIL_POST_CATEGORY%", $post_category, $template_email_body); |
|---|
| 169 | | $template_email_body = str_replace("%EMAIL_POST_EXCERPT%", $post_excerpt, $template_email_body); |
|---|
| 170 | | $template_email_body = str_replace("%EMAIL_POST_CONTENT%", $post_content, $template_email_body); |
|---|
| 171 | | $template_email_body = str_replace("%EMAIL_BLOG_NAME%", get_bloginfo('name'), $template_email_body); |
|---|
| 172 | | $template_email_body = str_replace("%EMAIL_BLOG_URL%", get_bloginfo('url'), $template_email_body); |
|---|
| 173 | | $template_email_body = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_email_body); |
|---|
| 174 | | |
|---|
| 175 | | // Template For E-Mail Alternate Body |
|---|
| 176 | | $template_email_bodyalt = stripslashes(get_settings('email_template_bodyalt')); |
|---|
| 177 | | $template_email_bodyalt = str_replace("%EMAIL_YOUR_NAME%", $yourname, $template_email_bodyalt); |
|---|
| 178 | | $template_email_bodyalt = str_replace("%EMAIL_YOUR_EMAIL%", $youremail, $template_email_bodyalt); |
|---|
| 179 | | $template_email_bodyalt = str_replace("%EMAIL_YOUR_REMARKS%", $yourremarks, $template_email_bodyalt); |
|---|
| 180 | | $template_email_bodyalt = str_replace("%EMAIL_FRIEND_NAME%", $friendname, $template_email_bodyalt); |
|---|
| 181 | | $template_email_bodyalt = str_replace("%EMAIL_FRIEND_EMAIL%", $friendemail, $template_email_bodyalt); |
|---|
| 182 | | $template_email_bodyalt = str_replace("%EMAIL_POST_TITLE%", $post_title, $template_email_bodyalt); |
|---|
| 183 | | $template_email_bodyalt = str_replace("%EMAIL_POST_AUTHOR%", $post_author, $template_email_bodyalt); |
|---|
| 184 | | $template_email_bodyalt = str_replace("%EMAIL_POST_DATE%", $post_date, $template_email_bodyalt); |
|---|
| 185 | | $template_email_bodyalt = str_replace("%EMAIL_POST_CATEGORY%", $post_category_alt, $template_email_bodyalt); |
|---|
| 186 | | $template_email_bodyalt = str_replace("%EMAIL_POST_EXCERPT%", $post_excerpt, $template_email_bodyalt); |
|---|
| 187 | | $template_email_bodyalt = str_replace("%EMAIL_POST_CONTENT%", $post_content_alt, $template_email_bodyalt); |
|---|
| 188 | | $template_email_bodyalt = str_replace("%EMAIL_BLOG_NAME%", get_bloginfo('name'), $template_email_bodyalt); |
|---|
| 189 | | $template_email_bodyalt = str_replace("%EMAIL_BLOG_URL%", get_bloginfo('url'), $template_email_bodyalt); |
|---|
| 190 | | $template_email_bodyalt = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_email_bodyalt); |
|---|
| 191 | | |
|---|
| 192 | | // PHP Mailer Variables |
|---|
| 193 | | $mail = new PHPMailer(); |
|---|
| 194 | | $mail->From = $youremail; |
|---|
| 195 | | $mail->FromName = $yourname; |
|---|
| 196 | | foreach($friends as $friend) { |
|---|
| 197 | | $mail->AddAddress($friend['email'], $friend['name']); |
|---|
| 198 | | } |
|---|
| 199 | | $mail->Username = $smtp_info[0]; |
|---|
| 200 | | $mail->Password = $smtp_info[1]; |
|---|
| 201 | | $mail->Host = $smtp_info[2]; |
|---|
| 202 | | $mail->Mailer = get_settings('email_mailer'); |
|---|
| 203 | | $mail->ContentType = get_settings('email_contenttype'); |
|---|
| 204 | | $mail->Subject = $template_email_subject; |
|---|
| 205 | | if(get_settings('email_contenttype') == 'text/plain') { |
|---|
| 206 | | $mail->Body = $template_email_bodyalt; |
|---|
| 207 | | } else { |
|---|
| 208 | | $mail->Body = $template_email_body; |
|---|
| 209 | | $mail->AltBody = $template_email_bodyalt; |
|---|
| 210 | | } |
|---|
| 211 | | // Send The Mail |
|---|
| 212 | | if($mail->Send()) { |
|---|
| 213 | | $email_status = __('Success'); |
|---|
| 214 | | get_header(); |
|---|
| 215 | | // Template For Sent Successfully |
|---|
| 216 | | $template_email_sentsuccess = stripslashes(get_settings('email_template_sentsuccess')); |
|---|
| 217 | | $template_email_sentsuccess = str_replace("%EMAIL_FRIEND_NAME%", $friendname, $template_email_sentsuccess); |
|---|
| 218 | | $template_email_sentsuccess = str_replace("%EMAIL_FRIEND_EMAIL%", $friendemail, $template_email_sentsuccess); |
|---|
| 219 | | $template_email_sentsuccess = str_replace("%EMAIL_POST_TITLE%", $post_title, $template_email_sentsuccess); |
|---|
| 220 | | $template_email_sentsuccess = str_replace("%EMAIL_BLOG_NAME%", get_bloginfo('name'), $template_email_sentsuccess); |
|---|
| 221 | | $template_email_sentsuccess = str_replace("%EMAIL_BLOG_URL%", get_bloginfo('url'), $template_email_sentsuccess); |
|---|
| 222 | | $template_email_sentsuccess = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_email_sentsuccess); |
|---|
| 223 | | echo $template_email_sentsuccess; |
|---|
| 224 | | get_sidebar(); |
|---|
| 225 | | get_footer(); |
|---|
| 226 | | |
|---|
| 227 | | // If There Is Error Sending |
|---|
| 228 | | } else { |
|---|
| 229 | | $email_status = __('Failed'); |
|---|
| 230 | | get_header(); |
|---|
| 231 | | // Template For Sent Failed |
|---|
| 232 | | $template_email_sentfailed = stripslashes(get_settings('email_template_sentfailed')); |
|---|
| 233 | | $template_email_sentfailed = str_replace("%EMAIL_FRIEND_NAME%", $friendname, $template_email_sentfailed); |
|---|
| 234 | | $template_email_sentfailed = str_replace("%EMAIL_FRIEND_EMAIL%", $friendemail, $template_email_sentfailed); |
|---|
| 235 | | $template_email_sentfailed = str_replace("%EMAIL_ERROR_MSG%", $mail->ErrorInfo, $template_email_sentfailed); |
|---|
| 236 | | $template_email_sentfailed = str_replace("%EMAIL_POST_TITLE%", $post_title, $template_email_sentfailed); |
|---|
| 237 | | $template_email_sentfailed = str_replace("%EMAIL_BLOG_NAME%", get_bloginfo('name'), $template_email_sentfailed); |
|---|
| 238 | | $template_email_sentfailed = str_replace("%EMAIL_BLOG_URL%", get_bloginfo('url'), $template_email_sentfailed); |
|---|
| 239 | | $template_email_sentfailed = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_email_sentfailed); |
|---|
| 240 | | echo $template_email_sentfailed; |
|---|
| 241 | | get_sidebar(); |
|---|
| 242 | | get_footer(); |
|---|
| 243 | | } |
|---|
| 244 | | |
|---|
| 245 | | // Logging |
|---|
| 246 | | $email_yourname = addslashes($yourname); |
|---|
| 247 | | $email_youremail = addslashes($youremail); |
|---|
| 248 | | $email_yourremarks = addslashes($yourremarks); |
|---|
| 249 | | $email_postid = email_id(); |
|---|
| 250 | | $email_posttitle = addslashes($post_title); |
|---|
| 251 | | $email_timestamp = current_time('timestamp'); |
|---|
| 252 | | $email_ip = get_email_ipaddress(); |
|---|
| 253 | | $email_host = gethostbyaddr($email_ip); |
|---|
| 254 | | foreach($friends as $friend) { |
|---|
| 255 | | $email_friendname = addslashes($friend['name']); |
|---|
| 256 | | $email_friendemail = addslashes($friend['email']); |
|---|
| 257 | | $log_email_sending = email_log("0, '$email_yourname', '$email_youremail', '$email_yourremarks', '$email_friendname', '$email_friendemail', $email_postid, '$email_posttitle', '$email_timestamp', '$email_ip', '$email_host', '$email_status'"); |
|---|
| 258 | | if(!$log_email_sending) { |
|---|
| 259 | | die('Error Logging E-Mail Sending'); |
|---|
| 260 | | } |
|---|
| 261 | | } |
|---|
| 262 | | exit(); |
|---|
| 263 | | } |
|---|
| 264 | | } |
|---|
| 265 | | } |
|---|
| | 262 | $template_email_error = str_replace("%EMAIL_PERMALINK%", get_permalink(), $template_email_error); |
|---|
| | 263 | } // End if(empty($error)) |
|---|
| | 264 | } // End while (have_posts()) |
|---|
| | 265 | } // End if(have_posts()) |
|---|
| | 266 | } // End if(!empty($did_email)) |
|---|