• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

square bracket in send mail

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all

When ever a user posts a request through my application, a mail is usually sent out to them stating that their request is recorded and other details.

But in my send mail usually the email address that goes to the user is like this : applicationemail.domain.com

right now, i have the need to change the email address that goes to the user as: Application Name [applicationemail.domain.com]...
How would i do this..!!???

If i try to write the string "Application Name [applicationemail.domain.com]" in the from address, it gives me an error:
Illegal White spaces and If i remove the white spaces then it gives me the error - Illegal Character in local name

So please can some one guide me on how to send email with the from Address as : Application Name [[email protected]] .
Just the same way, when we send a email from MS outlook, the email address is usually of the format "USER NAME [USER EMAIL ADDRESS]"

Thanxs
 
Sheriff
Posts: 67753
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the Other Java APIs forum.
 
Rekha Pande
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any suggestion as to how i can set the from address in the email that i sent from java mail to be:
FULL NAME [[email protected]]
???
 
Rekha Pande
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, i have solved my problem. Just for every ones information,
When we write
"full name<emailaddress.com>" in the from address of java mail, then the email when viewed by the recepient will show the reply to address as
"full name [emailaddress.com]".

Thanxs any ways
 
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic