Re: [Orgmode] [CONTRIB?] using orgmode to send html mail?

2010-03-31 Thread Eric Schulte
Hi, I've been using the code currently located at [1] for sending HTML email [2] for a little while now, and it is working very well. I wonder if this should be included in the contrib directory of Org-mode? Also, since it currently only supports gnus (it should be very easy to extend to WL and

Re: [Orgmode] [CONTRIB?] using orgmode to send html mail?

2010-03-31 Thread Dan Davison
"Eric Schulte" writes: > Hi, > > I've been using the code currently located at [1] for sending HTML email > [2] for a little while now, and it is working very well. Hi Eric, I just tried pasting content from an org file into a message-mode buffer and calling org-mail-htmlize on the region, and

Re: [Orgmode] [CONTRIB?] using orgmode to send html mail?

2010-03-31 Thread Eric Schulte
Dan Davison writes: > "Eric Schulte" writes: > >> Hi, >> >> I've been using the code currently located at [1] for sending HTML email >> [2] for a little while now, and it is working very well. > > Hi Eric, > > I just tried pasting content from an org file into a message-mode buffer > and calling

Re: [Orgmode] [CONTRIB?] using orgmode to send html mail?

2010-03-31 Thread Dan Davison
"Eric Schulte" writes: > Dan Davison writes: > >> "Eric Schulte" writes: >> >>> Hi, >>> >>> I've been using the code currently located at [1] for sending HTML email >>> [2] for a little while now, and it is working very well. >> >> Hi Eric, >> >> I just tried pasting content from an org file in

Re: [Orgmode] [CONTRIB?] using orgmode to send html mail?

2010-04-01 Thread Eric Schulte
Dan Davison writes: [...] > > As I understand it the code you've written is designed to be called in a > message-mode buffer with orgstruct-mode in force. Would it make sense to > also include in your package a complementary function, that one calls in > an org-mode buffer? I envisage this gener

Re: [Orgmode] [CONTRIB?] using orgmode to send html mail?

2010-04-04 Thread Eric Schulte
Hi, It is now possible to send HTML mail directly form an org-mode buffer. Calling `org-mime-org-buffer-htmlize' (could probably use a better name) from inside of an org-mode buffer will use `org-export-as-html' to generate HTML of the buffer (respecting regions and subtree narrowing), and will t

Re: [Orgmode] [CONTRIB?] using orgmode to send html mail?

2010-04-04 Thread Carsten Dominik
On Apr 5, 2010, at 7:39 AM, Eric Schulte wrote: Hi, It is now possible to send HTML mail directly form an org-mode buffer. Calling `org-mime-org-buffer-htmlize' (could probably use a better name) from inside of an org-mode buffer will use `org-export-as-html' to generate HTML of the buffer

Re: [Orgmode] [CONTRIB?] using orgmode to send html mail?

2010-04-05 Thread Dan Davison
Hi Eric, Thanks a lot for this, I think I'll use it quite a bit. This may be specific to my setup, but in case this is useful to others, as a gnus user I had to do (setq mail-user-agent 'message-user-agent) Without altering this --- i.e. with mail-user-agent set to the default value of 'sendmai

Re: [Orgmode] [CONTRIB?] using orgmode to send html mail?

2010-04-05 Thread David Maus
Dan Davison wrote: >I noticed one small bug, but perhaps it's an org-mode bug? When I use >org-mime-org-buffer-htmlize on this >, >| *** Tasks >| - [ ] Check Popen.returncode of python system calls >` >I get the following, which renders as a checkbox with an X, whereas my >checkbox wa

Re: [Orgmode] [CONTRIB?] using orgmode to send html mail?

2010-04-05 Thread Dan Davison
Hmm, perhaps I should have been a bit more careful with protecting the various special email constructs in my message. Second try: Dan Davison writes: > Hi Eric, > > Thanks a lot for this, I think I'll use it quite a bit. > > This may be specific to my setup, but in case this is useful to others

Re: [Orgmode] [CONTRIB?] using orgmode to send html mail?

2010-04-05 Thread Eric Schulte
Carsten Dominik writes: > On Apr 5, 2010, at 7:39 AM, Eric Schulte wrote: > >> Hi, >> >> It is now possible to send HTML mail directly form an org-mode buffer. >> >> Calling `org-mime-org-buffer-htmlize' (could probably use a better >> name) >> from inside of an org-mode buffer will use `org-expo

Re: [Orgmode] [CONTRIB?] using orgmode to send html mail?

2010-04-05 Thread Eric Schulte
It's certainly true that email clients can be particular about how they display HTML. One possible fix for issues like these is to use the `org-mime-html-hook' hook and the `org-mime-change-element-style' function for forcing inline css into the misbehaving elements. Best -- Eric Dan Davison wr