Bug #13044 [Com]: unexpected characters in mail
| From: | wankhede1988 at gmail dot com | Date: | Wed, 10 May 2017 09:58:20 +0000 |
| Subject: | Bug #13044 [Com]: unexpected characters in mail | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-209041@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=13044&edit=1
ID: 13044
Comment by: wankhede1988 at gmail dot com
Reported by: michalprv at poland dot com
Summary: unexpected characters in mail
Status: No Feedback
Type: Bug
Package: Mail related
Operating System: linux
PHP Version: 4.0.6
Block user comment: N
Private report: N
New Comment:
Similar case was with me, when i was printing email on console, it was not showing any spacial
characters, but in outlook mail is was displaying unwanted characters like (!).
after using wordwrap() to mail body.
thanks for hint :)
Previous Comments:
------------------------------------------------------------------------
[2017-02-06 12:01:51] kumarsher45 at gmail dot com
Thanks! :)
------------------------------------------------------------------------
[2012-02-29 05:02:48] brendan at brendanenglish dot com
Try using 'wordwrap' when sending the message, this should break up the email and
fix the issue:
@mail($to, $subject, wordwrap($message), $headers);
------------------------------------------------------------------------
[2008-04-15 13:35:24] indeyets at gmail dot com
This is a standard limit of sendmail/smtp. See here for details: http://safari.oreilly.com/1565928393/ch20-77125
Solution is to use base64-encoding
------------------------------------------------------------------------
[2008-04-07 20:45:26] ryan dot morrow at gmail dot com
I was having a similar problem sending the Content-Type: text/html through the php mail() function.
Extra spaces were being inserted almost randomly. If I added text, the space would move down the
number of spaces I added.
I was pulling the HTML from a database, and everything was inserted on a single line. Inserting
newlines corrected the problem.
------------------------------------------------------------------------
[2008-03-18 11:28:31] michael dot reiter at univr dot it
I had several links in my HTML email. The effect described above could be resolved by adding the
target attribute to the link.
Note that exactly the same HTML would be correct and would bring no error within browsers. This
effect only applies to HTML emails sent with the PHP mail() function.
<a href="url">text</a>
in some emails causes the characters <p> to be inserted at the end of paragraphs or spaces to
be inserted within words (splitting them up) in the subsequent html
<a href="url" target="_self">text</a> (also
target="_blank" or whatever)
does not bring this effect
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=13044
--
Edit this bug report at https://bugs.php.net/bug.php?id=13044&edit=1