• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

send mail to user from my email

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am using spring's JavaMailSenderImpl class to send mail to user from my email id to user email id in my project, but now i want to send from my local machine, i mean to say whenever user get mail, he should see either my web project name or my local machine address? i don't want to send by giving my email id..
here is part of my spring.xml, i am setting "host" property of JavaMailSenderImpl to "smtp.gmail.com" and username to my email. i don't want to send from my email.. please help me if you have any idea?


<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl" >
<property name="host" value="smtp.gmail.com" />
<property name="port" value="25" />
<property name="username" value="eshwar.c99@gmail.com" />
<property name="password" value="--------" />
<property name="JavaMailProperties">
<props>
<prop key="mail.transport.protocol">smtp</prop>
<prop key="mail.smtp.auth" >true</prop>
<prop key="mail.smtp.starttls.enable">true</prop>
<prop key="mail.debug">true</prop>
</props>
</property>
</bean>
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you just post your real password for your Google account there? I've removed it from your post, and I advise you to change your password immediately.
 
Eshwara Chaluvaiah
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you very much Jesper de Jong ...
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Eshwara Chaluvaiah wrote:i mean to say whenever user get mail, he should see either my web project name or my local machine address? i don't want to send by giving my email id.



You have to use some e-mail ID to send e-mail. If you don't want to use your own then you're going to have to set up some other e-mail ID somewhere.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic