How to view how a plain-text email client displays PHPMailer's AltBody? - email

I'm using PHPMailer and I'd like to see how the plain-text AltBody is appearing in clients that only support plain text. What is the easiest way to do this? (echoing $mail->AltBody does not work)

In Thunderbird you can do this with View->Message Body As-> Plain Text.
See Testing the plain text version of your email

If you want to test this in GMail, click on "Message Text Garbled?" in the drop down menu next to the reply button. This will show you the content of PHPMailer's AltBody.

To expand on #jason-george's answer: To test with GMail and Thunderbird
Download and install the Thunderbird mail client.
In GMail, find the message you want to test. Select the 3-button menu and select "Download message".
Start Thunderbird. Cancel out of any start-up wizards and account setup screens.
In the file menu, select to "Open saved message". Navigate to the message you saved in step 2 and open it. (You may have to again cancel out of an account setup wizard.)
The message will open, usually in full HTML mode. Under the view Menu select "Message Body As..." and select "Plain Text". You will see the plain-text version.

Related

SendGrid: Is it possible to have a custom unsubscription page instead of using sendgrid

I know we can add a unsubscribed link in the template so when sending email there will be unsubscribed link at the bottom. It will show the preferences page. This page is created by sendgrid.
Is there a way to create our own unsubscribed screen instead? That way if someone modified their email in our system we can have control the unsubscription.
There are two things possible;
If you would like to use a custom URL for your unsubscribe link, from the Editor, navigate to Settings in the left-hand sidebar and select the Recipients dropdown menu. Under Unsubscribe Group, select Use Custom Link...
This will expand a new field where you can insert a URL for one of your own pages where recipients can manage their subscription preferences.
To place your Custom Unsubscribe link into your email, highlight any text within the body of your email and click the small link icon to specify a hyperlink. In the URL field that appears, enter the tag {{{unsubscribe}}}. Since you've specified your Custom Unsubscribe Link in the Settings panel, SendGrid will replace the Unsubscribe Tag with your custom URL.
https://docs.sendgrid.com/ui/sending-email/create-and-manage-unsubscribe-groups#using-a-custom-unsubscribe-link
List unsubscribe: email to get unsubscribe email, later you can do it manually or automatically
With CSV
Find the group you want to add recipients to and click the action menu.
Select Upload a CSV.
Drag the CSV you want to upload into the field, or click select a CSV file to upload and locate the file you want to upload from your files.
4.Click Upload CSV.
Manually
Find the group you want to add recipients to and click the action menu.
Select Manually Add.
Enter a recipient email address and then click Save.
https://docs.sendgrid.com/ui/sending-email/create-and-manage-unsubscribe-groups#add-recipients-to-an-unsubscribe-group

Where has "Message text garbled?" gone in gmail?

I want to see the text version of email in gmail. How can i check please some one help me.
Gmail removed “Message text garbled?” option now you can see text version of your email using following steps.
From the "More" menu, select "Show original"
In the address bar, update the "view" parameter in the query string from "om" to "dom"

How to use MailChimp Exported Template to send Email from outlook?

I have created a Newsletter template on MailChimp and exported the template. I have also used the CSS Inliner tool to convert the HTML Code.
But How do I use this code to send the email from my outlook account?
Thanks in Advance for your help.
For this, you can use the import > import as text button in Outlook on the saved HTML file and it should populate into Outlook. (ref)
Open Outlook
Select the Create New-Email icon from the menu bar
From the top navigation menu options choose Insert
Select the Attach File icon
Navigate to the HTML file you want to insert
Select the file (highlight it)
From the Insert Drop Down Menu select Insert as Text
See this answer for more details on Outlook 2016: Getting my HTML into Email
Please keep in mind a couple things:
Outlook strips out all media queries when it sends, effectively removing responsive design
Outlook rewrites your code into Word HTML, which can cause discrepancies in functionality and display
MailChimp usually keeps proprietary code inside of its templates that are not read by other email clients and can cause issues
You need to ensure all CAN-SPAM regulations (physical address, unsubscribe ability) are still displayed inside the email or potentially face fines up to $10,000 per email that violates it.

How to display an image in a Thunderbird column?

The Thunderbird Addon Display Contact Photo shows a nice picture of users (or optionally their gravatar/identicon/wavatar/monsterid) next to the mail header and in the recepient list. Is it possible to have that icon also displayed in the Recepient column (or even better, the Correspondent one from Show InOut) or a separate column in the default mail list?
That is, I'd like to have the image from the left of the contacts in this screenshot
(source: mozilla.net)
also in the email overview so I can see very quickly whom each email is from.
Thunderbayes++ shows an icon in the email overview, if a mail is spam, ham or unsure. Maybe the code of this extension can help you to implement this.

how to send facebook message automatically without api

guys
now i knew how to send message without using facebook api,
i could use url to fill the message textarea in facebook's website
www.facebook.com/messages/[user_id]?msg_prefill=XXX
but here i'd like to know how to send this message automatically
in April, i found a way to click "send" button automatically (find "send" button in html text and click it),
but now facebook hide theses html text so that i can't find this button in html text.
Therefore, can anybody provide some ways or point to send message automatically.
thanks
Use the console in you browser (usually F12 to open) firefox console is the most powerfull, your console should have a command like "element inspection" or similar, use this tool to analize the button you want, read ing the code you should find someting like "on click" or simsimilar, after this you will find a java command to push the button. Anyway to do this kind of stuff without being a programmer,use selenium IDE, very easy,only for firefox,you must download it from firefox as add on. Good luck!