forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help with VDSIPP.DLL

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
kc7aad
Contributor
Contributor


Joined: 09 Oct 2005
Posts: 53
Location: Spokane Washington

PostPosted: Sat Dec 02, 2006 12:40 am    Post subject: Help with VDSIPP.DLL Reply with quote

Hi everyone.. I need a little help getting my grasp around the vdsipp.dll...

Here is a snippet of my code, and basically what I am trying to do is get an understanding of the dll and the configuration settings i need to do before I re-do some of my program.
Problem is, it doesn't appear to be working. I am just trying to get it to send an email when I click the :SENDBUTTON, however, I am not getting any response back in the status bar, as to whether it is actuall connected to the SMTP Server. I am trying to use GMails (smtp.gmail.com). Mayeb this is the problem, i'm not sure.

Code:

:SENDBUTTON
  INTERNET SMTP,USERAGENT,1,"Network Monitor"
  INIFILE OPEN,\PROGRAM FILES\NETWORK MONITOR\NETMON.INI
  %%EUSER = @INIREAD(SETTINGS,EUSER)
  %%EPASS = @INIREAD(SETTINGS,EPASS)
  %%ESERVER = @INIREAD(SETTINGS,ESERVER)
  %%PORT = @INIREAD(SETTINGS,PORT)
  %%EMAIL = @INIREAD(SETTINGS,EMAIL)
#    INFO You are currently logged in as %%EUSER
#    INFO Your are currently using the %%eserver server
  INTERNET SMTP,AUTHENTICATE,1,%%EUSER,%%EPASS
  INTERNET SMTP,CONNECT,1,%%ESERVER,%%PORT
  GOTO EVLOOP
:SMTP1ONCONNECT
  INTERNET SMTP,FROM,1,"Network Monitor"
  INTERNET SMTP,TO,1,%%EMAIL
  INTERNET SMTP,SUBJ,1,NetMon
  INTERNET SMTP,BODY,1,NetMon is reporting that %A is down.
  DIALOG SET,STATUS,@INTERNET(SMTP,CONNECTED,1)
  INTERNET SMTP,SEND,1
  GOTO EVLOOP
:SMTP1ONSENDDONE
  %X = @INTERNET(SMTP,RETURNCODE,1)
  %Y = @INTERNET(SMTP,TRANSFERBYTES,1)
  DIALOG SET,STATUS,%X
  INFO %X
  INTERNET SMTP,DISCONNECT,1
  GOTO EVLOOP
:SMTP1ONDISCONNECT
  GOTO EVLOOP
:QUITBUTTON
  goto CLOSE
:Close
  INTERNET SMTP,DESTROY,1
  exit


Alo.. It isn't that I didn't used the DEFINE and EXTERNAL commands at the start of the script.. I have.



Thanks for any help.
"And now.. Back to - TRIAL AND ERROR!!"


Rod
Back to top
View user's profile Send private message Yahoo Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Dec 02, 2006 12:51 am    Post subject: Reply with quote

I believe Gmail uses SSL and is on port 995. I don't recall, but I don't
believe VDSIPP is capable of SSL.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
kc7aad
Contributor
Contributor


Joined: 09 Oct 2005
Posts: 53
Location: Spokane Washington

PostPosted: Sat Dec 02, 2006 1:26 am    Post subject: Reply with quote

GMail's help info says it uses 995 for pop, but uses 465 or 587 for smtp. Still I believe you are correct.. It uses ssl. Any way to get thru that? Any other email services (yahoo, hotmail, ect...) that don't use it, but would allow me to use this dll?? There's gotta be one, it's just finding the right one!! I am using variables in the script, so I can easily change it.
Back to top
View user's profile Send private message Yahoo Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Dec 02, 2006 1:30 am    Post subject: Reply with quote

Yeah, my bad, 465 for smtp.

And I do not know of any way around the SSL myself, or of any other free
email services that use smtp without SSL. I believe hotmail and yahoo
offer pop/smtp, but I believe those are paid services, so I don't know if
they use SSL.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Dec 02, 2006 1:32 am    Post subject: Reply with quote

Have you tried using "FreePOPs"? It's a local server for your own
computer that logs into hotmail, yahoo, gmail etc and allows you to
get your email from those web emails via a normal email program.

So you could have that running, and since it acts as a normal email
server.... Wait, I don't know if you can send emails out through FreePOPs
though.

You might have to go read up on it at http://www.freepops.org/

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Sat Dec 02, 2006 1:41 am    Post subject: Re: Help with VDSIPP.DLL Reply with quote

kc7aad wrote:
Alo.. It isn't that I didn't used the DEFINE and EXTERNAL commands at the start of the script.. I have.

Rod, do you also create the internet client? With threads ON? i.e.

INTERNET SMTP,CREATE,1
INTERNET SMTP,THREADS,1,ON



I also noticed you're using: INTERNET SMTP,BODY,1,NetMon is reporting that %A is down.

which should be: INTERNET SMTP,BODY,1,NetMon is reporting that %%ESERVER is down.

Also this line should say that the server is online... not that it is down.


BTW you should change: INTERNET SMTP,USERAGENT,1,"Network Monitor" - which results in email's from line showing Network.Monitor@mail.server.name.com

to something like: INTERNET SMTP,FROM,1,""Network Monitor" <netmon@netmon.com>" - which will make the email's from line show Network Monitor


PS it works fine with my ISP, which uses port 25.

_________________
cheers

Dave
Back to top
View user's profile Send private message
kc7aad
Contributor
Contributor


Joined: 09 Oct 2005
Posts: 53
Location: Spokane Washington

PostPosted: Sat Dec 02, 2006 4:27 am    Post subject: Reply with quote

Thanks Dave and Garrett for your posts. I did not know about FreePOPs. I will definatley look into it, because it seem to constantly have this issue with out IT department. Even though I take care of an entire subnet for them, which is about 150 workstations, they refuse to let me have my own troubleshooting tools. So I am constantly having to find ways around them.

As for Dave's Suggestions...
I did Create the connection, and turn on Thread. Good catch!! As for the BODY area, it has to be %A, because in my script, %%ESERVER is the SMTP Server. In my case %A are workstations that I am pinging to make sure they are alive. Since I have the entire program go thru a list of 10 WS's, I really need to change them to %a, %b, %c, etc..


I guess maybe i'll try the FreePOPs, and see if I can get it to work thru one of my gmail, or yahoo accounts. If it works great. If not, I'll have to figure something out.



Thanks for your help guys!! So far you've bailed me out on more than I could return!!
How about any other thoughts?
Back to top
View user's profile Send private message Yahoo Messenger
kc7aad
Contributor
Contributor


Joined: 09 Oct 2005
Posts: 53
Location: Spokane Washington

PostPosted: Sat Dec 02, 2006 5:33 am    Post subject: Reply with quote

OK.. so tried FreePOPs as well as HotPOP. Neither one has quite what I need. Maybe I should setup my own SMTP server. It would help for this project, but I don't want to have to do one for everytime I distribute this program.

Any other ideas?
Back to top
View user's profile Send private message Yahoo Messenger
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Sat Dec 02, 2006 5:58 am    Post subject: Reply with quote

It works fine with my Yahoo email account. I didn't try with my Hotmail account as it's HTTP, not POP/SMTP.

BTW I noticed the subject was blank in the emails... and then noticed a typo in your code:

INTERNET SMTP,SUBJ,1,NetMon

Which I changed to INTERNET SMTP,SUBJECT,1,%%ESERVER Status Wink

_________________
cheers

Dave
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Sat Dec 02, 2006 8:42 am    Post subject: Reply with quote

You wont be able to use secured smtp email (SSL encrypted) with vdsipp. The dll does not support it.

You will need to setup an smtp server that allows you to send out mail, note that if you do distribute this program you will want to leave the mail server portion to be configurable. You probably do not want to include a user/pass to a valid smtp server as it can be sniffed out very fast and then be used to spam with.

Hotmail uses WebDev, the stopped supporting pop3/smtp awhile back. Yahoo requires a paid subscription to use their pop3/smtp service. There to my knowledge isn't really a free service out there providing smtp/pop3.

Your ISP/Work place should provide you with a network email address to send mail with, or you could very well purchase a domain, and rent webspace at any webhost to get smtp/pop3 access.
Back to top
View user's profile Send private message
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Sat Dec 02, 2006 10:15 pm    Post subject: Reply with quote

There is a little program called sTunnel that I believe can help you establishing an SSL connection. A friend of mine uses it in a PowerBasic program. It's an exe file as far as I know so it could be called from a vds program. Don't know the website to get it but Google will undoubtably help you there.

Very Happy
Jan
Back to top
View user's profile Send private message Visit poster's website
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Sun Dec 03, 2006 2:44 am    Post subject: Reply with quote

Hi

In my distributed applications I provide every registered user with an email account on an publicly available Authenticated SMTP server, that I have created using a vISP account. Each user has to log in once a day, and the code then uses the email account to post error reports (seeking permission first) sales reports etc.,

VDSIPP does allow authentication..

_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Sun Dec 03, 2006 6:16 am    Post subject: Reply with quote

You could also look at VPOP3 which is POP3 server software that runs on almost any windows PC ( http://www.pscs.co.uk/ )
_________________
Andrew GRAY
If you don't know I am looking for work, I won't get the job.

andrewrcgray.com
Back to top
View user's profile Send private message Send e-mail
kc7aad
Contributor
Contributor


Joined: 09 Oct 2005
Posts: 53
Location: Spokane Washington

PostPosted: Mon Dec 04, 2006 6:16 am    Post subject: Reply with quote

Thanks everybody for your help. I'm not quite sure what I am going to do yet, but it is something I would like to be able to provide to my app. It's just a matter of how long it is going to take me to get it out there.


Rod
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group