how to send a mail

Ads
 

how to send a mail

Dear sir,
I am able to send a mail.But when a receiver gets a mail ,the matter will be shown in a single line .
I am sending a following matter
Dear Harini ,
U r bonus is 2000 .
Regards
Hr.

But when a receiver got a this mail as a

Dear Harini,U r bonus is 2000.Regards Hr.

The following is a code i used
//sewnding a method
public String sendMailWithAttachment(String from, String to, String ccList,
String bccList, String subject, String matter, PrintWriter out,
String attachment[]) {

System.out.println("Message is "+matter);

// ///// setting matter

MimeBodyPart mbp1 = new MimeBodyPart();
mbp1.setContent(matter, "text/html");
mp.addBodyPart(mbp1);
}


In this method i used a these statements , if i print a matter it will showing as it is but after sent it will not.so how to get a matter as it is what am sending..please help me sir if any changes..

Thanks and Regards
Harini Veerapur
View Answers

Ads









Related Tutorials/Questions & Answers:
how to send mail with multiple attachments in jsp
how to send mail with multiple attachments in jsp  how to send mail with multiple attachments in java script
how to send smtp mail to entered user mail id after user registered using javascript?
how to send smtp mail to entered user mail id after user registered using javascript?  how to send smtp mail to entered user mail id after user registered using javascript
Advertisements
how to send smtp mail to entered user mail id after user registered using javascript?
how to send smtp mail to entered user mail id after user registered using javascript?  how to send smtp mail to entered user mail id after user registered using javascript
How i can send testing mail on my id using java?
How i can send testing mail on my id using java?  Which packages i should use to implementing java mail service??? Thanks
how to send mail to many recipients using jsp,apache
how to send mail to many recipients using jsp,apache  hello i am... to send this jsp page content (web page content which consists of this excel... but not as attachment.can we do this .....the list of mail recipients are in a table
send mail using smtp in java
send mail using smtp in java  How to send mail using smtp in java?   Sending mail in JSP - SMTP
send the mail with attachment - Struts
send the mail with attachment   Hi Freinds, i am sending the mail without attachment file now. But i need to send the mail with attachment... the mail . Mail Problem is file path: how to get the file path from the browse("we
send mail in PHP
send mail in PHP  what are configurations needed to send mail in php.ini file by localhost ,please give me complete details about this,and code in datail
Compose mail by clicking on send mail button
Compose mail by clicking on send mail button  How i get microsof out look page opend for composing mail by just clicking on send mail button and when outlook page open then in to:my email id is written on my jsp page
send mail using JavaScript
send mail using JavaScript  How can we send mail using JavaScript?   Hi friends, You can not send email directly using JavaScript. But you can use JavaScript to execute a client side email program send the email using
how can i send a mail to a particular user from a many user dropdown list in jsp
how can i send a mail to a particular user from a many user dropdown list in jsp  how can i a sent a user question to a particular person from a drop down list in jsp
How to set attachment from browse button to send mails using java mail api
How to set attachment from browse button to send mails using java mail api   Hello Sir, I am making Email Sending app using java mail api... of browser security feature. Plz give to how to complete the task Thank you Sir
can u plz help out how to attach file directly & send to a particular mail id
can u plz help out how to attach file directly & send to a particular mail... mini project so if a faculty write all details abt leave & shd send to HOD for approval so i need ur guidance how to tackle this problem
Send Mail using James Server
Send Mail using James Server       This application illustrates how to send mail on the mail... a send mail class which is used to send the mail in the mail box of James mail
Send multipart mail using java mail
Send multipart mail using java mail       This Example shows you how to send multipart mail... parts. When u send a multipart mail firstly create a Multipart class object
how to send email
how to send email  hii i am new for jsp-servlet and i am making a project in jsp-servlet. i want to send the email after registration to client.please send me code that how to send mail after client registration. thank you
ModuleNotFoundError: No module named 'flask-send-mail-util'
: No module named 'flask-send-mail-util' How to remove the ModuleNotFoundError: No module named 'flask-send-mail-util' error? Thanks   Hi...ModuleNotFoundError: No module named 'flask-send-mail-util'  Hi
send the mail with attachment problem - Struts
send the mail with attachment problem  Hi friends, i am using... to select the attached document from the jsp page(browser:");How to get the file... mail server properties.setProperty("mail.smtp.host", host
java mail send using setText()
java mail send using setText()  Hai , Am newly mail send portion...); Here am using set Text() method to send mail content in html format. if i use... format is right. I want to use set Text() method to send mail in html format . any
how to send message
how to send message  how to send message for mobile in server
how to send sms on mobile
how to send sms on mobile  send sms on mobile by using struts + spring
How to send and recieve email by using java mailserver
How to send and recieve email by using java mailserver  How to send and receive email by using java mail server?   Hi Friend, Please visit the following link: Java Mail Thanks
ModuleNotFoundError: No module named 'odoo11-addon-project-task-send-by-mail'
: ModuleNotFoundError: No module named 'odoo11-addon-project-task-send-by-mail' How...ModuleNotFoundError: No module named 'odoo11-addon-project-task-send-by-mail...-send-by-mail' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo11-addon-stock-picking-send-by-mail'
: ModuleNotFoundError: No module named 'odoo11-addon-stock-picking-send-by-mail' How...ModuleNotFoundError: No module named 'odoo11-addon-stock-picking-send-by-mail...-send-by-mail' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo11-addon-stock-picking-send-by-mail'
: ModuleNotFoundError: No module named 'odoo11-addon-stock-picking-send-by-mail' How...ModuleNotFoundError: No module named 'odoo11-addon-stock-picking-send-by-mail...-send-by-mail' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo12-addon-pos-invoice-send-mail'
: ModuleNotFoundError: No module named 'odoo12-addon-pos-invoice-send-mail' How to remove the ModuleNotFoundError: No module named 'odoo12-addon-pos-invoice-send-mail...ModuleNotFoundError: No module named 'odoo12-addon-pos-invoice-send-mail
ModuleNotFoundError: No module named 'odoo12-addon-project-task-send-by-mail'
: ModuleNotFoundError: No module named 'odoo12-addon-project-task-send-by-mail' How...ModuleNotFoundError: No module named 'odoo12-addon-project-task-send-by-mail...-send-by-mail' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo12-addon-stock-picking-send-by-mail'
: ModuleNotFoundError: No module named 'odoo12-addon-stock-picking-send-by-mail' How...ModuleNotFoundError: No module named 'odoo12-addon-stock-picking-send-by-mail...-send-by-mail' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'odoo8-addon-stock-picking-send-by-mail'
: ModuleNotFoundError: No module named 'odoo8-addon-stock-picking-send-by-mail' How...ModuleNotFoundError: No module named 'odoo8-addon-stock-picking-send-by-mail...-send-by-mail' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'odoo8-addon-web-widget-mail-send-odoo'
: ModuleNotFoundError: No module named 'odoo8-addon-web-widget-mail-send-odoo' How...ModuleNotFoundError: No module named 'odoo8-addon-web-widget-mail-send-odoo...-mail-send-odoo After the installation of odoo8-addon-web-widget-mail-send
ModuleNotFoundError: No module named 'odoo9-addon-project-task-send-by-mail'
: ModuleNotFoundError: No module named 'odoo9-addon-project-task-send-by-mail' How...ModuleNotFoundError: No module named 'odoo9-addon-project-task-send-by-mail...-task-send-by-mail After the installation of odoo9-addon-project-task-send

Ads