Will there be a Drupal 7 version of this module any time soon? I'd really like to keep it in my D7 site. Thanks!

Comments

webankit’s picture

+1

deggertsen’s picture

Subscribe

fultonchain’s picture

Subscribe

m.e.’s picture

Since I started this thread I thought I'd post my way of solving the problem, since Tell A Friend Node has apparently not ported to D7.

On my D7 site I was able to reproduce this functionality using the Webform and Mime Mail modules. (Mail System must also be installed.)

To create an e-card type e-mail, I followed these steps:

1. Design an e-card image ("ecard.png") and upload it to /sites/default/files.

2. Create a new webform whose content (in the EDIT tab) is this HTML: <img src="/sites/default/files/ecard.png">

3. In the webform's WEBFORM tab, add these components:

Your Name - textfield - required
Your Email Address - email - required - user email as default
Email of 1st Recipient - email - required
Email of 2nd Recipient - email - optional
.
.
.
Email of 5th Recipient - email - optional
Your Message - textarea - optional

(The number of recipient emails is really up to you; I allowed for five. Obviously the 1st one must be required, but the others are optional.)

4, Also in the webform's WEBFORM tab, create an e-mail for each recipient. (Unfortunately you must repeat the same process for each one - 5 in my case.) As an example, for the 1st recipient the values would be

Email To Address: component - email of 1st recipient
Email From Address: component - your email
Email From Name: component - your name
Email Subject - up to you

Email Template: this is made possible by Mime Mail. Mine is a custom template that goes something like this:

<html>
<head>
<link rel="stylesheet" type="text/css" href="http://www.example.com/sites/all/themes/yourtheme/style.css" />
</head>
<body>
<div class="ecard">  /* lets you add custom styles in style.css for the ecard */
<p>%value[your_message]</p>  /*inserts the message submitted by the sender*/
<p><a href="site URL"><img src="http://www.example.com/sites/default/files/ecard.png"></a><br /><br />Some text about your site can go here.</p>
/*displays your ecard image followed by some footer text*/
</div>
</body>
</html>

Alter the HTML to fit your own purposes.

On this same tab, none of the Included Email Values would be checked, because they are already incorporated in the header and the custom email template. Under more typical circumstances, these would be checked and the Webform module would email all submitted data (rather than an ecard image) in the body of the email.

5. Also in the WEBFORM tab, specify your form settings - what message to display after submission, who can submit the form, what the submit button should say, and so on.

Give it a test run and see what you think. I hope this solution helps!

m.e.

shadowdknight’s picture

Thanks for your solution,
since Im preparing ecard for non techie.
Im currently using webform markup component,
unfortunately Im unable to include it into email.
Any ideas?

THanks

peterx’s picture

Two options I use.

1/ The Print module has a print mail module for telling a friend. If your path is example/test_page, you create a link to printmail/example/test_page. They see a fixed form that sends an email through a template you can change. You get HTML mail you can decorate. There is logging of mail sent and a send rate limiter. The main limitation is the fixed form.

2/ Webform tell, http://drupal.org/sandbox/peter/1709870, connects a path to a Webform. If your path is example/test_page, you create a link to example/test_page/webform_tell. The form is a Webform and is as flexible as any other Webform. The path, id, and title from the original page are added into your Webform for display and any other use.

At this stage, you have to specify the Webform id in code, something to be changed soon. The default path will probably become example/test_page/webform_tell/webform_path_or_id.

You can configure any type of path structure in in the code if you do not want the default. Each path structure is a line in a hook_menu function and can be as complicated as you like.

mgifford’s picture

Thanks for the alternatives @peterx