Re: SMTP Mail

2018-04-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 12 April 2018 at 15:58:33 UTC, Vino wrote: I tried to replicate your code with what is required for me I still wanna know: why use Array instead of regular arrays? Using the below code are are able to receive the mail with the attachment, but the content of the attachment contai

Re: SMTP Mail

2018-04-12 Thread Vino via Digitalmars-d-learn
On Tuesday, 10 April 2018 at 15:18:19 UTC, Adam D. Ruppe wrote: On Tuesday, 10 April 2018 at 15:10:44 UTC, Vino wrote: The variable "to" is of type string[] but we need it as Array!string The variable "Subject" but we need it as Array!string. You'll have to convert them yourself if that is a

Re: SMTP Mail

2018-04-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 10 April 2018 at 15:10:44 UTC, Vino wrote: The variable "to" is of type string[] but we need it as Array!string The variable "Subject" but we need it as Array!string. You'll have to convert them yourself if that is a must, but why would you need that?

Re: SMTP Mail

2018-04-10 Thread Vino via Digitalmars-d-learn
On Tuesday, 10 April 2018 at 13:51:02 UTC, Adam D. Ruppe wrote: On Tuesday, 10 April 2018 at 11:09:56 UTC, Vino wrote: Now the program works, but the attachment does not work as expected, message.addAttachment("text/plain", "C:\\Temp\\Test\Test1.txt", "Test"); What did you expect that "Tes

Re: SMTP Mail

2018-04-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 10 April 2018 at 11:09:56 UTC, Vino wrote: Now the program works, but the attachment does not work as expected, message.addAttachment("text/plain", "C:\\Temp\\Test\Test1.txt", "Test"); What did you expect that "Test" argument to do if it was going to read the file as the conten

Re: SMTP Mail

2018-04-10 Thread Vino via Digitalmars-d-learn
On Monday, 9 April 2018 at 19:19:53 UTC, Adam D. Ruppe wrote: On Monday, 9 April 2018 at 15:38:55 UTC, Vino.B wrote: Thank you very much, I copied your folder arsd under the phobes folder in c:\D\... and the program was placed on my desktop and tried to execute it from the desktop via rdmd.

Re: SMTP Mail

2018-04-09 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 9 April 2018 at 15:38:55 UTC, Vino.B wrote: Thank you very much, I copied your folder arsd under the phobes folder in c:\D\... and the program was placed on my desktop and tried to execute it from the desktop via rdmd. I don't think rdmd is seeing the dependency on htmltotext.d. Tr

Re: SMTP Mail

2018-04-09 Thread Vino.B via Digitalmars-d-learn
On Monday, 9 April 2018 at 13:02:06 UTC, Adam D. Ruppe wrote: On Sunday, 8 April 2018 at 15:45:48 UTC, Vino wrote: I am trying your email.d programming, and i am getting the below errors, can you please help me, i just used these programs (characterencodings.d, color.d, dom.d, htmltotext.d,

Re: SMTP Mail

2018-04-09 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 8 April 2018 at 15:45:48 UTC, Vino wrote: I am trying your email.d programming, and i am getting the below errors, can you please help me, i just used these programs (characterencodings.d, color.d, dom.d, htmltotext.d, email.d) What is your build command? It looks like a module

Re: SMTP Mail

2018-04-09 Thread Vino via Digitalmars-d-learn
On Sunday, 8 April 2018 at 15:45:48 UTC, Vino wrote: On Friday, 25 August 2017 at 02:13:42 UTC, Adam D. Ruppe wrote: [...] Hi Adam, I am trying your email.d programming, and i am getting the below errors, can you please help me, i just used these programs (characterencodings.d, color.d, d

Re: SMTP Mail

2018-04-08 Thread Vino via Digitalmars-d-learn
On Friday, 25 August 2017 at 02:13:42 UTC, Adam D. Ruppe wrote: On Tuesday, 22 August 2017 at 12:52:24 UTC, Vino.B wrote: Request your help on sending Mails, I am able to receive mails with empty body the line "smtp.message ="Example Message" doesn't seem to be working and also please let me

Re: SMTP Mail

2017-08-24 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 22 August 2017 at 12:52:24 UTC, Vino.B wrote: Request your help on sending Mails, I am able to receive mails with empty body the line "smtp.message ="Example Message" doesn't seem to be working and also please let me know how do i send a file as a attachment in a email. The mess