WordPress.org

Ready to get started?Download WordPress

Forums

MailPoet Newsletters
[resolved] How to change notification email text (11 posts)

  1. jcowdrey
    Member
    Posted 1 year ago #

    Great Plugin!

    ...but I need to change the text of the notification email. Can someone point me in the right direction?

    Currently, it says:

    -----------------
    Howdy,

    The subscriber xxxxxxxxx@xxxxxxxx.com has just subscribed to your list "Newsletter".

    Cheers,

    The Wysija Plugin
    -----------------

    Thanks for your help!
    J

    http://wordpress.org/plugins/wysija-newsletters/

  2. ahuggup86
    Member
    Posted 1 year ago #

    this is in the settings, on signup confirmation tab you can change info there

  3. jcowdrey
    Member
    Posted 1 year ago #

    You can modify the confirmation email there, but not the notification email.

    I need to modify the email that's sent to admin, not the email sent to the person subscribing.

    Any other thoughts?

  4. MailPoet Staff
    Member
    Plugin Author

    Posted 1 year ago #

    Hey J!

    We unfortunately don't have the ability to allow you to easily do this, without hacking our plugin.

    In the future, we're thinking about allowing this. Not high priority at the moment!

  5. jcowdrey
    Member
    Posted 1 year ago #

    Thanks! I thought that was the case...

    Is it possible that you can point me to the right file? I can hack it myself...it would just save me time from having to look for it.

    Thanks for the reply!

  6. Ben
    Member
    Plugin Author

    Posted 11 months ago #

    Hey J,

    It's all in the file : wysija-newsletters/helpers/user.php in the _notify() function

    Hope this helps,
    Cheers,
    Ben

  7. milos.zivkov
    Member
    Posted 7 months ago #

    Hello guys,

    in wysija-newsletters/helpers/user.php found the place where he starts to generate notification email.

    I want to add the NAME of subscribed user to notification email, cause i have it as a requird field on signup form on web site. Don't know the variable name, of Name field.

    %1$s - only gets the registered email. I want to add name of registered user in notification email.

    $body=sprintf(__('Howdy,'."\n\n".'The subscriber %1$s has just subscribed to your list "%2$s".'."\n\n".'Cheers,'."\n\n".'The MailPoet Plugin',WYSIJA),"".$email."","".implode(',',$list_names)."");

  8. Ben
    Member
    Plugin Author

    Posted 6 months ago #

    Hello Milos,

    Here is a way to get your subscriber data based on the $email variable:

    $model_user = WYSIJA::get('user','model');
    $subscriber = $model_user->getOne(false,array('email' => $email));
    echo $subscriber['firstname'];

    Hope this helps,
    Cheers,
    Ben

  9. suvendra
    Member
    Posted 6 months ago #

    Hello Ben,

    Tried the code, Its returning the following error

    Column email does not exist in model : WYSIJA_model_user_list

    I am using yahoo smallbusiness as my webhost so can't access the database to see the fields in table.

    any help will be appreciated.

    Thanks in advanced
    Suvendra

  10. suvendra
    Member
    Posted 6 months ago #

    Sorry for bothering My programming mistakes, worked it out.

    Thanks for the great plugin.

  11. akedv
    Member
    Posted 6 months ago #

    +1 for modfiy option of notification email, please :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic