Hi,
Actually, since I end up formatting the plain text version myself, I can
get pretty close to what I need simply by appending "; format=flowed" to
the contentType string of the Message receiver's SetBody function.
(Though I don't know if that is an ideal way of going about it.)
However, as per RFC3637, I'd like to be able to have the plain/text body
(and only it) not be encoded as quoted printable. Is there a way to
turn off quoted printable encoding for a given part of the mail message?
Thanks,
Braden
On Thu, Oct 23, 2014 at 08:58:35AM -0700, bra...@smashwords.com wrote:
> I just know I often see emails in my inbox with it, and those emails end up
> formated well in Mutt. :)
>
> Why do you say it works only for ASCII-only text? I didn't see that
> mentioned in the RFC, and many of the format=flowed emails I receive are
> UTF-8 (charset=UTF-8).
>
> Anyway, sure, I'll open an issue.
>
> Thanks,
> Braden
>
> On Wednesday, October 22, 2014 11:55:19 PM UTC-7, Alexandre Cesaro wrote:
> >
> > I'm not sure: it does not seem to be a very widespread standard and it
> > only works with ASCII-only texts.
> >
> > However you can open an issue on Github if you want and we will discuss it
> > there.
> >
> > On Wed, Oct 22, 2014 at 11:39 PM, <bra...@smashwords.com <javascript:>>
Hi,
Yeah, I think that could work. Though, just to be clear, would that
mean that in a plain and html alternative message, the text/html part
would also not be encoded quoted-printable? Which I think would mean I
need to be sure to not pass HTML with very long lines (i.e. more than
998 characters before the newline)?
Thanks,
Braden
On Sat, Oct 25, 2014 at 12:58:28AM +0200, Alexandre Cesaro wrote:
> I can create a new Encoding
> "Unencoded", so you can create your messages like that:
> msg := gomail.NewMessage(SetEncoding(gomail.Unencoded))
>
> It would set the Content-transfer-encoding header of the body to 8bit
> <https://tools.ietf.org/html/rfc2045#section-6.1> (but still encode special
Oh, I don't think you need to concern yourself with the wrapping if it
doesn't seem generally applicable... I already am post-processing the
HTML part and have a wrapping method to generate the format=flowed plain
text, so I could just reuse that to prevent long lines in the HTML.
Alternatively, if you are going to do soft line breaks for long lines,
you could perhaps just go all in and provide a format=flowed formatting
option, :)
I just did it like this:
https://github.com/daBrado/tplmail/blob/master/utils.go#L57-L77
...for a given line at a time, anyway. Not that this is ideal... I'm
still new to Go..!
Thanks,
Braden
Hi,
I feel like maybe I am not understanding. What is a soft line break in
the context of an 'unencoded' setting?
Also, I wasn't able to find reference to MIME wanting a particular line
length, except in the case of the quoted-printable encoding. At least,
when looking at https://tools.ietf.org/html/rfc2045
Thanks for your help!
- Braden
.
It throws me this error: "504 5.7.4 Unrecognized authentication type"With PHP is working fine :/El Mon Jan 12 2015 at 10:02:40 AM, Alexandre Cesaro (<alexandr...@gmail.com>) va escriure:
Gomail (like net/smtp.SendMail) automatically use TLS encryption (or more precisely STARTTLS).
Hi friend,I'm facing this error when using your library:panic: mail: missing phraseCan you help?