APIs & Integrations

bvstone
Member

SMTP API Not delivering Email

SOLVE

I am working with a customer to interace with HubSpot on an IBM i (AS400) system.

 

I created an email token, got the user and password, and tried to send an email using that information.

 

All logs connecting to the HubSpot SMTP relay say the email was accepted and queued for delivery, but I didn't receive it (yes, I checked spam as well).

 

I also don't see a history of the email in the dashboard for the account.

 

Here's a log of the communications:

Attempting to connect to server smtp.hubapi.com on port 587....
Waiting for connection...
Connection to server smtp.hubapi.com on port 587 succeeded!
<smtp.hubapi.com says:> 220 smtp.hubapi.com ESMTP R6H7kfThjW17s7df6K-Bj-0 - hssmtp
Sending EHLO command to smtp.hubapi.com.
<MAILTOOL says:> EHLO xxxxx
<smtp.hubapi.com says:> 250-smtp.hubapi.com at your service, [/172.16.31.222:25234]
Sending STARTTLS command.
<MAILTOOL says:> STARTTLS
<smtp.hubapi.com says:> 220 2.0.0 Ready to start TLS R6H7kfThjW17s7df6K-Bj-0 - hssmtp
SSL handshake succeeded!
Sending EHLO command to smtp.hubapi.com.
<MAILTOOL says:> EHLO xxxxxxx
<smtp.hubapi.com says:> 250-smtp.hubapi.com at your service, [/172.16.31.222:25234]
Sending AUTH LOGIN command.
<MAILTOOL says:> AUTH LOGIN
Sending User ID.
<smtp.hubapi.com says:> 334 VXNlcm5hbWU6 R6H7kfThjW17s7df6K-Bj-0 - hssmtp
<MAILTOOL says:> [user removed]
<smtp.hubapi.com says:> 334 UGFzc3dvcmQ6 R6H7kfThjW17s7df6K-Bj-0 - hssmtp
Sending Password.
<MAILTOOL says:> [password removed]
<smtp.hubapi.com says:> 235 2.0.0 Authentication successful. R6H7kfThjW17s7df6K-Bj-0 - hssmtp
<MAILTOOL says:> MAIL FROM: <email address removed>
<smtp.hubapi.com says:> 250 2.0.0 Sender address accepted. R6H7kfThjW17s7df6K-Bj-0 - hssmtp
<MAILTOOL says:> RCPT TO: <receipient removed>
<smtp.hubapi.com says:> 250 2.0.0 250 Recipient address accepted. R6H7kfThjW17s7df6K-Bj-0 - hssmtp
Sending <DATA> to start message.
<MAILTOOL says:> DATA
<smtp.hubapi.com says:> 354 Continue R6H7kfThjW17s7df6K-Bj-0 - hssmtp
<--MIME DATA [210 bytes]-->
Sending <.CRLF> to end message.
<MAILTOOL says:> .
<smtp.hubapi.com says:> 250 2.0.0 Ok queued as 1549549116344/e719b4af-6e4b-4cd3-94d3-a1491efa0c36 R6H7kfThjW17s7df6K-Bj-0 - hssmtp
Sending QUIT command to smtp.hubapi.com.
<MAILTOOL says:> QUIT
<smtp.hubapi.com says:> 221 2.0.0 cheers R6H7kfThjW17s7df6K-Bj-0 - hssmtp
0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

SMTP API Not delivering Email

SOLVE

Hi, @cjbaker.

 

Sincere apologies for the delayed response. I appreciate your patience while our team investigated your reports.

 

We checked our logs for the messages we discussed above. In both cases, we recorded a "Missing at least one required body: 'html' or 'text'" message, which indicates the message either lacked content or wasn't formatted properly.

 

Could you confirm that you included content for the email's body and provide an example of a message you passed to the SMTP API?

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
21 Replies 21
bvstone
Member

SMTP API Not delivering Email

SOLVE

@IsaacTakushi 

 

Done... result:

 

250 2.0.0 Ok queued as 1550598216905/918872bb-d487-4f32-972f-2c2ede960e33 J6Jfxt9-W6W0F2W2DBrSj0 - hssmtp

 

No email received.