Pay Now link Prepended with x-msg://3/?

0
A client tried to click the pay now link and said it would not work. Looking at the link it was prepended with "x-msg://3/" which invalidated the link. Why did Invoice Manager do this and how can it be corrected to email the right pay now link???

Accepted Answer

Friday, March 10 2017, 11:46 AM - #Permalink
0
oh wow.

Found the problem.

In the invoice template, the {payment_link} tags were preppended with a / like this:

href="/{payment_link}"

instead of this:

"{payment_link}"

that's what was causing the problem. Not a but in Invoice Manager whatsoever.. it was the template...
The reply is currently minimized Show
Responses (14)
  • Accepted Answer

    Monday, March 06 2017, 06:17 PM - #Permalink
    0
    From what I found research this Mail.app inserts x-msg because the link created by Invoice Manager apparently does not have a valid scheme.

    I read another post where you claimed it was the fault of the email sending system. I have sent a few invoices and tested it on myself a dozen times with no issues. Only this one client so far has had this issue. So I can say with confidence it is not my email sending system, whatever that is supposed to stand for?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 06 2017, 06:22 PM - #Permalink
    0
    Hello,

    Very recently we have had one other user telling us about this same issue. You're the second person to report this.

    IM does not add this prefix on the links itself, that's for sure. there's no place where IM adds this prefix to links, that would be useless.

    If I understand correctly, you're saying that you are receiving the links CORRECTLY, but one client of yours isnt. correct?

    if that's the case, it means that this user's email client is adding this for whatever reason (maybe because some "unvalid scheme" as you say).

    This unvalid scheme you mention.. where did you see this? is there any more information added to this? I will check on my end...
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 06 2017, 06:25 PM - #Permalink
    0
    doing a quick search on stackoverflow: http://stackoverflow.com/questions/11033342/php-mail-function-prepends-x-msg-to-all-links

    looks like could be related to urlencoding.. however we have never faced this issue before. Is your invoice manager installed in a URL with non standard chars? (just asking to rule things out..)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 06 2017, 06:35 PM - #Permalink
    0
    I am all about helping you figure this out so please by all means ask away. Funny you pointed to that link, I was just reading it and was just about to post asking if Invoice Manager uses CURL to post?

    To answer your question I am not sure I follow it but I have this installed on a Joomla 3.6.5 site and I am using all the defaults installed with the extension. There is nothing out of the ordinary with my server setup but here are the particulars for my site and server if it helps.

    Joomla: 3.6.5
    Database: 5.6.35
    PHP: 7.0.16
    Apache: 2.4.23

    Let me know if there is any other details you need to know. This is on a dedicated server and I will change and test any configuration you need to get to the bottom of this issue.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 06 2017, 06:38 PM - #Permalink
    0
    No, IM does not user cURL to send the emails, but that's really not the issue (althogh seemed that way on stackoverflow, for that user)

    the issue is not with Joomla version either, from what I can see.

    The problem seems to come from some email clients (for example the Mac email app) which add this prefix to some links, for some reason.

    The problem is I cannot replicate with my email client (Gmail).

    a couple questions:

    - do you see this issue yourself, if you send an invoice to yourself? what email client do you use to open the email?
    - the user that had this problem.. what did they user to open? do you know if they use Mac Mail app? maybe Hotmail?

    this would be valuable information to help isolate the problem...
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 06 2017, 06:39 PM - #Permalink
    0
    I dont know if it helps to know or even makes a difference but I also run this server with this configuration:

    PHP 5 Handler: suphp
    Apache suEXEC: on
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 06 2017, 06:52 PM - #Permalink
    0
    I need to ask her what email client she is using but like you I cannot reproduce this myself. I use Outlook and have tested sending to a Gmail account that comes into Outlook as well as an Apple ID account that also comes into Outlook and the link works fine. I do know she is an avid Apple fan and likely uses some app for it to open email. I will get with her and see if this is perhaps the problem and have her open the email in her cPanel to see if the issue persists there, which I am confident it does not.

    I have a partner that is also an Apple fan and will get with her and send her an invoice and see if she has the same issue. Will report my findings later today.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 06 2017, 07:19 PM - #Permalink
    0
    I am doing some more testing and setup a new client with an email that goes through my server. I was able to log into the client in questions email and found that in fact there is some goofy link where Pay Now is. Here is that link as it shows online in the email client for cPanel.

    https://69.175.7.34:2096/cpsess6404101230/3rdparty/roundcube/#nop

    Now I created a new client and send an invoice and this time while the link is there for the most part it is missing some critical formatting to make it a legitimate link and what is weird is when i hover over it I see one link and when I copy to the browser it is completely different, but still poorly formed. Regardless all the below links fail with an error.

    Here is the link as I see it when I hover over it:
    /https:/klmgraphics.com/index.php?option=com_invoices&view=payment&id=7

    Here it is if I copy it into a browser:
    /https://klmgraphics.com/index.php?option=com_invoices&view=payment&id=7

    After copying it into the browser it renders this instead:
    http://https//klmgraphics.com/index.php?option=com_invoices&view=payment&id=7

    Any ideas why this is happening? No other applications on the server have this issue and links generate just fine. It is just Invoice Manager that is proving to be an issue when sending mail?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 06 2017, 09:00 PM - #Permalink
    0
    I can also confirm that reinstalling does not fix the problem...
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 07 2017, 11:46 AM - #Permalink
    0
    that's really weird. Could you do me a favor? can you create an invoice (or the same) and change the email to mine (support@ joomlathat.com) and send it to me so I can check the source code?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 07 2017, 03:46 PM - #Permalink
    0
    Invoice sent
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 07 2017, 04:02 PM - #Permalink
    0
    Indeed, I get the same. So it's not the email client then.

    can you send me FTP access and Joomla access to support@ joomlathat.com? this way I can check right on the website what's causing this...
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 07 2017, 05:32 PM - #Permalink
    0
    Sent you the info you requested.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, March 10 2017, 03:15 PM - #Permalink
    0
    Thanks Germinal, I am mad at myself for not catching that. Going back through my stuff to figure out where that even came from. I reinstalled the extension on my development site and can confirm this was not there prior to my introduction. Sorry for you having to go through the trouble of solving my own failed code, but thanks for the awesome support...;)
    The reply is currently minimized Show
Your Reply