We help IT Professionals succeed at work.

Software caused connect abort smarteremail

robrodp
robrodp asked
on
1,500 Views
Last Modified: 2014-12-02
I am geting this when I send an email with my smarteremail server using persits aspemail

Windows 2003

Software caused connect abort



Any ideas
Comment
Watch Question

Scott FellDeveloper
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013

Commented:
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.
robrodpProgrammer

Author

Commented:
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

Scott FellDeveloper
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013

Commented:
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)
robrodpProgrammer

Author

Commented:
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
Developer
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
robrodpProgrammer

Author

Commented:
Well

I guess that did the trick,

You are the the man...

Thx 1,000,000
robrodpProgrammer

Author

Commented:
An expert is well... an expert

Thx Scott and Experts Exchange of course.

You are worth every penny

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.