login about faq

Anyone can help? Thanks. send email function is in a for loop.

send 1st email: success, sleep 1 minutes. send 2nd email: failed, sleep 1 minutes. send 3rd email: success, sleep 1 minutes. ...

Error HTML:

Chilkat:ChilkatLog:

AddBcc:

DllDate: Jun 13 2016
ChilkatVersion: 9.5.0.58
UnlockPrefix: blahblah
Architecture: Little Endian; 64-bit
Language: .NET 4.5 / x64
VerboseLogging: 0
name: 
address: blahblah@blahblah.com

--AddBcc

--ChilkatLog

asked Aug 16 at 14:50

fcbqs1111's gravatar image

fcbqs1111
11

edited Aug 16 at 14:52


You are showing the LastErrorText for the Email object (for the call to the AddBcc method).

What you need is to show the MailMan object's LastErrorText for the SendEmail method call.

link

answered Aug 16 at 14:53

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Chilkat:MailManSmtp Login Status : ChilkatLog:

SendEmail:

DllDate: Jun 13 2016
ChilkatVersion: 9.5.0.58
UnlockPrefix: xxxxxxx
Architecture: Little Endian; 64-bit
Language: .NET 4.5 / x64
VerboseLogging: 0
Component successfully unlocked using purchased unlock code.
sendEmailInner:
  renderToMime:
    createEmailForSending:
      xSigningAlg: sha1
      Auto-generating Message-ID
    --createEmailForSending
    renderToMime: Elapsed time: 0 millisec
  --renderToMime
  sendMimeInner:
    progressTotal: 17220
    ensureSmtpSession:
      ensureSmtpConnection:
        SmtpHost: smtp.emailsrvr.com
        SmtpPort: 25
        SmtpUsername: xxxx@xxxx.net
        SmtpSsl: 0
        StartTLS: 0
        smtpConnect:
          smtpHostname: smtp.emailsrvr.com
          smtpPort: 25
          connectionIsReady:
            Using existing/open SMTP connection to send email.
          --connectionIsReady
          ConnectionType: Unencrypted TCP/IP
        --smtpConnect
      --ensureSmtpConnection
    --ensureSmtpSession
    sendSmtpEmail:
      sendNonPipelining:
        sendMailFrom:
          mailFrom: demo@xxx.xxx
          sendCmdToSmtp:
            SmtpCmdSent: MAIL FROM:<demo@xxx.xxx><CRLF>
          --sendCmdToSmtp
        --sendMailFrom
        readSmtpResponse:
          SmtpCmdResp: 421 4.4.2 smtp29.relay.dfw1a.emailsrvr.com Error: timeout exceeded
        --readSmtpResponse
        smtpRset:
          Sending RSET command.
          smtpSendGet2:
            sendCmdToSmtp:
              SmtpCmdSent: RSET<CRLF>
            --sendCmdToSmtp
          --smtpSendGet2
        --smtpRset
      --sendNonPipelining
    --sendSmtpEmail
  --sendMimeInner
--sendEmailInner
Failed.

--SendEmail --ChilkatLog

link

answered Aug 16 at 15:02

fcbqs1111's gravatar image

fcbqs1111
11

When SendEmail is called, the connection to the SMTP server is kept open so that a subsequent call to SendEmail can continue using the same connection (rather than re-connecting, re-authenticating, etc.)

When your app slept for 1 minute, there was a period of inactivity. When you tried to call SendEmail again, the server responded with:

SmtpCmdResp: 421 4.4.2 smtp29.relay.dfw1a.emailsrvr.com Error: timeout exceeded
Apparently, the "timeout exceeded" was the fact that the connection was idle for so long. The solution is to simply disconnect prior to sleeping. Call mailman.CloseSmtpConnection before sleeping. The next call to SendEmail will automaticaly re-establish the connection and all will be fine..

link

answered Aug 16 at 15:09

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

OK, thanks. it is too wired because 32 bit dll seems working fine.

When switch to 64 bit, i have to call Pop3EndSession() for POP3 and CloseSmtpConnection() for SMTP.

(Aug 16 at 15:14) fcbqs1111

It has nothing to do with 32-bit vs. 64-bit. That's just a red herring...

(Aug 16 at 15:18) chilkat ♦♦
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:

×184
×7

Asked: Aug 16 at 14:50

Seen: 219 times

Last updated: Aug 16 at 15:18

powered by OSQA