I send automatic notification mails from an HMG ap using hb_sendmail
Since last weeks, GMAIL recipients messages are returned with the following error:
"Mail delivery failed: returning message to sender"... "A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:"... blah blah blah...
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [...] Messages missing a valid messageId header are not
550 5.7.1 accepted. ... - gsmtp
It appears to be some anti-spam control or something like that...
I still use gmail.
Google has modified so you do not have turn security down.
You must turn on 2 step verification then register the program you are using with google.
This is done inside the gmail account. It will then have 2 passwords. your original
for working with gmail account outside the program and a special password for the progam for sending mail.
Here is an example of what is in the help file for my clients.
Open gmail account
Go settings.... a little star at the right.
Go to all Settings.
Go to Account and Import.
Go to Other Google Account Settings.
Goto security.
Go to 2 step verification and turn this on.
You will have to go back a step then back to security again.
Then go to app passwords and add APP C:\YOURFOLDER\YOURAPP.EXE
You will get a code by email or on text from Google.
It come in yellow.
Copy this code. This is the new YOURAPP password. Use this in yourapp.
You keep the old password for using account outside yourapp.
Works fine.
Franco
I send automatic notification mails from an HMG ap using hb_sendmail
Since last weeks, GMAIL recipients messages are returned with the following error:
"Mail delivery failed: returning message to sender"... "A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:"... blah blah blah...
Remote-MTA: dns; gmail-smtp-in.l.google.com
Diagnostic-Code: smtp; 550-5.7.1 [...] Messages missing a valid messageId header are not
550 5.7.1 accepted. ... - gsmtp
It appears to be some anti-spam control or something like that...
as i understood you can send Email "from" Gmail but when send Email "to" Gmail it will be reject by Gmail, right ?
i "think" it is the same Problem with WEB.DE or GMX which you have with Gmail when use hb_SendMail.
as i can say those Email do not include "Message-ID" in Email Header when send "direct" to Provider (does work when send to Exchange Server)
"Message-ID" seems to be a UUID@Domain.DE but i do not know how to place it into tip_MailAssemble()
but i´m not able to build a LIB.A from Source for HMG so i can not "test" it
Hola Jimmy, puede ud enviarme el ejemplo y en negrita #bold# la parte que quiere agregar enTip_mailassemble() yo hace mucho lei todo sobre esa libreria contrib
danielmaximiliano wrote: ↑Sun Sep 25, 2022 12:19 am
Hola Jimmy, puede ud enviarme el ejemplo y en negrita #bold# la parte que quiere agregar enTip_mailassemble() yo hace mucho lei todo sobre esa libreria contrib
It seems to me that the Message-Id section in the message header is added by the SMTP server (at least that's what the servers I tested on do), but if it doesn't, you can add it yourself in the tip_MailAssemble() function by putting for example: oMail:hHeaders ["Message-Id"] := "<slmwpywxvdcsjdcmzpph@btmg>" after the line: oMail:SetHeader (cSubject, cFrom, xTo, xCC)