Skip to main content
Topic: Registration emails (Read 1570 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Registration emails

It seems that there may be an issue with the emails sent to new members on my sites.
I have it set to email activation, and here's how the email shows up:

QuoteThank you for registering at All Points Web Hosting. Your username is
TestAccount. If you forget your password, you can reset it by visiting
[Link]( https://www.allpointswh.com/index.php?action=reminder )

Before you can login, you first need to activate your account. To do so,
please follow this link:

[Link]( https://www.allpointswh.com/index
.php?action=register;sa=activate;u=99;code=6Hi5EJpGTAuGjy )

Should you have any problems with activation, please visit
[Link]( https://www.allpointswh.com/index
.php?action=register;sa=activate;u=99 ) use the code "6Hi5EJpGTAuGjy".

Not sure why the activation links are getting spaced out by line break. The language file shows fine:

Code: [Select]
/**
@additional_params: resend_activate_message
REALNAME: The display name for the member receiving the email.
USERNAME:  The user name for the member receiving the email.
ACTIVATIONLINK:  The url link to activate the member's account.
ACTIVATIONCODE:  The code needed to activate the member's account.
ACTIVATIONLINKWITHOUTCODE: The url to the page where the activation code can be entered.
FORGOTPASSWORDLINK: The url to the "forgot password" page.
@description:
*/
$txt['resend_activate_message_subject'] = 'Welcome to {FORUMNAME}';
$txt['resend_activate_message_body'] = 'Thank you for registering at {FORUMNAME}. Your username is {USERNAME}. If you forget your password, you can reset it by visiting {FORGOTPASSWORDLINK}

Before you can login, you must first activate your account by selecting the following link:

{ACTIVATIONLINK}

Should you have any problems with the activation, please visit {ACTIVATIONLINKWITHOUTCODE} and enter the code "{ACTIVATIONCODE}".

{REGARDS}';

Re: Registration emails

Reply #1

That is usually the email client parsing BK, not the sender...

For example, in my pegasus client I get this link..

Quotehttps://www.elkarte.net/community/index.php?
action=notify;sa=unsubscribe;token=ABCD2_efgHIJklmNOpqrsTUvwXY

but in my Roundcube webmail interface I get...


FWIW, in your email link..

[Link]( https://www.allpointswh.com/index
.php?action=register;sa=activate;u=99;code=6ab5EJupiteruGjy
)


All one has to do is copy/paste the bolded text into the browser address bar, or, if the client allows, select the bolded text, and right-click for the menu, click "open as a hyperlink" or something similar..


// Deep inside every dilemma lies a solution that involves explosives //

Re: Registration emails

Reply #2

I use Gmail, and it seems that for some reason it shows up narrow.
I believe that is why they are getting cut off like that.
I was wondering if there might be a fix, like setting a minimum width for the emails.

Re: Registration emails

Reply #3

Quote from: Burke_Knight – I use Gmail, and it seems that for some reason it shows up narrow.
I believe that is why they are getting cut off like that.
I was wondering if there might be a fix, like setting a minimum width for the emails.

I can't help there, I don't use gmail. But, if I had to make a suggestion, that would be my fix   :grin::grin::grin:  

// Deep inside every dilemma lies a solution that involves explosives //

Re: Registration emails

Reply #4

Quote from: Burke_Knight – I use Gmail, and it seems that for some reason it shows up narrow.
I believe that is why they are getting cut off like that.
I was wondering if there might be a fix, like setting a minimum width for the emails.

You cannot do anything about this, really. HTML is not part of SMPT and the fact that people use HTML in E-Mails have been frowned upon by old timers ever since the first E-Mail with HTML was sent :)

E-Mail clients like Alpine and mutt etc. doesn't do very good rendering HTML "infested" E-Mails, for they do not have web engines nor JavaScript in them.

It's upto the E-Mail client program how the content is rendered.

Bottom usability tip for writing HTML E-Mails like the above is that you always should include the plain text hyperlinks along with the HTML ones. This way you ensure that people using CLI based E-Mail clients get them.
Stop Whining!

Re: Registration emails

Reply #5

Quote from: Vague Whiner – You cannot do anything about this, really. HTML is not part of SMPT and the fact that people use HTML in E-Mails have been frowned upon by old timers ever since the first E-Mail with HTML was sent :)

E-Mail clients like Alpine and mutt etc. doesn't do very good rendering HTML "infested" E-Mails, for they do not have web engines nor JavaScript in them.

There's no setting to either send HTML or plain text for registration emails, so I'm wondering if there was a way to edit the emails to be plain text.

Re: Registration emails

Reply #6

Can you view source on the email and put the contents here in code tags?

Redact the email address and other personal info but leave the contents if you could.

Re: Registration emails

Reply #7

Unfortunately, Gmail really makes that difficult.
When try, get a page full of gibberish, that have no way to find the contents of the email.
Oh well, let people do copy/paste if have to, but I did want to let know the issue, in case there may be a fix in the email controller or subs files.


Re: Registration emails

Reply #9

Took out what felt was needed to be removed for security purposes.
Looks like it was sent via plain text, not HTML: Content-Type: text/plain; charset=UTF-8

Code: [Select]
Delivered-To: 
Received: by 2002:a05:6358:7404:b0:e2:d70d:38a1 with SMTP id s4csp7827216rwg;
        Thu, 29 Dec 2022 14:30:15 -0800 (PST)
X-Google-Smtp-Source: AMrXdXvHOB9EUe9fU9Si/hcMjVaWyhEMLuOM+UfSaX6LjunpuBVzSebKpTl9du9mJmh5V5iLIQrA
X-Received: by 2002:a05:6402:f04:b0:46d:ca42:2e59 with SMTP id i4-20020a0564020f0400b0046dca422e59mr28480211eda.11.1672353015464;
        Thu, 29 Dec 2022 14:30:15 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1672353015; cv=none;
        d=google.com; s=arc-20160816;
        b=SSTrAnOMzXpOwtY9EcTMMJO0CSfNW4VN7sLLfdw8/clv3Bm9LD6GDra/CYs0aZVIRL
         yJxFYQIFdCo9NUjHFNQI9s7lgF8mNoKQe46zwtigcrcKEALk9DIMpI1fXaasc5u3ZXoY
         UMFRXT8GitCb6DNtSnw5oQRhj6A3p95f3KMyuztEkpSuYIugghoi2soTWtiSYPb0CGgd
         xYRCLKlXXpyiGx2mYhPK5LepWyflrhgZqVZcktfbbTQ60hsZpksTMQGr8Ldo/nOjxkrc
         DWRaxFJXNHBXtiX3vOrttLtcVmasGk2HYt5zCbzbXxUkom97AR2DcuINfUxxbCS/CJXx
         vTTA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=message-id:content-transfer-encoding:mime-version:date:from:subject
         :to;
        bh=7rmkbSHvsakf7w2sEcBq49HgLXeDAwQXhq2ams7r20c=;
        b=0xe875o5wiMpN5wY0DzZLBvwGUsQ3mp/rojIFMj5oVheJsYvbTwZmosRiIja4ychbV
         GY4+xGqyeTByR3Wxd0v+SuOM6NgmXP6VKCs+Tq/d7YeW4WghB2zZiZe2OKf07DfhEvEN
         c1qBeeDdEeRtnqG6roM1ej4cn0CckW4rt3YxYBU6FHoFOD/k276EW/y2t5LT59Rq4Elx
         k748qVsKWi7DKJRYRbQiOabiRnkJCWLfHDxcoKUmmwnKDdv3aICBNMVDMlNO0KOXwjii
         Egf+aM9cjs8bkdeipObC2KT/IxK6HkElXQSUbVsefztEXbvf0rxq10T64nLtZYTwlJB5
         A1rA==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 82.163.176.31 is neither permitted nor denied by domain of allpointswh.com) smtp.mailfrom=allpointswh.com
Return-Path: <allpointswh.com>
Received: from  ()
        by mx.google.com with ESMTPS id j8-20020aa7c0c8000000b00467960d3013si14598226edp.43.2022.12.29.14.30.15
        for <>
        (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 29 Dec 2022 14:30:15 -0800 (PST)
Received-SPF: neutral (google.com: 82.163.176.31 is neither permitted nor denied by domain of allpointswh.com) client-ip=82.163.176.31;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 82.163.176.31 is neither permitted nor denied by domain of allpointswh.com) smtp.mailfrom=allpointswh.com
Received: from scottjbr by  with local (Exim 4.94.2) (envelope-from <allpointswh.com>) id 1pB1Pi-000Eep-E8 for scottjb9276@gmail.com; Thu, 29 Dec 2022 17:30:14 -0500
To:
Subject: Welcome to All Points Web Hosting
X-PHP-Script: www.allpointswh.com/index.php for
X-PHP-Filename: allpointswh.com/index.php REMOTE_ADDR: 67.6.59.123
From: All Points Web Hosting <allpointswh.com>
Date: Thu, 29 Dec 2022 22:30:14 -0000
X-Mailer: ELK
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="ELK-28c69c00e41305d4993daa86e71fde43"
Content-Transfer-Encoding: 7bit
Message-ID: <fa356f999d47f071c4b78b35f40a15ed-@allpointswh.com>
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname -
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [1459 501] / [47 12]
X-AntiAbuse: Sender Address Domain - allpointswh.com
X-Get-Message-Sender-Via: : authenticated_id: from_h
X-Authenticated-Sender: : allpointswh.com
X-Source:
X-Source-Args:
X-Source-Dir: allpointswh.com

--ELK-28c69c00e41305d4993daa86e71fde43
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: base64

VGhhbmsgeW91IGZvciByZWdpc3RlcmluZyBhdCBBbGwgUG9pbnRzIFdlYiBIb3N0aW5nLiBZb3Vy
IHVzZXJuYW1lIGlzClNjb3R0SkI5Mjc2LiBJZiB5b3UgZm9yZ2V0IHlvdXIgcGFzc3dvcmQsIHlv
dSBjYW4gcmVzZXQgaXQgYnkgdmlzaXRpbmcgCltMaW5rXSggaHR0cHM6Ly93d3cuYWxscG9pbnRz
d2guY29tL2luZGV4LnBocD9hY3Rpb249cmVtaW5kZXIgKSAgCgoKCkJlZm9yZSB5b3UgY2FuIGxv
Z2luLCB5b3UgZmlyc3QgbmVlZCB0byBhY3RpdmF0ZSB5b3VyIGFjY291bnQuIFRvIGRvIHNvLApw
bGVhc2UgZm9sbG93IHRoaXMgbGluazogIAoKCgoKW0xpbmtdKCBodHRwczovL3d3dy5hbGxwb2lu
dHN3aC5jb20vaW5kZXgKLnBocD9hY3Rpb249cmVnaXN0ZXI7c2E9YWN0aXZhdGU7dT00O2NvZGU9
NkhpNUVKcEdUQXVHankgKSAgCgoKClNob3VsZCB5b3UgaGF2ZSBhbnkgcHJvYmxlbXMgd2l0aCBh
Y3RpdmF0aW9uLCBwbGVhc2UgdmlzaXQgCltMaW5rXSggaHR0cHM6Ly93d3cuYWxscG9pbnRzd2gu
Y29tL2luZGV4Ci5waHA/YWN0aW9uPXJlZ2lzdGVyO3NhPWFjdGl2YXRlO3U9NCApIHVzZSB0aGUg
Y29kZSAiNkhpNUVKcEdUQXVHankiLiAgCgoKClJlZ2FyZHMsICAKClRoZSBBbGwgUG9pbnRzIFdl
YiBIb3N0aW5nIFRlYW0uCg==
--ELK-28c69c00e41305d4993daa86e71fde43--

Re: Registration emails

Reply #10

It's "possible" that if the html address is encased in angle brackets when sent,

 [Link]( <https://www.allpointswh.com/index.php?action=register;sa=activate;u=99;code=6ab5EJupiteruGjy> )

..the client will not "break the link" at a punctuation mark within the address. Otherwise, for sure, the parser has no clear idea when the end of the url is.

However, that may not stop the wrapping, but it may make clicking on any part of the URL function as a complete url.

Something for @Spuds to take a look at, perhaps. That said, it's virtually impossible to code url html so it renders the same in every different client, since every client does things differently..

Edit: Spuds may already be doing that. The full url link is active in html no matter where it breaks to a new line or where you click the link
Last Edit: December 31, 2022, 04:17:43 am by Steeley

// Deep inside every dilemma lies a solution that involves explosives //

Re: Registration emails

Reply #11

If it’s sent via html and plain text then the html should be abided by. i.e if it’s in a tags then that should be followed. Well most clients do…

I’ll have a play if @spuds isn’t already

Re: Registration emails

Reply #12

I presume that EA's email formatting template is the same for authentication as for emailed posts...

This is what I get in plain text view.


ElkArte Community Links:

 To visit ElkArte Community on the web, go to: 
[X](https://www.elkarte.net/community "Link")

 You can see this message by using this link: 
[X](https://www.elkarte.net/community/index.php?topic=6190.msg44383#msg44383 "Link")

 You can go to your first unread message by using this link: 
[X](https://www.elkarte.net/community/index.php?topic=6190.new;topicseen#new "Link")

 Unsubscribe to this Board by using this link: 
[X](https://www.elkarte.net/community/index.php?action=notify ;sa=unsubscribe;token=1192_eJ1AYTsHx1.ZWKwQSnjPX9bu_board_17_1672446109 "Link")

Regards, The ElkArte Community

This is what I get in html/rich-text view

ElkArte Community Links:

 <*> To visit ElkArte Community on the web, go to:
https://www.elkarte.net/community

 <*> You can see this message by using this link:
https://www.elkarte.net/community/index.php?topic=6190.msg44383#msg44383

 <*> You can go to your first unread message by using this link:
https://www.elkarte.net/community/index.php?topic=6190new;topicseen#new

 <*> Unsubscribe to this Board by using this link:
https://www.elkarte.net/community/index.php?
action=notify;sa=unsubscribe;token=1192_eJ1AYTsHx1.ZWKwQnjPX9bu_board_17_1672446109
<--EA doesn't recognize this as part of the link when pasted into this post  :tongue:

 Regards, The ElkArte Community

In each version, the green underlined text contains the URL that is shown in green underlined text  

( In other words, the rendered text links are ONLY the URL shown as green underlined text. The non-underlined text (after the semi-colon) is not active, nor included in the rendered url. There's nothing EA can do about that, methinks.
To use the chopped ones I have to make sure I manually select the entire url and enter that in the browser address bar.
 In HTML, the full link is displayed (in Pegasus), even though wrapped at the "?" (and there's nothing EA can do about that either, I believe)., yet the full link is active and rendered completely. Click on any part and I get the full url.)
This is in Pegasus, running IER 2.6.6.0 (a slightly newer version is available but I haven't installed it) which is Pegasus html handler. It's a little different in Roundcube
Your mileage may vary depending on how your client handles text-based url links and/or pre-processes html url links. 

Also, this is what I get from the EA version running on the EA site  (Spuds and I recently ran through a bunch of different email formatting scenarios in the current version running on EA ). Spuds will have to confirm whether that is the same code in the EA version you are running @Burke_Knight.  

(And last, yes, the displayed unsub link has been modified and should be rejected by EA code if someone clicks it..) :woozy_face:
Last Edit: December 31, 2022, 04:14:01 am by Steeley

// Deep inside every dilemma lies a solution that involves explosives //

Re: Registration emails

Reply #13

And, the same email only two different email clients..

Same code, different clients, different results...

RC.jpg

horde.jpg





Last Edit: December 31, 2022, 03:52:28 am by Steeley

// Deep inside every dilemma lies a solution that involves explosives //

Re: Registration emails

Reply #14

From what I can tell the links are still parsed correctly in the two clients? Which is the main issue to resolve.