Questions tagged [multipart-alternative]
16 questions
6
votes
1 answer
noname attachment in my gmail inbox
While using Rails ActionMailer with Multipart Emails I created both:
approve_trade_email.html.erb
AND
approve_trade_email.text.erb
I do receive a well HTML formatted email in my Mail client (Mac OSX) but when checking my Gmail account for the same…

zabumba
- 12,172
- 16
- 72
- 129
6
votes
2 answers
Javascript regex: Find all URLs optimization
This question is a follow-up for the following post:
Javascript regex: Find all URLs outside tags - Nested Tags
I discovered that the code:
\b((https?|ftps?):\/\/[^"<\s]+)(?![^<>]*>|[^"]*?<\/a)
is extremely inefficient compared to executing it…

Klaidonis
- 559
- 2
- 6
- 22
6
votes
1 answer
Sending multipart/alternative with PHP mail()
So I am trying to send a fairly simple HTML email using PHP. I have spent the last three days trying to find a good solution and think I found one, but when I test it, it doesn't send properly. I borrowed this code from one of the tutorials I was…

Bryan
- 849
- 1
- 7
- 12
5
votes
2 answers
PHP mail() Multipart/Alternative for HTML & Plain Text Emails
I am using the following code to send out a Multipart/Alternative HTML and Plain Text email. The emails are sending fine content wise, however some of them are getting caught in spam filters. This is the code I am using.
$notice_text = "This is a…

Jeff Thomas
- 4,728
- 11
- 38
- 57
4
votes
3 answers
Content-Type: multipart/alternative in Wordpress with wp_mail()
Is it is possible to send emails with the wp_mail() function having its Content-Type: multipart/alternative ?
I need to send emails that can be shown as HTML or Plain Text depending on what medium interprets the email.
Any suggestions are welcome!

secuaz
- 459
- 3
- 6
- 15
4
votes
1 answer
Send multipart/alternative mail with Swift Mailer
I can't send multipart/alternative with Swift Mailer (I haven't found any reference, so maybe I can't use this function), this is my code:
$file[1]=html_entity_decode($file[1]);
//Prepare plain/html body
foreach($rep as $find => $sost)
…

Razorphyn
- 1,314
- 13
- 37
2
votes
1 answer
How do I send email line feeds Python 3 in plain text mode as a MIME alternate with UTF8?
I have the following email code written in Python 3...
I would like to send email as both HTML OR plain text depending on the receiving client. However, both hotmail and gmail (I'm using the latter to send with) receive zero line feed/carriage…

Rodent
- 1,698
- 1
- 12
- 13
1
vote
1 answer
How to test Multi-part emails using outlook 2007?
I have developed an application in Delphi 7 which will send multi-part emails (both in Text and Html format). Now i want to test it using Outlook 2007.
I have tested each part separately by sending mail as text/plain and text/html. Now i need to…

Dev
- 629
- 2
- 9
- 23
1
vote
1 answer
How to perform `or` in jq?
I got the following results.
$ jq '.[].a,.[].b' <<< '[{"a": 1}, {"b": 2}]'
1
null
null
2
$ jq '.[] | select(.a or .b)' <<< '[{"a": 1}, {"b": 2}]'
{
"a": 1
}
{
"b": 2
}
But I want to search either "a" and "b" and the output that I would like…

user1424739
- 11,937
- 17
- 63
- 152
1
vote
1 answer
Gmail API replaces text/plain alternative body part with automatically generated one from HTML
I'm sending emails from Android devices using the Gmail API with an alternative text/plain version. The email is structured as follows:
multipart/mixed
multipart/alternative
text/plain
text/html
attachment
Everything works great, except…

luz
- 73
- 1
- 6
1
vote
0 answers
Nested MIME parts on an email in Zend Framework 1.10 using Zend_Mail
I am trying to send an email using the Zend_Mail class that will include text in HTML format, a plain text alternative and inline images referenced in the HTML. I only want the images to show embedded, but not as attachments.
My current code is the…

Pato
- 43
- 1
- 4
0
votes
2 answers
Why is my MIME multipart email inline image showing up as an attachment called ATT00001?
I'm trying to create a MIME email from scratch with text and html alternatives and an inline image in the html. I get the email, and I see the html alternative in my mail client, but the inline image I expect to see is coming in as an attachment…

Steve Maring
- 313
- 1
- 3
- 8
0
votes
2 answers
Receiving mail server inserts space before each new line, breaking multipart/alternative
I am using PHP to send emails on demand to clients. I have a script which seemed fairly robust in testing, generating MIME-1.0 Compatible multipart/alternative emails that had a text and html version. Emails are sent as base64 encoded strings to…

Dereleased
- 9,939
- 3
- 35
- 51
0
votes
0 answers
Meteor-1.6 does not support deprecated CFS:gridFS
Just updated to Meteor JS 1.6 and the deprecated cfs:gridfs throws this error, what's the workaround? Any better alternatives if this will not work with Meteor-1.6.
Your application is crashing. Waiting for file change.
=> Modified --…

ken4ward
- 2,246
- 5
- 49
- 89
0
votes
1 answer
Rating bar Android alternative method for OnRatingBarChangeListener?
I am trying to find another alternative solution to check if the user has rated on the post.
The problem is that if I use OnRatingBarChangeListener another user might vote and change the rating which will fire the event.
I have tried onClickListener…

Joseph Hajjar
- 138
- 2
- 12