_Dev_, sime, and KingMoore,

Great module! I love it. I have written an add-on module that looks for all instances of @href, turns the @href into a regular href, enters into a database who clicked on what link in the email, and then redirects the user to the destination url. In other words, the module provides click-through statistics that are found in ConstantContact and similar email marketing tools.

Please consider to put the following code on line #530 of mailout_send.inc, before '// Prepare the body as plain...':
$email_body = module_invoke_all('mailout_change_body','send',$email_body);

and the following code on line #623 of mailout_send.inc, before '// Send mail':
$final_email_body = module_invoke_all('mailout_change_body','cron',$final_email_body);

Someone who wants to do other substitutions, such as replacing user tokens, should be able to use the same hooks.

After you have added these 2 lines, I will publish the add-on module called mailout_links.

Thank you in advance for your consideration,
Ernst Diehl
diehl AT alum.mit.edu

Comments

DrDeth’s picture

This sounds like a nice feature to add.

sime’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Category: support » feature

Sounds good, mind if I put this to 6?