| View previous topic :: View next topic |
| Author |
Message |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Wed May 18, 2005 7:34 pm Post subject: VDSIPP Question |
|
|
Does SMTP work with VDSIPP. I have been trying to get it to send mail to no avail. I know PGWare isnt really supporting it any more but was just curious if anybody else has used the smtp client to try and send mail from a VDS script.
I am using exact example in the help file and it never even trys to send the message. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Wed May 18, 2005 7:37 pm Post subject: |
|
|
Yup it works.. I use it in my current application..
Are you trying to go thru a proxy?
Also, I noticed for me anyway, that if the from adress is invalid, it would not send. Make sure you have a FROM email that has a valid domain name... |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Wed May 18, 2005 8:01 pm Post subject: Response |
|
|
Its a valid from address but for some reason I used a sniffer and I didnt even see it try and connect.
Can you send me the code in which you are using:
I am using the default and its not working. This is straight from the help file. Minus the spelling error.
| Code: |
INTERNET SMTP,CREATE,1
INTERNET SMTP,THREADS,1,OFF
INTERNET SMTP,CONNECT,1,my.mail.server.is.here,25
INTERNET SMTP,USERAGENT,1,"VDSWORLD MAILER"
INTERNET SMTP,FROM,1,""BServ" <valid@asd.com>"
INTERNET SMTP,TO,1,""BServ User" <valid@asd.com>"
INTERNET SMTP,SUBJECT,1,"BServ Response"
INTERNET SMTP,BODY,1,"hey there how are things with you?"
INTERNET SMTP,PRIORITY,1,3
INTERNET SMTP,SEND,1
INTERNET SMTP,DISCONNECT,1
INTERNET SMTP,DESTROY,1
goto poll
|
_________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Wed May 18, 2005 8:43 pm Post subject: |
|
|
| Use the SMTP demo that came with VDSIPP |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Thu May 19, 2005 5:03 am Post subject: |
|
|
| Theres a demo script that comes with VDSIPP; try that one - you simply need to enter the mail server info. Also note that MANY isp's are now blocking port 25 to restrict customers to using their smtp servers - which could definately be the reason you aren't able to connect or send email. If that's the case you'll need to use your isp's email server details when sending an email with the smtp demo. |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Thu May 19, 2005 11:28 pm Post subject: Interesting |
|
|
Interestingly enough I used a packet sniffer on my development system and it never even attempts to connect to my local mail server which is running sendmail and is accepted by my upstream provider. I installed blat to test as well and it worked just fine but this DLL never seems to even attempt to send the message out.
I understand how mail works as I manage 6 different mail servers and have never seen this problem before. Why this doesnt work is really weird. In fact in the same application im using the POP3 portion to read mail messages and using the TCP portion of VDSIPP to control a portion of my application. I would love to get this working but so far no dice.
Here is an explaination of what im writing. If anybody is interested in looking at the code I will send it to you to play with.
Basically what im doing is I have created a mailbox on my mail server for an address text@isptoolz.com. In my application when a message comes in I am reading the subject line for a "command' that tells my application what to send to the person sending the email. For instance if the subject is "help" it sends the application help file, if it is a URL it will grab the URL requested and save it in HTML format to a temporary directory, then the script strips the HTML tags and does a little formatting and sends the webpage back to the person that requested it (this is the part that is not working). The text file is local in the cache directory and formatted correctly, etc, etc but it wont send the text file that is read into a list.
I plan on doing some other things such as getting news headlines, stock quotes, etc to send via email in text only format so that text based systems (such as my blackberry) can have limited Internet access using email (which is what it does best).
Now you know my goal. If anybody is interested in troubleshooting the send message portion let me know. I for the life of me cannot get it to send. Authentication is not required on my server since my application is running on the local server but again as I stated the program never even tries to send the SMTP message being called from VDSIPP. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Fri May 20, 2005 12:10 am Post subject: |
|
|
What is the OS you are using.. never know..
Maybe I can try it out at the office where we have almost all the Windows versions.
But again you did try the SMTP demo that came with VDSIPP right?
And try port 26 also
And your using the latest VDSIPP?
Thanks |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Fri May 20, 2005 12:50 am Post subject: Results |
|
|
I finally got it to work a few minutes ago. I had to put in a wait statement after the send command. By doing this it sends the data correctly. It appears as though it does not do ANY communication until the send command is issued at which time if it doesnt complete in time it fails to issue the require "." on a single line by itself whereas the message was not being sent. So it works but I had to delay the script a bit so that it could finish communications.
BTW the OS is Windows 20000 SP2. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
|