Getting duplicate HTML content in a generated mail - email

I am running a process which generates mail using template and send mail using sparkpost via SMTP server.
Process sends approx 500K mails per day.
But I am getting duplicate HTML content in around 2-3 mails per month which is strange.
I have already ruled out some possibilities like
Error in mail server
mail sending logic via SMTP to sparkpost
any loops
Not reproducible in dev environment or any other env.
Need some pointers to get around this issue. I can't add code as there is too much logic behind it.
Sample error Content looks like this.

Related

Cold Fusion Mail Being Repeatedly Sent By CF 10 Server

I'm migrating an app from a CF8 Server to a new CF 10 Server. As I was working with a form that sends an email everything seemed to work as it should and I received a copy of the email. And then another, and another. Every 15 seconds the server would send me the same email.
I took the mail server out of the CF Admin and still the duplicates kept coming. I checked the spool and undeliverable folders and they were both empty. The only thing that stops the emails from being sent is to stop the actual ColdFusion Application Service. When I restarted the service, however, the emails started up again!
I created a simple test page that has only a minimal CFMAIL tag with the basic fields and gave that a try. Same thing. Only now I have two emails coming into my inbox every 15 seconds while the service is running.
The mail log shows the emails being sent but doesn't give any indication of how they are being triggered. I can't understand where these emails might be stuck in the CF Server in a way that they are sent every 15 seconds. I've Googled it mightily with no leads.
Has anyone else experience anything like this? Thanks for any guidance.

Multiple emails with ZF2 & Amazon SES

I'm sending emails using Zend Framework 2's SMTP transport, and through Amazon's Simple Email Service. Everything works great until I need to send more than one email in the same request - then I get this weird exception.
Fatal error: uncaught Exception
'Zend\Mail\Protocol\Exception\RuntimeException'
with message
'Could not read from email-stmp.us-west-2.amazonaws.com'
in
/www/vendor/zendframework/zendframework/library/Zend/Mail/Protocol/AbstractProtocol.php
on line 308
I've tried doing an rset() on the connection, and it just produces the same error. Right now I've resorted to manually calling disconnect() after every send() - which makes ZF2 reconnect the next time and it works - but obviously not ideal.
I'm using ServiceLocator & Factories, therefore all this is happening on the one single connection (as it should).
Has anyone experienced anything like this? Any ideas?
Thanks
It is the same email or different content? If same you can just put another addTo or addBcc inside same request.
Also try to check with amazon how many mails you can send at once, I know they have a limit on mail sending. (I used amazon for shared webhosting and I need to request permission to send more emails at once).

Website is not sending emails to email add on MS Exhange

Having problems with setting up my website to use MS Exchange to send emails. I dont want to use the hosts email system.
The MS Exhange has been set up, with email addresses created.
My webpages are using Persits.MailSender which the host supports.
Do i need to change MX records? A records?
Sorry, im not clued up with network side of things, any help would be appreciated
When i email direct, the email address on the exchange picks up the emails. BUT if i email through the website, it goes to the annoying webmail the host is provinding, and not to the exchange
I find this strange, the same email address receiving emails at different places!
Im using ASP, and I have a website set up, which has been sending emails for the last 12 months, the host has messed up (again) somewhere, but doesnt know what is wrong (as usual)
There are no errors, the email always gets sent.... but to the wrong place.
I would look into actually trapping and knowing your errors. That way you can see precisely why it fails and have something to work with. As it stands, your question isn't really answerable. No language nor framework is provided. We don't know if the mail server is confirmed to be working or accessible outside your netowrk; we don't know how your are referencing it or if you are passing user credentials; we don't know what error you're getting...
At this point, you're not debugging, you're just sort of swinging in the dark. Find the point of failure and then research that data point to get a solution. Debug, catch errors, log, step through your code. All good ideas.
Ok i figured it out, I deleted the mail domain on the host as that was the first place the website looks to send an email. Once the mail domain was deleted the emails were sent to the external hosted mailserver MS Exchange email address. Yay!

unable to deliver a pdf attachment to clients

On our website which is asp.net, we make a sale and an automated email is sent out to the client with an attached PDF invoice we create using a 3rd party app. We are having trouble getting these delivered successfully to some corporate clients. Yet we also send a copy of that same email to ourselves which we receive fine. We can then forward this on to the client and they do receive it no problems. So the original is not received but the forwarded mail is.
The webserver is a seperate IP address to our office Exchange server which sends the forwarded mail.
I have tried to find the difference between the 2 mails and it looked like a rich text issue, except that the mail is plain text or html!
The question is a little vague i know as i do not know where to look for the best. It seems to make no differenec which mail program is used, we tried MailEable and it was the same thing.
Mail is logged on the web server as leaving and that is the last we see of it. It doesnt bounce but it is definatley delivered to the client server, but doesnt reach the recipient. We used to track thru Message Labs and it would say it had reached the destination server ok. We do not use ML anymore until we find the issue, keeping it simple.
We have no issues sending to AOL, Hotmail and Yahoo etc.
It appears something in the email is upsetting server based spam software.
We havnt been able to get hold of any email logs from clients.
any suggestions?
Check out this link mentioning a reason not related to size issues
The SMTP (internet mail protocol) RFC (An RFC is a document describing
the standards that make the Internet work.) explicitly states that the
length of a single unterminated line can be 1000 bytes, no larger.
Some SMTP servers violate this, and the Firebox (this is our firewall)
will drop the connection when the line length exceeds the configured
length, which defaults to 1000.
which might indicate your pdf generator and/or mail generator creates output that's not 100% standards compliant. Might be a good point to check as it could explain why certain customer suffer fom this problem only.
552 Requested mail action aborted: exceeded storage allocation
This means there was a violation at the client's ("customer's") mail server. The message exceeded a threshold/limit of some kind. It's not clear if this is a per-message limit or if the user's mailbox is just so full that it cannot accept another message.
Either way, this is mostly out of your control. Only thing you can do it try to keep your e-mail messages and attachments as small as possible. If you can, compress (zip) any attachments before sending.

Sending an email from one server to another using same domain name

Just rebuilt a companies website, updated their A records to point to it's new server location but kept their email function as was.
Sending from the server works fine, and they receive mail from elsewhere fine but now when trying to send forms as emails to their existing addresses they never arrive.
For example trying to send an email (more specifically a Drupal Webform) from domain.com from Server 1 to email#domain.com on Server 2.
I've tried adjusting the send address from Server 1 which doesn't change anything. I think their IT person said something about receiving email at an exchange (Microsoft?) but I'm not savy this area at all.
Any ideas about this? I guess something is stopping it before it gets delivered (no spam) and the domains are conflicting, had a Google about but it's one of those where I'm not quite sure how to phrase the question. Thanks
SOLVED! In my CPanel I just needed to change my MX Entry to Remote Mail
Server Exchanger