I’m following again this tutorial:
https://u.expressionengine.com/article/simple-ticketing-system-using-expressionengine-moblog
And I cannot seem to get Moblog to work properly.
I was running EE 5 and both the title of the channel main field were always blank.
I now upgraded to the latest 6 and for my surprise, the Moblog now correctly posts the email body content to my main channel field, except the email subject is still not parsed properly.
If you check that tutorial, the channel field contains the email subject, and the URL also contain the same with an added random string to make the URL unique.
In trying to get this to work for hours now. In my case, all the channel entries get the channel title or email subject posted as:
Date:From;
And the URL title is the same with a slightly variant:
datefrom-610245af7f6618.23610087
It’s very clear what is happening here.
The email subject is parsed incorrectly or broken. It seems to grab the Date and From instead of the actual email message subject.
Now, if I manually overwrite it in the email message (per EE documentation):
{entry_title}My Unique Title{/entry_title}
Then the channel title is properly completed. But this is clearly not what I want. I want Moblog to properly parse automatically the email subject as the channel title.
Can someone confirm if this is a bug in EE 6.0.6?
I have no idea what else to check, configure or try. There is nothing in the documentation about how the channel has to be created for Moblog to properly function. But I don’t think that is the issue. There must be something broken in the module code itself.
As a sidenote, in that tutorial they set the Author to None in the Moblog configuration. This does not work in my setup either, not EE 5 or 6. After saving the Moblog configuration, it will just default back to my username as the author.
I think I found the culprit. The problem seems to happen when emails are internally from the same email server. I was using a local DEV domain. I tried another email account and instead of Date:From I got To:Sender.
I then started to email from different email servers in the same network. Some work fine, others get instead:
To:Date:Sender:Reply-To:Cc:Content-ID:
Others get other data. But not all messages are parsed correctly in the title. It seems the module does not like specific email servers or messages.
There definitely seems to be something strange with the module, as I assume more than one person needs to use the Moblog to read from an email account that is on the same email server from which emails are sent.
When email servers relay locally such sender@domain.com to moblog@domain.com the message actually never goes out to the Internet and is delivered locally, in my case Postfix which is a very popular email server.
I will have to dig more into when or how this happens.
After testing all night, I can confirm this happens when using the same email server.
It seems Moblog does not like emails coming from the same @domain.com and/or local server email server. This is rather strange and very awkward because it means you need to use another email account hosted externally.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.