Link to home
Start Free TrialLog in
Avatar of robrodp
robrodpFlag for Mexico

asked on

Software caused connect abort smarteremail

I am geting this when I send an email with my smarteremail server using persits aspemail

Windows 2003

Software caused connect abort



Any ideas
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

I have used aspemail with smartermail on both shared servers and my own so I know this should work.

It is going to be a matter of your smtp settings or your code.   Are you sending one email at a time or sending 1000 emails in the "To:"?    If you send out only one email does it work?  Try the code sample for sending out one email http://www.aspemail.com/manual_02.html.  If you need help determining how you are sending out mail, post your code here.

From the persists help site http://support.persits.com/show.asp?code=PS02030488
1. The size of the message being sent might exceed the maximum message size allowed by your SMTP server. The default limit for the Microsoft SMTP Service is 2048 KB and can be changed via MMC (Windows NT) or Internet Information Services (Windows 2000).

Note that if your message contains a file attachment, the Base64-encoded attachment size is roughly 37% larger that the original file. This means each kilobyte of an attachment increases the size of your message by roughly 1400 bytes.

2. This error message may also occur if the number of email addresses you are specifying for the message exceeds the limit of recipients per message. The Microsoft SMTP service has a default limit of 100 and this can be changed in the same place as above.

3. Open the "Access" tab of the SMTP Server properties and click the "Connection..." button. Make sure that the SMTP service is not configured to deny connections from the machine running AspEmail.

If you are using a different SMTP server other than the Microsoft service, you will probably have to enable logging on it and inspect the logs to find out exactly what the SMTP server is rejecting.

4. Anti-virus software installed on your network may be configured to block port 25 (the default SMTP port) to prevent mass-mailing worms from spreading.
Avatar of robrodp

ASKER

This is my code belod}w

I send it once and it works. I send it a second time and it gives the error. I wait a while and it works again.

I have used this code many time without issues.

I conclude:

1. The asp code is right, unless I am not closing a connection. Don't know if necessary if so how.

2.There is a timing  issue somewhere in the server or smarteremail. No idea of how to troubleshoot

3. There is an aspemail (persist) issue. No idea of how to troubleshoot

4. There is a hardware problem. Softlayer syas the hardware is ok

Port 25 is ok... I have disabled the firewall and antivirus to no avail.

Where can I see the logs of what id}s going on with the server. Can't find anything in the event viewer

The cpu is at 10% usage max

Any ideas?


<%Set ObjMail = Server.CreateObject("Persits.MailSender")
objMail.Host= "mail.apuntate.com.mx"
objMail.UserName = "UserName"
objMail.Password = "PassWord"
objMail.Port=25

Body = "Hola yo" 
objMail.From = "info@mydomain.com"
objMail.FromName="Roberto Parker"
objMail.AddAddress  "somebody@gmail.com"
objMail.Subject = "test"
objMail.Body=Body

' Send it!
objMail.Send
set ObjMail=Nothing

Open in new window

Are you on a shared server or dedicated server?  

If on a shared server, can you find out what the alternative port is and try changing the port for that.  Also, does Softlayer have any sending limits set up?

Are you using plesk?

For the code you posted, is that the only thing on the page or is there any looping?  If you have a loop, are you creating the object once or is the set ObjMail inside of the loop?

Set ObjMail = Server.CreateObject("Persits.MailSender")
objMail.Host= "mail.apuntate.com.mx"
objMail.UserName = "UserName"
objMail.Password = "PassWord"
objMail.Port=25

' ----------- start looping 10 times ------------
For x = 1 to 10

Body = "Hola yo" 
objMail.From = "info@mydomain.com"
objMail.FromName="Roberto Parker"
objMail.AddAddress  "somebody@gmail.com"
objMail.Subject = "test"
objMail.Body=Body

' Send it!
objMail.Send

Next
' ----------- end loop------------


set ObjMail=Nothing

Open in new window


If you are saying it has worked before and now errors, it sounds like there must be some type of change in either the shared service or an update that could have automatically occurred in smartermail or plesk if you use that.

Do you have access to the main admin domain admin in smartermail?  Not just the user that is the main admin or admin.  Is smartermail running in the stand alone default webserver or do you have it running on iis?  (the stand alone is the default)
Avatar of robrodp

ASKER

It is on a dedicated server..

I guess I have complete control over smarteremail

The script is as plainas I sent it. No loops. Just one email.

Test it:

http://apuntate.com.mx/sendtest1.asp

You send one and 90% of the times it works,, the other an error,

I also tried mailbee... with the same results.

I have no clue as to what to do. I have made no changes, in limits etc.

It seems to be a smarteremail issue

Any suggestions will be welcome
ASKER CERTIFIED SOLUTION
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of robrodp

ASKER

Well

I guess that did the trick,

You are the the man...

Thx 1,000,000
Avatar of robrodp

ASKER

An expert is well... an expert

Thx Scott and Experts Exchange of course.

You are worth every penny