-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parallel install: 1.7.3 sends mails ok, 1.9.3 sends blank mails #1217
Comments
Ok, I finally fixed it with the help of this forum post. What I changed was line 170 in include/fileclass.mailer.php: From this: So the if clause ended up like this:
I guess I could've gotten rid of the if altogether. Does this change has any collateral damage? If not, why not using the "\n" in all cases by default?. Regards, |
The RFC for internet mail ("Email"), RFC 822 and it's successors, specify CRLF (\r\n) as the end of line terminator. Several libraries and mail filter systems misinterpret the mail and muck it up. Something between PHP and your mail client is dropping the bodies. Interestingly enough, I see there is a size=5128 parameter in the attachment header in your email. There is no body, but the non-zero size indicates that the mail library inside osTicket originally sent a body with 5128 bytes. Something thereafter dropped the body. It seems that using the non-standard end of line terminator (\n) is a fair workaround. We've heard of many instances of this, but can't seem to identify 100% when to use the non-standard EOL |
Hi greezybacon, As this happens to many people I guess a setting in the admin panel to set the "\n" on and off would be of great help.
Just my two cents. Thank you for such a great tool BTW. Regards, |
@fredastaire I would accept an addition to the config file like this define('MAIL_EOL', "\n"); |
@greezybacon Regards, |
@fredastaire can you maybe try the patch in #1248 |
@greezybacon Regards, |
The easiest way is to download from https://github.com/greezybacon/osTicket-1.8/archive/issue/mail-eol.zip and extract over your osTicket installation. The next easiest way is to download the define("MAIL_EOL", "\n"); |
@greezybacon
|
Luckily enough I had made a backup. After restoration I followed step 2 and now the body is seen in the emails, so it worked!. But, is this like a fixed setting or is it something we can switch on and off (I havent find any options for this in the admin panel)?. Regards, |
@greezybacon I guess good news is that the patch really worked on that version, which had the same problem as 1.9.3. I'm gonna try the patch over a real 1.9.3 and report. |
@greezybacon Regards, |
I have two paralel installations of OSTicket in the same server, one of them sends properly formed mails while the other doesn't, which I find really weird.
They run different versions of OSTicket:
Here are some examples:
- 'new ticket alert' mail, when it sends a blank mail with a zero size image attachment "powered-by-osticket.png", (sensitive info masked as *****):
The server is a Centos 6.4 with postfix-2.6.6.
The SMTP relay don't know what it is, but it throws this when connecting to it: "Microsoft ESMTP MAIL Service, Version: 7.5.7601.17514"
This is the installation information:
Regards,
Fred
The text was updated successfully, but these errors were encountered: