Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mail API Problem

 
Hrishikesh Maluskar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have used the following code to send mails through the application where name= "Hrishikesh Maluskar".



but the mails gets sent in the following format


I want it to be sent as follows
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In line 34 you're concatenating the value of "subject" instead of the password.
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you're not mixing up the subject and message (body) too? The subject usually can't contain line breaks.
 
Hrishikesh Maluskar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks , i am a very stupid person
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't say that. I've made similar mistakes in the past as well, and I'm sure many others have as well. In those cases the best step is let someone else look at the problem; a fresh set of eyes can do wonders. And that's just what you did, so I'd call you smart sooner than stupid.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic