Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Newsletter module sends empty email

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1439 Views
  • _Vince
    Avatar
    Community Member
    158 Posts

    Newsletter module sends empty email Link to this post

    I have installed the stable version of the Newsletter module.

    I have created a newsletter type.
    I have created a newsletter draft for that type. I've used the subscription email that comes with the module as a model but I've also adapted the one shown in the documentation.

    The template I've created shows up in the drop down list.

    I have created a mailing list (manually, but still from within the CMS)

    The created recipients show up on the list.

    Whenever I send myself a test email (to Outlook and/or Yahoo! accounts) the email arrives blank. The subject and the sender info are, however, correct.

    When I send the email to the mailing list, it also arrives blank.

    When I preview the email I've just sent (from the "sent items" folder), I can see the email. The template is correct.

    However, only the fields that relate to the email itself ($Subject, $Body/$Contents, etc) are parsed into the email. Stuff from the member table ($FirstName, etc) is not.

    I have also tried prefixing those fields with "Member."

    I deleted the stable version and tried everything again with the trunk version.

    No difference, it still sends out an empty email every time.

    Can anyone tell me what I'm doing wrong?

  • _Vince
    Avatar
    Community Member
    158 Posts

    Re: Newsletter module sends empty email Link to this post

    Ok, THIS part I get:

    When I preview the email I've just sent (from the "sent items" folder), I can see the email. The template is correct.

    However, only the fields that relate to the email itself ($Subject, $Body/$Contents, etc) are parsed into the email. Stuff from the member table ($FirstName, etc) is not.

    the CMS is not going to preview the same email template for everyone on the list, so it leaves out individual list-member details and just displays the common bits.

    Still can't understand why the email arrives empty though?

  • _Vince
    Avatar
    Community Member
    158 Posts

    Re: Newsletter module sends empty email Link to this post

    *bump*

    anybody..?

  • one2gamble
    Avatar
    Community Member
    30 Posts

    Re: Newsletter module sends empty email Link to this post

    have you sent it off to more than one account?

    You may want to check your template or just use the provided one on this site to see if its working. It doesnt really make sense that it would complete the send without the content unless some tags are wrong?

  • _Vince
    Avatar
    Community Member
    158 Posts

    Re: Newsletter module sends empty email Link to this post

    Yeah, I've sent it to myself, and to a mailing list of three accounts.

    Always arrives empty.

    As far as the tags go, I've tried changing the extension on the template and the template displays correctly as html. The data parsed in from the database is displayed as text ($FirstName, $Surname, etc).

    I've used both a renamed copy of the subscription email and an edited copy of the template shown in the documentation. They're both arriving blank.

    And no, it doesn't make sense that I seem to be the only guy with this problem , I'm sure it'll turn out be something really minor and stupid. But until then... the emails always arrive empty.

    1439 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.