How send a mail paragraphs text via using mail service ?

0 votes

Hi,

I am sending plan text mail 1 paragraph(body).

I want send 3 or more paragraphs text(body).

sample :-

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

 

But i want send like :-

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

 

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

 

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

 

How can i send this format?

Note :- I am trying to use newline keyword. but here i am getting badrequest exception.

Instead of new line keyword , i am using tab keyword it is working good.

asked Aug 23, 2014 in App42 Cloud API-BaaS by marine.modi (62 points)

1 Answer

0 votes
Hi Marine.modi,
 
You can use HTML form for sending Email in paragraph format. For sending HTML tags in Email service you must use 
 
EmailMIME.HTML_TEXT_MIME_TYPE  while sending the email.
 
Bellow is the code snippet for sending HTML email having text paragraph.
 
string message = @"Dear User, <br><br> This is test mail.. <br><br><br> Thanks <br> /Naresh";
 
emailService.SendMail ("naresh.dwivedi@shephertz.co.in", "TEST MAIL", message, "notifications@shephertz.com", EmailMIME.HTML_TEXT_MIME_TYPE, callBack);
 
Let me know if it helps.
 
Thanks
/Naresh

 

answered Aug 23, 2014 by naresh (350 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...