Hi
I can't figure out what's wrong with my mails because all mails to gmail.com or home.nl are bounced. Hotmail and other are good.
I used a replay server [hidden] for sending mails but also our own exhange server.
I send bulk mail from within my Delphi application and did send them directly to the relay server or using the queue method,
but still gmail and home are bounced. i use the code below to create the bulkmail
oSmtp.FromAddr :=cMailSender;
oSmtp.ReplyTo :=cMailSender;
oSmtp.Sender :=cMailSender;
oSmtp.ReturnPath :=cMailSender;
oSmtp.From :=cMailFullName;
oSmtp.Charset :='utf-8';
oSmtp.BodyFormat :=1;
oSmtp.AddHeader('auto-submitted','auto-generated');
oSmtp.AddHeader('precedent:','bulk');
oSmtp.LicenseCode :=cMailLicense;
oSmtp.ServerAddr :=cMailServer;
oSmtp.ImportMailEx(cMapExport+'\'+cMAIL);
oSmtp.MessageID;
oSmtp.ClearRecipient();
oSmtp.AddRecipientEx(dmMail.MailAddress.FieldByName('Email').AsString,0);
oStmp.oSmtp.SendMailToQueue();
- I know Gmail wants to see some unsubscribe methode, but can i add it to the header and how?
- In the above code i use 2 'AddHeader' methodes...does the second one overwrite the first one?
- Does anyone has tips (i readed the bulk mail guidelines) how to solve it
On our Exchange server SPF, DKIM/DMARC are set correctly
http://appmaildev.com/en/spf 1. from within the software where the mail is delivered to the exchange server and i see this difference
Received-SPF: none hidden2. send a mail direct from our exchange server to this test site and don't get the above message.
Edited by moderator
6 years ago
|
Reason: for security reason