I only want to get body text, without any reply text/html. When I use imap_fetchbody it gives all the text including primary email and replies text/html. Is there any way that I can get only mail text? Also, I have no exact text pattern for splitting or parsing the content from the end (red horizontal line). How can I achieve this?
I have tried imap_fetchbody, imap_fetchstructure to get only the primary email text, it gives all the text including reply email text. I can split text from FROM: but as you can see Random Name and other stuff will still appear which I need to remove.
Related
I'm having a hard time adding emojis to my marketing emails on a Wordpress/ WooCommerce website. Here's what I've tried so far:
Adding them as hex code e.g. 🤗
Adding them directly in the source code e.g. π€
A combination of both methods
The first method works pretty good and the emojis are displayed correctly in the body. However the emojis turn into Chinese characters in the preview text for some devices (iOS for instance).
The second method also only works partly. This turns the emojis into "Twitter style" emojis: they don't look like the native Apple emojis on Apple devices but like the "Twtr" ones from this list. Also they're completely hidden in the preview text.
If I combine both methods however the emojis (and all other emojis in the email) are displayed correctly as Apple style emojis in the body and the preview text. I guess this might also be the case on other mail clients (Gmail, Outlook etc.) so I'd be happy to fix this.
Ideally I'd stick to method #2 there just needs to be a trick to make sure they're displayed correctly and not in the Twitter style/ hidden in the preview.
// Method 1:
Hi '.$firstname.' π€
// Method 2:
Hi '.$firstname.' π€
// Method 3:
Hi '.$firstname.' π€ π€
Thanks
I want to make a particular text as link in whatsapp text so that it can be copied rather then coping full message i just want that particular text to get copied as in the screenshot : https://prnt.sc/taago5 you can see that its blue in color that means its like a link when long pressed it gets copied.
similarly i want the text in red box as link so that it can be copied : https://prnt.sc/taahd4
You simply can not make just any arbitrary text you want, become a link. There is no mechanism or syntax provided to achieve this.
WhatsApp parses the message content, and replaces parts that match certain patterns with links automatically - for example HTTP/HTTPS URLs.
What your first screenshot shows, 544-497-293, gets recognized as a (potential) phone number here, and that is why it gets transformed into a link automatically.
But you wonβt be able to force this in any way, for the arbitrary format you have in your second screenshot.
Is there a way I can embed a URL link i.e. Google in an SMS message send through [myphonenumber]#txt.att.net ? And I want to add some parameters in the URL. The link shows up as un-clickable plain text in the SMS with html tag. The html tag appears in the SMS. I want to hide or embed html codes. I pass the parameters with this url in my Controler. When sending sms, I found out the html codes are including in the sms.
SMS is a text-only medium that does not interpret HTML tags on its own. Depending on the receiving device, it may detect a hyperlink in the message, but there is no way to embed it as an
<a href>
tag
github.com/cordova-sms/cordova-sms-plugin/issues/63
I'm using PHPMailer to send emails with images embedded in the email.
I'm just wondering what the best way to achieve the following usecase is:
Sending an image (like a picture of a gift card) with text overlaying it. Some of the text is standard on each email, other text is variable (like Gift Card code, and amount of gift card).
For styling, I'm obviously using tables and colspans, and all that fun stuff we are forced to use for HTML emails, but since I want the image to be a certain width (approximately 400px, or a bit more than half the width of a standard email window) and I also want the text to fit on the image, I'm wondering what the best way to ensure that the text doesn't escape the boundary of the image is.
Any advice would be appreciated.
Since you're already using tables, set your image as the background for a table cell and put the text inside the cell. You can keep the text inside your arbitrary picture border by setting the padding of the cell.
I am using the joomla mail function. I have attached a background-image for the message body.
The image is displayed in all tools like: Gmail, Yahoo, Rediff etc.
But it does not show in Outlook 2007.
Seaching the internet, I did not get any information to let me know, wether the img tag is supported in Outlook
Background images are not supported in Outlook for any elements other than the body tag of an HTML email. The body of the email is not the same thing as it refers to the contents of the email and not the HTML body tag.
You might also look at this hack to enable background images in outlook - http://emailmarketingvoodoo.com/blog/post/outlook-2007-can-now-render-background-images/