Here is the rejection I'm getting.
Failed Recipient: Somebody@gmail.com
Reason: Remote host said: 550 5.7.1 [68.70.182.60] Messages missing a valid messageId header are not
5.7.1 accepted. m24-20020aed27d8000000b0031ed8c203f3si7715036qtg.266 - gsmtp
-- The header and top 20 lines of the message follows --
Received: from DESKTOP-EHED324 (UnknownHost [12.200.88.186]) by sm1.Company1.net with SMTP
(version=TLS\Tls
cipher=Aes256 bits=256);
Wed, 20 Jul 2022 14:34:49 -0400
Message-ID: <5c671334-91a1-4896-951d-52bd6ca50653>
MIME-Version: 1.0
From: "Company2" <sales@CompanyName.com>
To: Somebody@gmail.com
Date: 20 Jul 2022 14:33:32 -0400
Subject: Contract
Content-Type: multipart/mixed; boundary=--boundary_1_39386abc-11ab-448f-b2fc-f0ffd50e5e77
I have tried
But it still gets rejected by g mail recipients, others are OK.
Do I need something else in the Header for g mail?
I've looked for how to generate a valid message ID for g mail, but haven't found anything that describes exactly how to create a valid one.
Auguy
Sylvania/Toledo Ohio
Failed Recipient: Somebody@gmail.com
Reason: Remote host said: 550 5.7.1 [68.70.182.60] Messages missing a valid messageId header are not
5.7.1 accepted. m24-20020aed27d8000000b0031ed8c203f3si7715036qtg.266 - gsmtp
-- The header and top 20 lines of the message follows --
Received: from DESKTOP-EHED324 (UnknownHost [12.200.88.186]) by sm1.Company1.net with SMTP
(version=TLS\Tls
cipher=Aes256 bits=256);
Wed, 20 Jul 2022 14:34:49 -0400
Message-ID: <5c671334-91a1-4896-951d-52bd6ca50653>
MIME-Version: 1.0
From: "Company2" <sales@CompanyName.com>
To: Somebody@gmail.com
Date: 20 Jul 2022 14:33:32 -0400
Subject: Contract
Content-Type: multipart/mixed; boundary=--boundary_1_39386abc-11ab-448f-b2fc-f0ffd50e5e77
I have tried
Code:
Dim objGuid As Guid = New Guid()
objGuid = Guid.NewGuid()
Dim MessageID As String = "<" & objGuid.ToString() & "@CompanyName.com" & ">"
message.Headers.Add("Message-ID", MessageID)
Do I need something else in the Header for g mail?
I've looked for how to generate a valid message ID for g mail, but haven't found anything that describes exactly how to create a valid one.
Auguy
Sylvania/Toledo Ohio