I created a VB program alias that takes a message and responds to it.
For example, I can send an email from my cell phone with the subject line
"PING 192.168.1.1". It will ping the address and then respond with the
result. Works great.
The hard part was that it was doing just was Steve's was. It kept hanging in
memory on the iMail machine. Here is what I did to fix it:
1) Send an email to a batch file alias and have the batch file copy the file
referenced to another drive.
2) Run your program through the VB IDE. Comment out the line that gets the
file from Command$ and insert a temp line that grabs the file you copied.
Run through it line by line and find the bugs.
Try that with a few different files (emails) and make sure it is flawless.
Then remember to put back the lines that grabs the file!
Also, make sure you are delete the file referenced.
Mine works flawlessly, but I also only get emails from one email address -
my cell phone. I tried to make a Visual Basic nobody alias that would return
the mail recipient unknown, but it didn't work with CCs and BCCs.
T. Bradley Dean
(800) 793-8171 Ext. 336
[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of STEVEN MOORE
(IFL)
Sent: Wednesday, April 25, 2001 8:11 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [IMail Forum] Visual Basic Aliases!
You have to make sure sure that you VB programs do not have any forms, do
this by setting "Unattended Execution" flag in the project properties. I
have not tried using this with IMail but I have similar problems to this
which have been resolved by this.
Personally I would write the vb code into a ActiveX DLL and then call the
object methods from vbscript.
Steve
Steven Moore
Internet Development Engineer
Research Machines
+44 1235 823522
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Steven D. Fejes
> Sent: 25 April 2001 15:37
> To: [EMAIL PROTECTED]
> Subject: RE: [IMail Forum] Visual Basic Aliases!
>
>
> Grant, thank you very much for this information but I tried
> this and the VB
> program gets stuck in memory. Is there a special way you had
> to take in the
> information on the command line. I used the command function
> to retrieve
> the command line elements but for some reason the program
> starts and does
> nothing. I tried creating a simple program that would take
> the command line
> and output it to a text file and then end the program. But
> that does not
> seem to work either. If you happen to have some sample code
> that I may be
> missing it would be greatly appreciated. You can send it
> directly to me if
> you want at [EMAIL PROTECTED]
>
> Thanks,
> Steve Fejes
> employMAX, Inc.
> Technical Support
> (727) 499-9413
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Grant Griffith
> Sent: Tuesday, April 24, 2001 3:59 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [IMail Forum] Visual Basic Aliases!
>
>
> I have a subscription app I wrote that is in VB. I used a
> batch file as the
> actual alias that called out the VB App.
>
> Here is the batch file stuff.
>
> <batch file>
> REM The %1 must also be used, this is what passes the email
> message onto the
> application.
> REM Example: d:\batch\subscrib.exe <Insert Imail Spool Dir>
> <insert temp
> dir> %1
> d:\batchf~1\subscrib.exe d:\imail\spool\ c:\temp\ %1
> </batch file>
>
> The %1 passes the email to the VB application for processing.
>
> Sincerely,
> Grant Griffith, Vice President
> EI8HT LEGS Web Management Co., Inc.
> http://www.getafreewebsite.com
> 877-483-3393
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Steven D. Fejes
> Sent: Tuesday, April 24, 2001 2:56 PM
> To: [EMAIL PROTECTED]
> Subject: [IMail Forum] Visual Basic Aliases!
>
>
> Does anybody have any experience using Visual Basic for
> program aliases?
>
> Thanks,
> Steve Fejes
> employMAX, Inc.
> Technical Support
> (727) 499-9413
>
> Please visit http://www.ipswitch.com/support/mailing-lists.html
> to be removed from this list.
>
> An Archive of this list is available at:
> http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
>
>
> Please visit http://www.ipswitch.com/support/mailing-lists.html
> to be removed from this list.
>
> An Archive of this list is available at:
> http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
>
>
> Please visit http://www.ipswitch.com/support/mailing-lists.html
> to be removed from this list.
>
> An Archive of this list is available at:
> http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
>
Visit our website at http://www.rm.com
Standard Disclaimer:This message is confidential. You should not copy it or
disclose its contents to anyone. You may use and apply the information only
for the intended purpose. Internet communications are not secure and
therefore RM does not accept legal responsibility for the contents of this
message. Any views or opinions presented are only those of the author and
not those of RM. If this email has come to you in error please delete it
and any attachments. Please note that RM may intercept incoming and
outgoing e-mail communications.
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/