Thanks McDonald,
Now it clears that it solely depends on email client which one will be
shown to end user. I will also send multi-part email.

On Thu, Jan 7, 2016 at 3:41 PM, Stephen McDonald <[email protected]> wrote:

> It seems like you're misunderstanding how multi-part emails work with
> email clients, if you search Google for "multi-part email" you'll find a
> lot of info which should clear things up.
>
> BTW just for kicks I viewed the raw contents of emails from both Twitter
> and Facebook (if you're using gmail, you can do this by choosing "Show
> original" from the reply drop-down), and they both send text and HTML
> together in one email, just like Mezzanine does.
>
> On Thu, Jan 7, 2016 at 5:50 PM, sonu kumar <[email protected]> wrote:
>
>> If we look at emails(notifications) coming from sites like facebook,
>> google-plus, google,disqus, twitter etc. They sent only html version of
>> email and also this strip down the email size and content.
>> If we look at the email contents it generates first part in text and
>> followed by html which doesn't look professional. It's look like sending
>> letter to someone in two languages where 1st part is in Hindi and 2nd part
>> is in English and both part have same contents.
>>
>> On Thu, Jan 7, 2016 at 3:56 AM, Stephen McDonald <[email protected]> wrote:
>>
>>> Yes I understood that from your first email :-).
>>>
>>> How about describing why you want to do that?
>>>
>>> On Wed, Jan 6, 2016 at 10:04 PM, sonu kumar <[email protected]>
>>> wrote:
>>>
>>>> No, I am looking something like this
>>>>
>>>> --===============5406379004382951965==
>>>> MIME-Version: 1.0
>>>> Content-Type: text/html; charset="utf-8"
>>>> Content-Transfer-Encoding: 7bit
>>>> <p>Hey there, thanks for creating your account.</p>
>>>> <p>Please use the link below to activate it.</p>
>>>> <p><a 
>>>> href="http://127.0.0.1:8000/accounts/verify/8/48b-f01cf45fb6e9e3ffb8c0/?next=/users/go-goa";>http://127.0.0.1:8000/accounts/verify/8/48b-f01cf45fb6e9e3ffb8c0/?next=/users/go-goa</a></p>
>>>> --===============5406379004382951965==--
>>>>
>>>> Currently email is generated as
>>>>
>>>> Content-Type: multipart/alternative;
>>>>  boundary="===============5406379004382951965=="
>>>> MIME-Version: 1.0
>>>> Subject: Activate your account
>>>> From: webmaster@localhost
>>>> To: [email protected]
>>>> Date: Wed, 06 Jan 2016 05:48:34 -0000
>>>> Message-ID: <20160106054834.11993.74219@sonus>
>>>> --===============5406379004382951965==
>>>> MIME-Version: 1.0
>>>> Content-Type: text/plain; charset="utf-8"
>>>> Content-Transfer-Encoding: 7bit
>>>> Hey there, thanks for creating your account.
>>>> Please use the link below to activate it.
>>>> http://
>>>> 127.0.0.1:8000/accounts/verify/8/48b-f01cf45fb6e9e3ffb8c0/?next=/users/go-goa
>>>>
>>>> --===============5406379004382951965==
>>>> MIME-Version: 1.0
>>>> Content-Type: text/html; charset="utf-8"
>>>> Content-Transfer-Encoding: 7bit
>>>> <p>Hey there, thanks for creating your account.</p>
>>>> <p>Please use the link below to activate it.</p>
>>>> <p><a href="
>>>> http://127.0.0.1:8000/accounts/verify/8/48b-f01cf45fb6e9e3ffb8c0/?next=/users/go-goa
>>>> ">http://
>>>> 127.0.0.1:8000/accounts/verify/8/48b-f01cf45fb6e9e3ffb8c0/?next=/users/go-goa
>>>> </a></p>
>>>> --===============5406379004382951965==--
>>>>
>>>>
>>>> As we can see from above email currently all emails have same information 
>>>> in two formats text as well as html. I want only html out of this.
>>>>
>>>>
>>>> On Wednesday, January 6, 2016 at 3:19:55 PM UTC+5:30, Stephen McDonald
>>>> wrote:
>>>>>
>>>>> No there isn't.
>>>>>
>>>>> If you did that, any person who would have received the text version
>>>>> would then receive a HTML version full of unrendered HTML code visible as
>>>>> pain text, which probably isn't what you want.
>>>>>
>>>>> On Wed, Jan 6, 2016 at 6:59 PM, sonu kumar <[email protected]> wrote:
>>>>>
>>>>>> I would like to send notification for account creation and
>>>>>> verification etc. But built in method sends email with text as well as 
>>>>>> html
>>>>>> which uses *send_mail_template* function to send email(s). Is there
>>>>>> any simple method to send only html email like by changing some setting  
>>>>>> or
>>>>>> function call.
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Mezzanine Users" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Stephen McDonald
>>>>> http://jupo.org
>>>>>
>>>>
>>>
>>>
>>> --
>>> Stephen McDonald
>>> http://jupo.org
>>>
>>
>>
>>
>> --
>> Regards:
>> Sonu Kumar
>>
>
>
>
> --
> Stephen McDonald
> http://jupo.org
>



-- 
Regards:
Sonu Kumar

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to