ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Registration notifications to be "from" users email address

January 20, 2011 7:50pm

Subscribe [4]
  • #1 / Jan 20, 2011 7:50pm

    Mr Goongs

    30 posts

    Hello,

    Before I moved servers and upgraded to EE1.7 I had the registration notifications being sent out me with the new users email address in the ‘from’ line just like when a visitor uses the contact form it shows up in my email account as being from their email address.

    The php programmer I use set this up for me last time but i’m unable to get hold of him, does anyone know what I need to change to put it back how it was?

  • #2 / Jan 21, 2011 10:53am

    Ingmar

    29245 posts

    How are your users signing up, using the control panel? Are you using any third-party add-ons?

  • #3 / Jan 21, 2011 2:43pm

    Mr Goongs

    30 posts

    I have a custom registration page which users fill out. I don’t believe I’m using any 3rd party addons. I’m assuming he changed something in mod.email.php or another system file to achieve this.

    Thanks!

    edit: Also, In the notification emails now I’m not receiving the users information, only the EE tags such as {first_name} etc.

    edit2: actually, come to think of it, where is the notification email template located?

  • #4 / Jan 21, 2011 2:56pm

    Mr Goongs

    30 posts

    Ok, I’ve found the template for the new member email notification. At the top of the page it says:

    The following variables can be used:
    {name}
    {username}
    {email}
    {site_name}
    {control_panel_url}

    Why is EE not recognising my custom member profile fields since upgrading?

  • #5 / Jan 22, 2011 3:20pm

    Greg Salt

    3988 posts

    Hi Mr Goongs,

    It does sound like you were using a non-standard registration method. Please let us know which modules and extensions you have installed in this site. At Admin > Members and Groups > Membership Preferences what do you have for the Profile Triggering Word and at which URI do your users register for your site?

    Cheers

    Greg

  • #6 / Jan 23, 2011 5:37pm

    Mr Goongs

    30 posts

    Hello,

    The profile triggering word is ‘member’. I have email, member, forum, comment, emoticon, mailing list, pages, query, referer, rss, search, stats, trackback, and section modules installed.

    The registration page is a template page and thats working fine because the custom profile fields are being populated and are making it into the database without a problem. Its the email generation which is just processing the custom profile field tags as plain text.

    Also, the subject lines of the emails are_joined_up_with_underscores and on the contact form the subject has =c2=a3100 in front of it which it didn’t used to. I’ve narrowed the problem down to this section of code in core.email.php starting on line 834 in v1.7:

    $str = trim(str_replace($this->crlf, "\n", $str));
            
            if (preg_match('/[^\x00-\x7F]/', $str))
            {
                $str = trim(preg_replace('/^(.*)$/m', ' =?'.$PREFS->ini('charset').'?Q?$1?=', $str));
            }
            else
            {
                $str = trim($str);
            }
    
            if ($this->get_protocol() == 'mail')
            {
                // mail() will replace any control character besides CRLF with a space
                // so we need to force those line endings in that case
                $str = trim(str_replace("\n", "\r\n", $str));            
            }
            else
            {
                $str = trim(str_replace("\n", $this->crlf, $str));            
            }

    in 1.6.7 on line 843 I don’t have that problem and that section just reads:

    $str = trim(preg_replace('/^(.*)$/m', ' =?'.$PREFS->ini('charset').'?Q?$1?=', $str));

    So i’ve replaced it and it seems to have fixed the problems with the subject line. Is that a bug?

  • #7 / Jan 23, 2011 6:31pm

    Mr Goongs

    30 posts

    This issue is now resolved.

    Mr programmer man had added the custom profile fields to the mod.register.php file. Once i’d added it to the new register.php in 1.7 it started working again.

    Thank you!

  • #8 / Jan 24, 2011 9:09am

    Sue Crocker

    26054 posts

    Glad your programmer was able to help.

    Yes, the underscores in the titles is a bug in EE1.7.0

    Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases