Help with Welcome Emails
Posted
#5886
(In Topic #1225)
I'm having some real difficulties figuring out how to get Welcome Emails to work. I have newletters enabled, so the functionality for tempcode (or parameters) should work. In particular, I would like to have the Welcome Email personalized so that the name (or firstname) will appear.
For example, I would like —
Dear {name},
to have the {name} parameter be changed to the name of the person receiving the email. This is not happening. It appears just as entered. I would also like to have parameters for {username} and {password} filled in properly as well. But again, no parameters are getting filled in…so I'm assuming they are not getting passed?
Another problem I'm noticing is that when I preview the body of the email, I am getting two error messages:
I looked inside the newsletter.ini and these two language strings do exist, so I have no idea why I'm getting these messages. But they are messing up the bottom of the emails where the user should be able to opt out of the subscription. Any ideas why this is happening?
When previewing the Welcome email I am receiving the emails via SMTP but without the parameters variables being replaced.
Thanks in advance for any assistance you can offer. Much appreciated.
Best,
Christopher
Last edit: by cwdean
Posted
This looks like a bug, and possibly a misunderstanding. I'll look into it soon for you.
Posted
Thanks for the quick response. If there is anything I can do to help with testing any changes or fixes, please let me know. I'm happy to help any way that I can.
I'm currently setting up my Homeowners Association community we site using Composr and was looking forward to using the Welcome Email capability to introduce new members to the site and provide them with a temporary password that they would need to change upon first log in. That's the intent anyway
Thanks for you help and I look forward to hearing what you find out (or come up with as a fix).
Best regards,
Christopher
P.S. Should I open a ticket for this? Or do you have that covered? Thanks again!
Posted
Automated fix message
This issue has now been filed on the tracker as issue #4204, with a fix.Chris Graham said
Should be working now.
Somehow the .htaccess file was blank.
I restored from a backup, and I found I had to comment outfrom my backup, based on your current server configuration.Code
Options +FollowSymLinks
So it seems somehow something wiped that file or the file was intentionally wiped when debugging it causing an internal server error message due to FollowSymLinks no longer being valid for .htaccess override in your Apache configuration.
Best,
Chris
Posted
Whilst I was fixing all this I part-solved your issue needing to have passwords in there.
You can now do {m_pass_hash_salted}.
It will just give you the hash, but I'll discuss further in your other topic (
Posted
I've downloaded the hotfix and will check it out later today.
Posted
An error has occurred
A source code file is missing/corrupt/incompatible: cns_welcome_emails... "include() [<a href='http://php.net/manual/en/function.include.php'>function.include.php</a>]: Failed opening 'sources/cns_welcome_emails.php' for inclusion (include_path='.:/usr/local/php73/pear')" (sources/cns_welcome_emails.php or an overridden equivalent to this path) (version: 10.0.30, PHP version: 7.3.16, URL: /data/preview.php?page=admin_cns_welcome_emails&type=_edit)
Looks like code is looking for cns_welcome_emails.php in the sources folder. I don't see any such file in that folder (not prior to updating or afterward. The fix wants that file to be located in sources/hooks/systems/preview.
Any I overlooking something or done something incorrectly? As far as I can tell, I've placed the files in the correct directories and ensured that permissions are still set properly (0644).
Thoughts?
Posted
It's here and I'll update the fix.
https://gitlab.com/composr-foundation/composr/-/raw/master/sources/cns_welcome_emails.php
Posted
Ah, sorry, it must have not made it into the hot-fix.
It's here and I'll update the fix.
https://gitlab.com/composr-foundation/composr/-/raw/master/sources/cns_welcome_emails.php
That fixed it
Quick question: the fix now looks like this, which is fine:
You are receiving this newsletter because you have a member account set to “Receive newsletters and other site updates”. You can change your settings at: https://torhoa.org/site/index.php?page=members&type=view#tab__edit
I don't see that option on Edit/Settings tab. And since this is a Welcome email, the term 'newsletter' may be confusing. I don't think it's that big a deal, but the link to change your settings probably needs to be clear. Is that link correct? because I'm not seeing "Receive newsletters and other site updates" there.
Posted
Automated fix message
This issue has now been filed on the tracker as issue #4210, with a fix.RoisinR said
We have a online business which makes us keep our website updated with new content to make it look interesting to the audience. We have been checking to make sure every content looks and works fine where ever it is viewed but recently few customers have been complaining that our website is unreabeable on mobile but its fine if they view it on desktop screen. We are unable to figure out what could cause this issue or if is it something due to the type of cms we are using. Does anyone know what could be causing this issue and if it is due to the cms we are using or something else?Thanks.
Posted
If the only correction made was to add the "sources/cns_welcome_emails.php" file then I was able to download that file from gitlab and apply. That definitely fixed the Error I was getting.
However, I am now not receiving any Welcome emails
Does the Welcome email require the new account to be pre-validated in order to be sent? Trying to figure out how I got it to work the first time but not the second. Any thoughts or suggestions?
Thanks for all your help!
Posted
Automated fix message
This issue has now been filed on the tracker as issue #4211, with a fix.System said
This is a spacer post for a website comment topic. The content this topic relates to: Something strange happening when updating a member's profile page
Posted
I've implemented above a special case whereby immediate welcome e-mails will now ignore validation, as obviously staff can't handle validation in a zero time span.
Otherwise, the behaviour is now documented.
That said…
We have been discussing implementing the feature to simply send out an e-mail when you add the member, which hopefully bypasses any need for these kinds of welcome e-mail or validation e-mail workarounds.
Posted
Chris Graham said
Your suspicion was correct, it does respect validation.
I've implemented above a special case whereby immediate welcome e-mails will now ignore validation, as obviously staff can't handle validation in a zero time span.
Otherwise, the behaviour is now documented.
That said…
We have been discussing implementing the feature to simply send out an e-mail when you add the member, which hopefully bypasses any need for these kinds of welcome e-mail or validation e-mail workarounds.
From “Post #6613”, 5th Jan 2021
Thanks for confirming my suspicion. I'm glad you implemented a special case as I did find that behavior unusual, because as you state, 'staff can't handle validation in a zero time span'. is that 'fix' available for download?
Yes, we are definitely continuing to work out the details for sending an email when you add a member (see my latest response).
Posted
Posted
Chris Graham said
The link to the fix was posted above (0004211: Welcome e-mails should go out if set to immediate even if validation not happened - Composr CMS feature tracker).
From “Post #6619”, 6th Jan 2021
Perfect. Thanks Chris. I'll check this out shortly.
0 guests and 0 members have recently viewed this.
