comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: sending email via idl?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: sending email via idl? [message #60739] Fri, 06 June 2008 08:07 Go to next message
jeffnettles4870 is currently offline  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 Go to previous messageGo to next message
jeffnettles4870 is currently offline  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 #60753 is a reply to message #60745] Thu, 05 June 2008 10:40 Go to previous messageGo to next message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
Haje Korth wrote:
> How about mapisend? H.
> or http://www.beyondlogic.org/solutions/cmdlinemail/cmdlinemail .htm


... yes... but they requires to have some software being installed...
which is not that portable! The Linux embedded send mail program is
great in that aspect!!

Jean
Re: sending email via idl? [message #60756 is a reply to message #60753] Thu, 05 June 2008 10:30 Go to previous messageGo to next message
skapali is currently offline  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 #60757 is a reply to message #60756] Thu, 05 June 2008 10:13 Go to previous messageGo to next message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
or http://www.beyondlogic.org/solutions/cmdlinemail/cmdlinemail .htm

(Google has tons of hits ffor this.)

H.

"Andy Heaps" <a.j.heaps@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
Re: sending email via idl? [message #60758 is a reply to message #60757] Thu, 05 June 2008 10:11 Go to previous messageGo to next message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
How about mapisend? H.


"Jean H" <jghasban@DELTHIS.ucalgary.ANDTHIS.ca> wrote in message
news:g295fv$f5u$1@news.ucalgary.ca...
> 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
Re: sending email via idl? [message #60760 is a reply to message #60758] Thu, 05 June 2008 09:48 Go to previous messageGo to next message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
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
Re: sending email via idl? [message #60765 is a reply to message #60760] Thu, 05 June 2008 01:57 Go to previous messageGo to next message
Andy Heaps is currently offline  Andy Heaps
Messages: 22
Registered: March 2006
Junior Member
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
Re: sending email via idl? [message #82740 is a reply to message #60739] Fri, 11 January 2013 03:46 Go to previous message
Helder Marchetto is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: RESOLVE_ALL problem
Next Topic: sending email via idl?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:22:58 PDT 2025

Total time taken to generate the page: 0.00658 seconds