[Resolved] How to change notification email text
…but I need to change the text of the notification email. Can someone point me in the right direction?
Currently, it says:
The subscriber email@example.com has just subscribed to your list “Newsletter”.
The Wysija Plugin
Thanks for your help!
this is in the settings, on signup confirmation tab you can change info there
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?
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!
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!
It’s all in the file : wysija-newsletters/helpers/user.php in the _notify() function
Hope this helps,
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).”“);
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,
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
Sorry for bothering My programming mistakes, worked it out.
Thanks for the great plugin.
- The topic ‘[Resolved] How to change notification email text’ is closed to new replies.