login about faq

Hi Team,

   We are using the chilkat component to send the mail to the users. when we send the bulk mails(looping

through), most of them receiving and some users not are receiving the emails which we sent and got the below error. This issue happening intermittently.Please help me to resolve this issue ASAP. Urgent issue.

Chilkat Version : ChilkatDotNet2_x64 - 8.1.2.0

Error:

ChilkatLog: SendEmail: DllDate: Mar 5 2007 SMTP_Connect: Connecting to SMTP server smtp1.xx.com:25 smtp_host: smtp1.xx.com smtp_port: 25 smtp_user: NULL trying_auth_method: NONE 421 4.7.0 Error: too many connections InitialResponse: 421 4.7.0 Error: too many connections Failed to get initial SMTP response.. The SMTP server may be denying access for this domain. Failed to connect to SMTP server.

Code sample:

        Chilkat.MailMan mailman = new Chilkat.MailMan();

        mailman.UnlockComponent("XXXXXX");
        mailman.SmtpHost = "smtp1.xx.com";
        mailman.SmtpPort = 25;

        Chilkat.Email email = new Chilkat.Email();
        email.Subject = "Test Email";
        email.Body = "This is the test email. please ignore.";
        email.AddTo("deepu", "deeparaj.j@gmail.com");

        bool success = mailman.SendEmail(email);

Thanks, Deeparaj

asked May 25 at 05:01

deeparaj's gravatar image

deeparaj
31


You can increase the connections on the email server, both unix and windows have configurations for this.

or when you get the error, set up a loop, sleep for some time, and try again.

link

answered May 25 at 11:03

cdlvj130's gravatar image

cdlvj130
9691017

Thanks for the quick reply. I am using windows server, do you have idea where to increase connections ?

email server means application server (application hosted) right or you mean something else like smtp server related?

let me try to put the sleep for sometime , i will try this solution.

(May 26 at 02:48) deeparaj

in the registry under TCP, you will have to google the know how. I think TCPConnections is the verb.

You still should check the success return code, and do something when not good.

(May 26 at 09:33) cdlvj130

I think the creation of the Mailman instance should not be inside the loop. Every Mailman will cause a new connection to the SMTP server. I guess it should be something like this:

Chilkat.MailMan mailman = new Chilkat.MailMan();
mailman.UnlockComponent("XXXXXX");
mailman.SmtpHost = "smtp1.xx.com";
mailman.SmtpPort = 25;

For.... Chilkat.Email email = new Chilkat.Email(); email.Subject = "Test Email"; email.Body = "This is the test email. please ignore."; email.AddTo("deepu", "deeparaj.j@gmail.com"); bool success = mailman.SendEmail(email); End For;

link

answered May 25 at 11:29

Gert's gravatar image

Gert ♦
629141824

Thanks for quick reply. I done the code like you mentioned already. i missed out to mention for loop in the code while post.

(May 26 at 02:50) deeparaj
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2

Asked: May 25 at 05:01

Seen: 441 times

Last updated: May 26 at 09:33

Related questions

powered by OSQA