We send plain text emails from PHP using CodeIgniter (v1.7) as well as PHPMailer (v5.1). The current production setup uses a cheapie SMTP relay; the plan is to switch to CritSend or SendGrid. Now we are testing the parameters from the Rackspace Cloud server.
When we use SendGrid SMTP, all the lines "\ r \ n" in emials end in doubling, therefore end as "\ r \ n \ r \ n".
Everything works fine when using CritSend SMTP, as well as two other SMTP servers.
SendGrid technical support does not think that it has anything to do with their system, but heard about another client with the same problem and, apparently, it was solved with a configuration change on the client side.
Has anyone experienced this?
This is not important for us, since CritSend works well and looks as good as SendGrid, and we will be with them. BUT, being a weird type, I just can't let that happen :-)
Normal setup: PHP script -> sendmail / Postfix -> external SMTP relay -> ....
To test different SMTP relays, I change the configuration of the postfix, only SendGrid gives additional lines of a new line, all other SMTP parameters work fine. If I reset the email address using the debugging function of the CodeIgniter class, it will look normal before it goes to postfix.
: PHP script ( CI, PHPMialer) → SMTP → ....
SMTP-, SMTP CI PHPMialer. SendGrid , SMTP .
, . "utf-8" "ISO-- ", "\ r\n"...... - - -.
?