Adding post content to email on button-click
-
I’ve used a simple button with a email function to send a particular article to someone. At the moment it looks something like this…
global $post; $title = htmlspecialchars($post->post_title); $subject = htmlspecialchars(get_bloginfo('name')).' : '.$title; $body = 'Kyk gerus na hierdie artikel: '.$title.'('.get_permalink($post->ID).').'; $email_article = '<a rel="nofollow" href="mailto:?subject='.rawurlencode($subject).'&body='.rawurlencode($body).'" title="'.$text.' : '.$title.'">'.$text;
I thought that using the_content() would add the post’s text automatically to the email. It didn’t work so I guess that since the title and the link can be transferred there must be some function that would also extract the contents into a email.
Is there something like that or is this even possible?
Thank you
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding post content to email on button-click’ is closed to new replies.