Member Login
member
passwd
remember me on this computer.

- join now -

Search

Neat Stuff

Visit our shop for nerds in control lifestyle products.

Cool stuff
Select a topic of interest:
...and press:
Fortune
Q: Why did the programmer call his mother long distance?
A: Because that was her name.
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
from the Automation List department...
Using Visual Basic 6.0 to send auto sms with condition
Engineering topic
advertisement
Posted by Eddie on 27 March, 2008 - 2:10 am
Hi,

I am having some problem writing code using Windows Visual Basic 6 to send out sms automatically with condition. Can anyone give me sample code for reference?

Posted by Michael Batchelor on 28 March, 2008 - 11:11 pm
How are you trying to send the message? While one can in theory write directly to SMS services, it's tremendously easier to simply use the email gateways almost every service provider has. Then you just dump out an SMTP message with the info directed to the recipient. If you don't want to write your own SMTP code, then just buy one of the SMTP controls on the market. They all work, or at least all the ones I've seen work.

MB

--
Michael Batchelor
www.IndustrialInformatics.com

Posted by Marc Sinclair on 30 March, 2008 - 9:19 pm
Hi,
I now use HTTP interface, it avoids all the SMTP trouble (email is almost useless now thanks to spam) and SMS can be done in a single curl command.

I use a provider called aql, they have some sample code on their site.

http://www.aql.com/site/developerinfo2.php

http://curl.haxx.se/download.html

Marc Sinclair

From Control Engineering magazine...
Related articles from Control Engineering magazine
Above articles copyright 2008 Reed Business Information. Subject to its Terms of Use.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2008 Control Technology Corporation. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, PostgreSQL and Apache. Be happy.

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!