# Automatic email of PDF reports to a user group

**URL:** <https://community.dhis2.org/t/automatic-email-of-pdf-reports-to-a-user-group/19672>\
**Category:** Support - Assistance technique\
**Created:** [28 May 2013 08:25 UTC](https://community.dhis2.org/t/automatic-email-of-pdf-reports-to-a-user-group/19672 "2013-05-28T08:25:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Knut\_Staring](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/knut_staring/32/32549_2.png) [@Knut\_Staring](https://community.dhis2.org/u/Knut_Staring)\
**Post date:** [28 May 2013 08:25 UTC](https://community.dhis2.org/t/automatic-email-of-pdf-reports-to-a-user-group/19672/1 "2013-05-28T08:25:49Z")

</div>

A requirement that has surfaced in several implementations is that one would like to be able to send emails to users with generated PDF reports as attachement.

Would this be a straightforward extension of current functionality?

> **···**
>
> –  
> Knut Staring
> 
> Dept. of Informatics, University of Oslo
> 
> +4791880522
> 
> [http://dhis2.org](http://dhis2.org)

---

<div class="post-metadata">

**Author:** ![Lars](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/lars/32/34166_2.png) [@Lars](https://community.dhis2.org/u/Lars)\
**Post date:** [28 May 2013 08:58 UTC](https://community.dhis2.org/t/automatic-email-of-pdf-reports-to-a-user-group/19672/2 "2013-05-28T08:58:30Z")

</div>

Hi,

to me it sounds more elegant to send a link to the PDF representation of the report inside DHIS. Ie. create some sort of report, get as PDF and paste the URL into the message, then people can click and download that report.

[http://apps.dhis2.org/demo/dhis-web-reporting/exportTable.action?type=pdf&uid=RhHTMlQgW5h&pe=&ou=ImspTQPwCqd](http://apps.dhis2.org/demo/dhis-web-reporting/exportTable.action?type=pdf&uid=RhHTMlQgW5h&pe=&ou=ImspTQPwCqd)

Lars

> **···**
>
> On Tue, May 28, 2013 at 10:25 AM, Knut Staring [knutst@gmail.com](mailto:knutst@gmail.com) wrote:
> 
> > A requirement that has surfaced in several implementations is that one would like to be able to send emails to users with generated PDF reports as attachement.
> 
> > 
> 
> > Knut Staring
> 
> > Dept. of Informatics, University of Oslo
> 
> > +4791880522
> 
> > [http://dhis2.org](http://dhis2.org)
> 
> > ## Would this be a straightforward extension of current functionality?
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > Post to : [dhis2-devs@lists.launchpad.net](mailto:dhis2-devs@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)

---

<div class="post-metadata">

**Author:** ![Knut\_Staring](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/knut_staring/32/32549_2.png) [@Knut\_Staring](https://community.dhis2.org/u/Knut_Staring)\
**Post date:** [28 May 2013 09:09 UTC](https://community.dhis2.org/t/automatic-email-of-pdf-reports-to-a-user-group/19672/3 "2013-05-28T09:09:11Z")

</div>

I sort of agree, and was also thinking of using the WebAPI for reports  
[http://apps.dhis2.org/demo/api/reports/Kvg1AhYHM8Q/data](http://apps.dhis2.org/demo/api/reports/Kvg1AhYHM8Q/data)

I would also like to generate an SMS with that link.

However, this still requires them to log in (and remember username/password)

Also, it would be great to be able to not have to generate the PDF manually, but to automatically generate monthly reports - and with the parameters tailored to the user (primarily the user’s root orgunit)

Knut

> **···**
>
> On Tue, May 28, 2013 at 9:58 AM, Lars Helge Øverland [larshelge@gmail.com](mailto:larshelge@gmail.com) wrote:
> 
> > Hi,
> 
> > to me it sounds more elegant to send a link to the PDF representation of the report inside DHIS. Ie. create some sort of report, get as PDF and paste the URL into the message, then people can click and download that report.
> 
> > 
> 
> > [http://apps.dhis2.org/demo/dhis-web-reporting/exportTable.action?type=pdf&uid=RhHTMlQgW5h&pe=&ou=ImspTQPwCqd](http://apps.dhis2.org/demo/dhis-web-reporting/exportTable.action?type=pdf&uid=RhHTMlQgW5h&pe=&ou=ImspTQPwCqd)
> 
> > 
> 
> > Lars
> 
> > 
> 
> –  
> Knut Staring
> 
> Dept. of Informatics, University of Oslo
> 
> +4791880522
> 
> [http://dhis2.org](http://dhis2.org)
> 
> On Tue, May 28, 2013 at 10:25 AM, Knut Staring [knutst@gmail.com](mailto:knutst@gmail.com) wrote:
> 
> > A requirement that has surfaced in several implementations is that one would like to be able to send emails to users with generated PDF reports as attachement.
> 
> > 
> 
> > Knut Staring
> 
> > Dept. of Informatics, University of Oslo
> 
> > +4791880522
> 
> > [http://dhis2.org](http://dhis2.org)
> 
> > ## Would this be a straightforward extension of current functionality?
> 
> > 
> 
> > * * *
> > 
> > Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > Post to : [dhis2-devs@lists.launchpad.net](mailto:dhis2-devs@lists.launchpad.net)
> > 
> > Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
> > 
> > More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
