Jump to content

Round-trip Email Test


Recommended Posts

I'm looking for some help on a Round-trip email testing script to make sure that my email paging server is up and running. The idea is to send an email through smtp, then check the result on my pop server. There are four parts to this script. Send the test email (which I got working fine), check the pop sever to see if it arrived (not even close to figuring out). If the test email made it, then delete the test email and end the script. If it didn't make it, send an alert through an alternative email system (got this one working too).

Where I'm getting suck is checking the test pop email account. I'm fairly new to writing scripts and would like some help.

Thanks

Link to comment
Share on other sites

I'm looking for some help on a Round-trip email testing script to make sure that my email paging server is up and running. The idea is to send an email through smtp, then check the result on my pop server. There are four parts to this script. Send the test email (which I got working fine), check the pop sever to see if it arrived (not even close to figuring out). If the test email made it, then delete the test email and end the script. If it didn't make it, send an alert through an alternative email system (got this one working too).

Where I'm getting suck is checking the test pop email account. I'm fairly new to writing scripts and would like some help.

Thanks

there are at least two POP3 libraries (UDFs) on this list. Try one of them to connect to the POP3 server, list and/or retrieve your test message.

http://www.autoitscript.com/forum/index.ph...838&hl=pop3

http://www.autoitscript.com/forum/index.ph...mp;#entry151770

Cheers

Kurt

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Thanks for your help Kurt.

I'm able to make the connection and return a list of what is in the mailbox, but I'm still having trouble with the variables. I want this script to return a value of how many messages are in the mailbox. So far the only variable I can get back is if there is an error or not. The example that was given returns a value that is displayed in an array. I don't know how to extract the number of messages to preform "If statements" on.

My goal is to get a variable that is equal to the number of messages. If there are more or less than one message then "this", else "that". So far I'm stuck on getting the number of messages that are in the mailbox variable. Does anyone know how to get that variable out of this script?

Link to comment
Share on other sites

I want to extract the variables from the array ($list) and work with them. That is where I'm stuck.

Local $list = _Pop3List()

If Not @error Then

_ArrayDisplay($list, "")

Else

ConsoleWrite("List commande failed" & @CR)

EndIf

The data is there, but I don't know how to work with it. I'm looking for a way to take the array that is made by $list and work with the data outside of the array. Any positive ideas would be helpful. Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...