This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mail API Problem  RSS feed

 
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: 42972
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
Posts: 21044
85
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
Posts: 21044
85
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
Boost this thread!