Re: sending email via idl? [message #60739] |
Fri, 06 June 2008 08:07  |
jeffnettles4870
Messages: 111 Registered: October 2006
|
Senior Member |
|
|
On Jun 5, 4:57 pm, jeffnettles4...@gmail.com wrote:
> On Jun 5, 1:13 pm, "Haje Korth" <haje.ko...@nospam.jhuapl.edu> wrote:
>
>
>
>> orhttp://www.beyondlogic.org/solutions/cmdlinemail/cmdlinema il.htm
>
>> (Google has tons of hits ffor this.)
>
>> H.
>
>> "Andy Heaps" <a.j.he...@reading.ac.uk> wrote in message
>
>> news:g289p9$4du$1@south.jnrs.ja.net...
>
>>> Hi Sudha,
>>> try using the SPAWN command and you should be able to do this.
>
>>> Cheers
>>> Andy
>
>>> sudha wrote:
>>>> Has anyone had any experience in writing an idl program to send email?
>>>> My software needs to have the ability to email an image attachment,
>>>> either when the user clicks a button, or as a notification at the end
>>>> of some computation.
>
>>>> Thanks!
>
>>>> Sudha
>
> You could also install cygwin. That's free and i think it includes
> sendmail. You might also think about spawning a perl or python script
> from IDL, something along those lines.
>
> As far as ActiveX/COM goes, I haven't heard of there being a control
> for a "default mail program." There might be such a program but it
> might still not have any COM functionality exposed. Outlook, of
> course, does expose COM functions, so if you have Outlook you can use
> that.
>
> Another free SMTP mailer is Blat.http://www.blat.net/194/. I just
> did some searching on the web, I do not use this myself.
>
> Jeff
I forgot to point out that I don't think you would need the IDL-COM
bridge for this. If you have IDL 6.3+ it has IDL objects that allow
you to work with ActiveX/COM controls (they existed pre-IDL6.3 but
were improved in that version). I've read/written data directly to/
from Excel files using those controls and I don't have the IDL-COM
Bridge.
|
|
|
Re: sending email via idl? [message #60745 is a reply to message #60739] |
Thu, 05 June 2008 13:57   |
jeffnettles4870
Messages: 111 Registered: October 2006
|
Senior Member |
|
|
On Jun 5, 1:13 pm, "Haje Korth" <haje.ko...@nospam.jhuapl.edu> wrote:
> orhttp://www.beyondlogic.org/solutions/cmdlinemail/cmdlinema il.htm
>
> (Google has tons of hits ffor this.)
>
> H.
>
> "Andy Heaps" <a.j.he...@reading.ac.uk> wrote in message
>
> news:g289p9$4du$1@south.jnrs.ja.net...
>
>
>
>> Hi Sudha,
>> try using the SPAWN command and you should be able to do this.
>
>> Cheers
>> Andy
>
>> sudha wrote:
>>> Has anyone had any experience in writing an idl program to send email?
>>> My software needs to have the ability to email an image attachment,
>>> either when the user clicks a button, or as a notification at the end
>>> of some computation.
>
>>> Thanks!
>
>>> Sudha
You could also install cygwin. That's free and i think it includes
sendmail. You might also think about spawning a perl or python script
from IDL, something along those lines.
As far as ActiveX/COM goes, I haven't heard of there being a control
for a "default mail program." There might be such a program but it
might still not have any COM functionality exposed. Outlook, of
course, does expose COM functions, so if you have Outlook you can use
that.
Another free SMTP mailer is Blat. http://www.blat.net/194/. I just
did some searching on the web, I do not use this myself.
Jeff
|
|
|
|
Re: sending email via idl? [message #60756 is a reply to message #60753] |
Thu, 05 June 2008 10:30   |
skapali
Messages: 4 Registered: February 2008
|
Junior Member |
|
|
On Jun 5, 12:48 pm, Jean H <jghas...@DELTHIS.ucalgary.ANDTHIS.ca>
wrote:
> Andy Heaps wrote:
>
>> Hi Sudha,
>> try using the SPAWN command and you should be able to do this.
>
>> Cheers
>> Andy
>
> Hi,
> Could you elaborate a bit more how to do this under windows? ... I can
> do it easily under Linux, but the only easy solution I have found (a
> while ago though) under windows was to send the content of my email +
> address + title to a webpage that uses php to actually send the email...
> not that easy after all...
>
> Jean
I should have mentioned this in my original post - unfortunately I am
using Windows as well, and I do not have access to a web server
either....
One possibility that occured to me is that, if there is a common
ActiveX / COM interface for the "default mail program" on Windows (or
how else would I able to right-click on the filename in windows
explorer, and select the "send to mail recipient"?), I could then
compose and send the email using the IDL-COM bridge. Has anyone
explored this option?
Thanks again!
Sudha
|
|
|
|
|
|
|
Re: sending email via idl? [message #82740 is a reply to message #60739] |
Fri, 11 January 2013 03:46  |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Friday, June 6, 2008 5:07:42 PM UTC+2, Jeff N. wrote:
> On Jun 5, 4:57 pm, jeffnettles4...@gmail.com wrote:
>> On Jun 5, 1:13 pm, "Haje Korth" <haje.ko...@nospam.jhuapl.edu> wrote:
>>
>>
>>
>>> orhttp://www.beyondlogic.org/solutions/cmdlinemail/cmdlinema il.htm
>>
>>> (Google has tons of hits ffor this.)
>>
>>> H.
>>
>>> "Andy Heaps" <a.j.he...@reading.ac.uk> wrote in message
>>
>>
>>>> Hi Sudha,
>>>> try using the SPAWN command and you should be able to do this.
>>
>>>> Cheers
>>>> Andy
>>
>>>> sudha wrote:
>>>> > Has anyone had any experience in writing an idl program to send email?
>>>> > My software needs to have the ability to email an image attachment,
>>>> > either when the user clicks a button, or as a notification at the end
>>>> > of some computation.
>>
>>>> > Thanks!
>>
>>>> > Sudha
>>
>> You could also install cygwin. That's free and i think it includes
>> sendmail. You might also think about spawning a perl or python script
>> from IDL, something along those lines.
>>
>> As far as ActiveX/COM goes, I haven't heard of there being a control
>> for a "default mail program." There might be such a program but it
>> might still not have any COM functionality exposed. Outlook, of
>> course, does expose COM functions, so if you have Outlook you can use
>> that.
>>
>> Another free SMTP mailer is Blat.http://www.blat.net/194/. I just
>> did some searching on the web, I do not use this myself.
>>
>> Jeff
>
> I forgot to point out that I don't think you would need the IDL-COM
> bridge for this. If you have IDL 6.3+ it has IDL objects that allow
> you to work with ActiveX/COM controls (they existed pre-IDL6.3 but
> were improved in that version). I've read/written data directly to/
> from Excel files using those controls and I don't have the IDL-COM
> Bridge.
Hi,
I do know that I'm answering an old post (sigh 5 years...), anyhow, I just found that it is quite easy to send emails via cmd (read spawn) with this program:
http://cmdemail.codeplex.com/
It worked quite fast and well for me on a win 7 machine. I hope this helps others also wanting to have their software sending emails. I found that trying to use telnet or blat may cause headaches...
Cheers,
Helder
|
|
|