I'm using PHPMailer to send an HTML email when someone requests a brochure from a website.
My issue is that when I send the email without the attachment the email opens and displays the HTML email correctly. As soon as I add the attachment it doesn't load the HTML email and just shows text. NB: I haven't uploaded any code as the email itself sends with or without the attachment, so didn't think you guys would need it.
So:
1) Email sends OK with or without the attachment
2) With the attachment, it arrives (with the attachment) but doesn't show HTML email
3) Without the attachment the HTML is displayed correctly.
This specifically relates to an iPhone and it asks me to download the remainder of the email.
I know this should work OK as I know a competitors website that uses the exact same process and their email loads perfect everytime!
Any help would be useful.
Related
We send lot of mails with invoices in PDF format to our Clients. We have automated this with simple Outlook VBA code in this page:
Outlook VBA to send mail with Attachment
The mail contains only a PDF attachment & few words in content with hyperlink to our website in signature.
Problem:
If we send the mail through Outlook VBA, the receiving side of mail shows this message.
But, instead of sending, If we save this mail in draft through VBA, then sync with Gmail, Open Chrome -> Gmail -> Drafts -> click send manually. The mails does not show the warning at reciever end.
Note: Settings in our domain like DKIM and SPF are set fine
We appreciate any of your ideas or hints to avoid this problem.
Outlook doesn't differentiate emails submitted manually or programmatically.
The following articles can help you to understand the cause why your email is marked as spam on the receiver's side:
How to Stop Your Emails From Going to Spam – 10 Tips
12 Reasons Why Your Emails Go in the Spam Box (and How to Make Sure They Don’t)
I am currently developing a gmail addon. The addon sends an email, with an attached eml file, to a particular recipient. Unfortunately, the recipient is not able to open the eml file attached with the email I sent via GMAIL API. If they click on the attached eml file they will receive the message "An error occurred while loading the attached message."
I found two issues, which might be related to this issue, when I analyzed the data I saw when I clicked "show original" on the email. One is that all emails I sent via GMAIL API have the "Received from xxxxxxxxxxx named unknown by gmailapi.google.com with HTTPREST" header. And that the entire base64-encoded eml file is missing in the content of the email. Please see image below :
Is this related to Emails sent via GMAIL API are flagged as Phishy? Or am I missing or doing something wrong? If I set the "attachment-type" to "text/plain" then the base64-encoded eml file data is present and viewable when I "show original" the email. Thank you all in advance.
#GovZ you can use MailApp.send rather than GmailApp.send, along with setting the content-type to "message/rfc822" and the email should preview correctly.
Details here: https://issuetracker.google.com/issues/155736170
when I try to send emails with phpmailer, it send inline images as attachment. I mean before opening email for example in yahoo or gmail , they show that this email has attachment and when I open the mail, it shows images inline and in their right position with no problem,
but I see many emails with inline images that show emails as one that don't have any attachment.
by the way for embedding images to phpmailer I use this method: addEmbeddedImage(filename,cid)
what can I do to solve this problem?
thanks for you help
If you attach images to an email, they are attachments, no matter what. If you use them by referring to their cid values from within your HTML, they will render inline as well, but they will still be shown as attachments, because they are. If you refer to images using remote URLs, they will render inline as well (providing you allow your mail client to do so), and they will not show as attachments - that is what the other messages you're seeing will be doing. Generally speaking, referring to images remotely is preferable to embedding/attaching.
I am sending email activity using system Workflow. It sends email where email-body contains a link.
What I do that I insert a link using "Hyperlink" button on the Email-Template provided by the System Workflow.
When this email received at on Outlook it works fine. If it is received on Thunderbird or Gmail or Yahoo, it distracted.
That "Link" text does not works as link anymore and it's value(i.e full URL) displayed over there.
What i can do for this in email template to works on other EMail client.
I formulate this email using system Workflow. I don't have such flexibility over here.
Any idea will be appreciated. Please help.
Thanks,
Anish
in phpmailer I didn't see pictures in gmail, only if I press show images, same email sent from outlook (same text, same from, same smtp, same dkim, same x-mailer) it's OK.
Any ideas? I want phpmailer because i can rotate things in subject or from or bla bla.
Outlook inlines image data to avoid client connections to outer sources. Instead of using external links with html bodies, use attached images or inlined HTML binary data with appropriate mimes during creation of e-mail body.
Here is an example code:
<img src="data:image/jpeg;base64{binary_data_here}" />