WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

SMTP Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Using SmtpSendFile with p3Open

Keywords:     SmtpSendFile p3Open

Question:

I am getting a error when I try to collect mail(with Eudora lite) after using smtpSendFile.

This is what happens:

  1. boot up and collect mail w/Eudora ...ok
  2. run script below.... ok
  3. try to collect mail w/Eudora....error I get:
    Err.Can't get lock
    Connection reset by remote side(10054)
    
  4. reboot to collect mail ..ok
Is it that Eudora won't play nice with WinBatch, WinBatch leaves a mess, crummy ISP, missing commands in script or some kind of operator error?

I have tried changing the options under mapi in Eudora:

Use Eudora Mapi Server
Never 
When Eudora is running
Always
none of the choices will allow Eudora to collect mail wo/error
This be the part of my script that is causing the error
	:oncemore
	hname = p3Open(mserver, user, passwd )
	if hname == @FALSE 
	   GoTo oncemore
	else 
	   GoTo sendmail
	endif
	:sendmail
	rc = smtpSendFile (mserver, whofrom, whoto, subj, fnameout) 

Answer:

Can's send and receive mail at the same instant. Get a p3Close in there before trying the smtpSendMail.

A couple issues here:

  1. The p3 commands are for accessing your POP3 mailbox, which is an INBOX only. If you just want to send mail from the WIL file directly, you just need to call smtpSendFile.

  2. If you do need to receive messages thru the p3 commands, you should call p3Close after you're thru with it. Otherwise your ISP could think it's still open, & when you run Eudora to get your mail, your ISP will think 2 people are trying to access the mailbox at the same time, which I don't think is normally allowed.

Article ID:   W12681
Filename:   SMTPSendFile with p3Open.txt
File Created: 1999:04:15:16:48:54
Last Updated: 1999:04:15:16:48:54