We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Config item for email newline

Feature Requests

SChristy's avatar
SChristy
23 posts
9 years ago
SChristy's avatar SChristy

Hi,

I don’t know if anyone else has run in to this, but we are upgrading from EE2.5.3 to EE3. For the life of me, I couldn’t get email to send from either the Communicate page or my module. I checked the responses, and they were all good. No errors and it said the email sent, but it never arrived.

After struggling for a while, I found again, by digging in the code, that in the file ee/legacy/libraries/Email.php, there is a setting for “newline” and “crlf”. Both default to “\n”. However, for the server I am using to send our SMTP mail through, it needs “\r\n”.

Is there any way to move this to a config file so I don’t have to edit a system file with every upgrade? Maybe not possible, but it is a pain when the system says it sent the mail fine but it doesn’t work and I have to dig in to find it (and yes, I documented it this time!:-)

Thanks! Steve

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
9 years ago
Pascal Kriete's avatar Pascal Kriete

Hi Steve,

We have some config overrides that you’ll want to look at.

In particular, email_newline and email_crlf.

       
SChristy's avatar
SChristy
23 posts
9 years ago
SChristy's avatar SChristy

Ah. Perfect! I didn’t see that before. That does exactly what I need!

Thanks, Steve

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.