Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-10-04 Thread Sebastiaan Koppe via Digitalmars-d-announce
Sorry for the late reply. Had some stuff to finish. On Tuesday, 29 September 2015 at 16:22:43 UTC, Adam D. Ruppe wrote: dub forces me to do it that way. It isn't my preference, but reorganizing all my files and creating twenty or thirty different github repos to house them is unacceptable.

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Russel Winder via Digitalmars-d-announce
On Tue, 2015-09-29 at 03:53 +, Sebastiaan Koppe via Digitalmars-d -announce wrote: > This library[1] allows you to send multi-part emails with > attachments. This code looks so similar to the equivalent in Python, it is great. Does it need Vibe underneath it though to work, or is this a

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 06:18:32 UTC, Suliman wrote: Does it's work with anything except localhost? Could you add example of sending email with gmail? It is in the settings variable. Look at vibe.mail.SMTPClientSettings. http://vibed.org/api/vibe.mail.smtp/SMTPClientSettings In my

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Suliman via Digitalmars-d-announce
Does it's work with anything except localhost? Could you add example of sending email with gmail?

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 12:43:19 UTC, Daniel Kozak wrote: It would be nice to have all of yours stuff on code.dlang.org. I'm slowly working on it. Got some working just yesterday: http://code.dlang.org/packages/arsd-official but the repo doesn't let you show subpackages, argh. dub

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 12:43:19 UTC, Daniel Kozak wrote: Adam D.Ruppe píše v Út 29. 09. 2015 v 12:05 +: If you ever need something in D, ask me first there's a good chance I've written it! https://github.com/adamdruppe/arsd/blob/master/email.d there's also a good chance

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Daniel Kozak via Digitalmars-d-announce
Adam D.Ruppe píše v Út 29. 09. 2015 v 12:05 +: > On Tuesday, 29 September 2015 at 08:54:39 UTC, Daniel Kozak wrote: > > Wow, I need something like this 3 weeks ago, but I dont have > > time to implement this myself, so I end up with phpMailer. Now > > I can switch my little e-mailing system

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Suliman via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 08:17:42 UTC, Sebastiaan Koppe wrote: On Tuesday, 29 September 2015 at 06:18:32 UTC, Suliman wrote: Does it's work with anything except localhost? Could you add example of sending email with gmail? It is in the settings variable. Look at

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Robert M. Münch via Digitalmars-d-announce
On 2015-09-29 03:53:44 +, Sebastiaan Koppe said: This library[1] allows you to send multi-part emails with attachments. ``` Mail email = new Mail; email.headers["Date"] = Clock.currTime().toRFC822DateTimeString(); email.headers["Sender"] = "Domain.com Contact Form "; email.headers["From"]

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 12:26:58 UTC, Robert M. Münch wrote: Not that I'm to deep into the code nor D but would it be possible to write it somehow like this: Mail email = new Mail; email.headers = [ "Date" Clock..., "Sender" ... ] This would be a much more

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 08:54:39 UTC, Daniel Kozak wrote: Wow, I need something like this 3 weeks ago, but I dont have time to implement this myself, so I end up with phpMailer. Now I can switch my little e-mailing system to Dlang. Thank you. If you ever need something in D, ask me

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Daniel Kozak via Digitalmars-d-announce
Sebastiaan Koppe píše v Út 29. 09. 2015 v 03:53 +: > This library[1] allows you to send multi-part emails with > attachments. > > ``` > Mail email = new Mail; > email.headers["Date"] = Clock.currTime().toRFC822DateTimeString(); > email.headers["Sender"] = "Domain.com Contact Form "; >

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 07:24:48 UTC, Russel Winder wrote: This code looks so similar to the equivalent in Python, it is great. Does it need Vibe underneath it though to work, or is this a package that can sit separately and just use sockets to connect to the SMTP server as with

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 09:05:09 UTC, Sebastiaan Koppe wrote: That why we want stuff besides text in our emails. Attachments do pictures better than html bodies though.

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 13:10:55 UTC, Adam D. Ruppe wrote: I'm slowly working on it. Got some working just yesterday: http://code.dlang.org/packages/arsd-official Good. But why put everything in one package? A guy on npmjs.com goes the other extreme and he actually has a package

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Sebastiaan Koppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 13:37:18 UTC, Suliman wrote: I am asking because I had troubles with vibed http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/thread/25447/ It's still vibe.d doing the smtp stuff. You might want to look into adam's code, or

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 14:57:13 UTC, Sebastiaan Koppe wrote: Good. But why put everything in one package? dub forces me to do it that way. It isn't my preference, but reorganizing all my files and creating twenty or thirty different github repos to house them is unacceptable. The

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread ponce via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 16:22:43 UTC, Adam D. Ruppe wrote: But, how do you express the half-dependency of characterencodings in a dub.json dependencies list? optional dependencies + version tags produced by DUB in the form of version (Have_packagename) { } (never

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread ponce via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 16:22:43 UTC, Adam D. Ruppe wrote: I copy/pasted your arsd/dom.d code in a couple of projects. But none of them will receive updates unless I do 'm manually. That means you don't have to put up with me randomly breaking your code! You don't have to wait for me

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread rcorre via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 16:22:43 UTC, Adam D. Ruppe wrote: characterencodings is only needed if you call one of the character conversion functions; it is a lazy local import inside a template. Neat! I knew local imports were useful for keeping symbols in a smaller scope, but

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread karabuta via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 16:22:43 UTC, Adam D. Ruppe wrote: On Tuesday, 29 September 2015 at 14:57:13 UTC, Sebastiaan Koppe wrote: [...] dub forces me to do it that way. It isn't my preference, but reorganizing all my files and creating twenty or thirty different github repos to

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread karabuta via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 12:26:58 UTC, Robert M. Münch wrote: On 2015-09-29 03:53:44 +, Sebastiaan Koppe said: Not that I'm to deep into the code nor D but would it be possible to write it somehow like this: Mail email = new Mail; email.headers = [ "Date" Clock...,

Re: Vibemail - extensions for vibe's Mail class to send multi-part emails with attachments

2015-09-29 Thread karabuta via Digitalmars-d-announce
On Tuesday, 29 September 2015 at 13:10:55 UTC, Adam D. Ruppe wrote: On Tuesday, 29 September 2015 at 12:43:19 UTC, Daniel Kozak wrote: It would be nice to have all of yours stuff on code.dlang.org. I'm slowly working on it. Got some working just yesterday: