eCard module for Gallery 2.0

22. Oktober 2005

eCard functionality is one of the top-requested features of Gallery 2.0 (see summary), its predecessor Gallery 1.x can do it and I need it for a customer. So I wrote a small plugin module.

It lets the user fill out his name/e-mail, the receipient’s name/e-mail and a short text and generates plain-text or HTML mails. Feel free to test it.

Download: g2-module-ecard.zip

Screenshot 1, Screenshot 2

21 Kommentare

  1. I want to send e-card to multiple e-mail address same time, (using single sending operation). What change should I make to what file?

  2. I left comments on the eCard module page on the Gallery2 website. I’m having trouble with the module. The image didn’t show at all in an HTML message, and the attachment has an underscore on the end of the fiule name when I sent it as a text email. However, now it’s not sending at all anymore, and I don’t know why.

  3. Amit:
    Currently this is not possible and not planned. My solution for this is „copy the text“ and click „send another eCard“ after sending. I’m not aware of any circumstance where sending more than 2 eCards with the same text makes sense (spamming all my friends with a „Merry Christmas“ eCard is not very nice)…

  4. Alan Skinner:
    Can you forward the broken mail to me? Did you make any changes to the template text?

  5. Hi Nico.

    Nice work on the ecard feature. Strange that it isnt a more intergral part of an otherwise fine gallery app.

    I am having some issues with the mail mime type i think. Maybe some settings i am not doing right.

    Anyways i posted this in more detail on the gallery2 forum, ( http://gallery.menalto.com/node/36557#comment-150625 )

    any help would be appreciated

  6. Hi Nico,

    Great Mod. I’m thinking of adding this module for myself, but I would also like to know who else is using it as the gallery will be open to all. Is there going to be a way of logging the email addresses of the senders.

  7. Steve:
    Logging the email addresses is not planned yet, as no other module in Gallery 2 does logging (e.g. the Commerce modules, PayPal etc.)
    Though this would be an interesting feature for a larger scale eCard provider…

  8. I also posted this in the Gallery2 forum…

    I installed this module and it works great!

    The only thing I would love to see is the ability to send to multiple recipients. Maybe a little dropdown that asks how many recipents and then add more input boxes. Or any other way you could make it work.

    Thanks!!

  9. I didnt mention that i am running mamp, apache mysql php on mac.

    I installed gallery2 and the ecard module on a linux machine and it worked then.

    I suppose this had something to do with the mailer in osx or apache in mamp…

    Anyways problem solved for now, but this maybe a issue with os x or mamp.

  10. Is there a way to restrict the eCard feature just to the administrator?

    Thanks!

  11. Addi:
    This problem may also occur with Windows, so I’ll take a look at Windows vs. Mac vs. Linux concerning base64 encoding and line breaks.

    S P:
    Not yet, but maybe I can implement the G2 permission system so you can set detailed permissions (e.g. only registered users, only admin, etc.).

    Master K:
    I consider multiple recipients not as important because there is the „send another eCard“ button/link and spamming 8 friends with all the same eCard is some kind of .. unpersonal …
    But maybe I’ll add let’s say 4 recipient fields so this can’t be abused to spam ~100 people.

  12. Leider funktioniert das E-Card-Modul nicht. Beim Ausstellen des Formulars wird bei der Vorschau kein Bild angezeigt. Die E-Mail wird verschickt, aber ohne jeglichen Inhalt und Verweis, das Bild von der HP abzuholen.
    Habe im Forum schon reingeschaut, aber leider nur alles auf Englisch. Mit dem bisschen Englisch komme ich dort leider nicht zurecht.

  13. I understand your SPAM concerns. I had not thought of that much. The option to have up to 4 recipients sounds like a good balance.

    Thanks,

  14. Just tried it, great pluin. THANKS for the efforts.

    shouldn’t the FROM field on the email match the FROM field you type in on the form? My card comes from „Gallery“ which no one will recognize and may get picked up by spam filter.

  15. I managed to add the permissions by making two changes to module.inc. By default, without assigning any permissions, only admins can use the feature now. If you wish I can send you the code snippets for you to improve upon.

    Regards,

    SP

  16. rob:
    You can un-set the „From“ property in the eCard Administration (G2 Site Admin). Then, the „From“ field from the eCard is used.
    This setting is for people who want the „From“ field to have a fixed value (e.g. gallery@example.org).

    SP:
    That would be nice, so I can integrate the changes into the main code base. Unfortunately I don’t have your e-mail address, I hope you are reading this…

  17. Hansdieter Rinow:
    Die Vorschaut zeigt noch kein Bild an, das ist richtig. Kommt aber noch.
    Warum die E-Mail kein Bild hat, weiß ich nicht, davon hätte ich gern eine Kopie, um zu sehen, ob evtl. am Mail-Format etwas nicht stimmt.

    Eine Möglichkeit, das Bild von der Homepage „abzuholen“ („Pickup“) gibt es noch nicht, das ist technisch etwas komplizierter, aber meiner Meinung durchaus sinnvoll. Wenn ich mal viel Zeit habe…

  18. @ Nico
    Vielen Dank fuer die Antwort.
    Inzwischen habe ich herausgefunden, dass die E-Card nur funktioniert wenn man die Einstellung in Menalto/allgemeine Einstellungen die E-Mailadresse auf SMTP/Mail-Server stellt und nicht nur ueber die Mail-Funktion von PHP. Sonst erhaelt man eine Mail ohne Inhalt.

  19. @Hansdieter Rinow

    Bei mir funktioniert das Modul über die PHP Mail-Funktion.

  20. Scheinbar kann man das Anzeigeproblem bei Outlook Express umgehen, in dem man die Mail nicht über den PHP Mailer verschickt grübel

  21. Anscheinend kann man das Outlook Express-Problem auch umgehen, indem man im Code, der die Mail-Headers erzeugt, „\r\n“ durch „\n“ ersetzt. Ich hoffe, das entspricht dem Mail-Standard und macht nirgends anders Probleme…

    Eine Version mit dieser Änderung (und den beiden neuen Übersetzungen) werde ich die nächsten Tage veröffentlichen.

Kommentare für diesen Beitrag sind derzeit deaktiviert.