login about faq

Solved! It turns out I didn't have the addto property with a value. Such a silly mistake.
Hi!
Does anyone have an example using amazonaws to send an email?
I have this settings:
Server Name: email-smtp.us-east-1.amazonaws.com
Port: 465
Use Transport Layer Security (TLS): SSL - YES
Authentication: Your SMTP credentials - see below
SMTP Username: xyz
SMTP Password: xyz

I tried using this example: http://www.example-code.com/foxpro/smtp_gmailSsl.asp
But it didn't work :( Something about "need new SMTP connection"

Thanks and regards!
Elizabeth Flores

asked Aug 07 '13 at 13:00

elizcelt's gravatar image

elizcelt
1112

edited Aug 07 '13 at 17:15


Unfortunately, "Something about...." doesn't really help anyone diagnose the problem. Can you post the results of the LastErrorText property in <pre> tags immediately after the call fails? It should provide more details to help solve the problem.

link

answered Aug 07 '13 at 14:09

jpbro's gravatar image

jpbro ♦
1.1k2618

Sorry about that.
This is the message

ChilkatLog:
SendEmail:
DllDate: Jul 10 2013
ChilkatVersion: 9.4.1.26
UnlockPrefix: 30-day trial
Username: DESARROLLO-PC:Desarrollo
Architecture: Little Endian; 32-bit
Language: ActiveX
VerboseLogging: 0
hcCurDate: Wed, 07 Aug 2013 14:28:22 -0500
hcExpire: 11/2013
recipients:
totalCount: 0
--recipients
renderToMime: createEmailForSending:
xSigningAlg: sha1
Auto-generating Message-ID
--createEmailForSending
renderToMime: Elapsed time: 16 millisec
--renderToMime
progressTotal: 29406
SmtpConnect:
SmtpHost: email-smtp.us-east-1.amazonaws.com
SmtpPort: 465
SmtpUsername: xyz
SmtpSsl: 1
StartTLS: 0
Need new SMTP connection
checkForExistingConnection: Elapsed time: 0 millisec
SMTP_Connect:
Connecting to SMTP server email-smtp.us-east-1.amazonaws.com:465
smtp_host: email-smtp.us-east-1.amazonaws.com
smtp_port: 465
smtp_user: xyz
ConnectTimeoutMs_1: 30000
calling ConnectSocket2
IPV6 enabled connect with NO heartbeat.
connectingTo: email-smtp.us-east-1.amazonaws.com
resolveHostname1:
Resolving domain name (IPV4) via gethostbyname
--resolveHostname1
GetHostByNameHB_ipv4: Elapsed time: 234 millisec
myIP_1: 192.168.1.77
myPort_1: 56718
connect successful (1)
clientHelloMajorMinorVersion: 3.1
buildClientHello:
majorVersion: 3
minorVersion: 1
numRandomBytes: 32
sessionIdSize: 0
numCipherSuites: 10
numCompressionMethods: 1
--buildClientHello
readIncomingTls_serverHello:
processTlsRecord:
processHandshake:
handshakeMessageType: ServerHello
handshakeMessageLen: 0x46
processHandshakeMessage:
MessageType: ServerHello
Processing ServerHello...
ServerHello:
MajorVersion: 3
MinorVersion: 1
SessionIdLen: 32
CipherSuite: RSA_WITH_AES_256_CBC_SHA
CipherSuite: 00,35
CompressionMethod: 0
Queueing ServerHello message.
ServerHello is OK.
--ServerHello
--processHandshakeMessage
--processHandshake
--processTlsRecord
--readIncomingTls_serverHello
HandshakeQueue:
MessageType: ServerHello
--HandshakeQueue
Dequeued ServerHello message.
readIncomingTls_6:
processTlsRecord:
processHandshake:
handshakeMessageType: Certificate
handshakeMessageLen: 0xfd4
processHandshakeMessage:
MessageType: Certificate
ProcessCertificates:
Certificate:
derSize: 1294
certSubjectCN: email-smtp.us-east-1.amazonaws.com
certSerial: 2BBEBF7BDEEBB9A5931FF13206050840
certIssuerCN: VeriSign Class 3 Secure Server CA - G3 --Certificate
Certificate:
derSize: 1520
certSubjectCN: VeriSign Class 3 Secure Server CA - G3
certSerial: 6ECC7AA5A7032009B8CEBCF4E952D491
certIssuerCN: VeriSign Class 3 Public Primary Certification Authority - G5
--Certificate
Certificate:
derSize: 1226
certSubjectCN: VeriSign Class 3 Public Primary Certification Authority - G5
certSerial: 35973187F3873A07327ECE580C9B7EDA
certIssuerCN:
--Certificate
NumCertificates: 3
Queueing Certificates message...
--ProcessCertificates
--processHandshakeMessage
--processHandshake
--processTlsRecord
--readIncomingTls_6
Dequeued Certificate message.
readIncomingTls_6:
processTlsRecord:
processHandshake:
handshakeMessageType: ServerHelloDone
handshakeMessageLen: 0x0
processHandshakeMessage:
MessageType: ServerHelloDone
Queueing HelloDone message.
--processHandshakeMessage
--processHandshake
--processTlsRecord
--readIncomingTls_6
DequeuedMessageType: ServerHelloDone
OK to ServerHelloDone!
No client certificate required by the server.
Encrypted pre-master secret with server certificate RSA public key is OK.
Sending ClientKeyExchange...
Sent ClientKeyExchange message.
Sending ChangeCipherSpec...
Sent ChangeCipherSpec message.
Derived keys.
Installed new outgoing security params.
Sending FINISHED message..
algorithm: aes
keyLength: 256
Sent FINISHED message..
readIncomingTls_changeCipherSpec2:
processTlsRecord:
processChangeCipherSpec:
ccsProtocolType: 1
--processChangeCipherSpec
--processTlsRecord
--readIncomingTls_changeCipherSpec2
readIncomingTls_handshakeFinished2:
processTlsRecord:
processHandshake:
handshakeMessageType: HandshakeFinished
handshakeMessageLen: 0xc
processHandshakeMessage:
MessageType: HandshakeFinished
FinishedMsgLen: 12
Queueing Finished message.
--processHandshakeMessage
--processHandshake
--processTlsRecord
--readIncomingTls_handshakeFinished2
Dequeue the FINISHED message...
Dequeued Finished message.
Handshake completed successfully.
Secure Channel Established.
Turning on TCP_NODELAY.
socketOptions:
SO_SNDBUF: 8192
SO_RCVBUF: 8192
TCP_NODELAY: 1
--socketOptions
socketConnect: Elapsed time: 905 millisec
SmtpCmdResp: 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-474393583
initialResponse: Elapsed time: 0 millisec
ehloCommand: EHLO Desarrollo-PC
SmtpCmdSent: EHLO Desarrollo-PC<crlf>
sendEhlo: Elapsed time: 0 millisec
SmtpCmdResp: 250-email-smtp.amazonaws.com
SmtpCmdResp: 250-8BITMIME
SmtpCmdResp: 250-SIZE 10485760
SmtpCmdResp: 250-AUTH PLAIN LOGIN
SmtpCmdResp: 250 Ok
ehloResponse: 250-email-smtp.amazonaws.com
250-8BITMIME
250-SIZE 10485760
250-AUTH PLAIN LOGIN
250 Ok
login_method: LOGIN
auth_login_1:
SmtpCmdSent: AUTH LOGIN<crlf>
SmtpCmdResp: 334 VXNlcm5hbWU6
SmtpCmdSent: QUtJQUlHUjdKRENRMzJLSlpRRUE=<crlf>
SmtpCmdResp: 334 UGFzc3dvcmQ6
SmtpCmdSent: <password><crlf>
SmtpCmdResp: 235 Authentication successful.
--auth_login_1
CONNECTED to ESMTP server email-smtp.us-east-1.amazonaws.com:465
authentication: Elapsed time: 639 millisec
ConnectionType: SSL/TLS
--SMTP_Connect
checkOrMakeSmtpConnection: Elapsed time: 1544 millisec
--SmtpConnect
mailFrom:
mailFrom: aprovechamiento@sistemaadministrativointegral.com.mx
SmtpCmdSent: MAIL FROM:<aprovechamiento@sistemaadministrativointegral.com.mx><crlf>
SmtpCmdResp: 250 Ok
--mailFrom
mailFrom: Elapsed time: 156 millisec rcpt_to:
No SMTP recipients.
--rcpt_to
smtpConversation: Elapsed time: 156 millisec
Failed.
--SendEmail
--ChilkatLog

Thanks :)

link

answered Aug 07 '13 at 15:44

elizcelt's gravatar image

elizcelt
1112

It looks like it is connecting - but there is a message that there are no SMTP recipients - do you call the AddTo method and add a recipient to the message?

Maybe you could post your modified code? Lastly, at what line exactly does the library fail, when calling .SendEmail, or somewhere else?

link

answered Aug 07 '13 at 15:51

jpbro's gravatar image

jpbro ♦
1.1k2618

edited Aug 07 '13 at 21:15

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
×4

Asked: Aug 07 '13 at 13:00

Seen: 5,005 times

Last updated: Aug 07 '13 at 21:15

powered by OSQA