Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: code for email notification
تم تعديل 4765569 منذ 16 سنوات من الدقائق.
New Member
المشاركات: 17
تاريخ الإنضمام: 26/3/10
المشاركات الحديثة
I m using liferay 5.2.3 configured with tomcat. I want to send the email notfication to the newly created users having gmail account or any other official mail accounts.Its not working on my side.Could anyone suggest me,how can i configure my portal for the same.
Plz give me any suggestions along with the location of the code written in the bundle.
looking forward for answers..
thanks in advance
Plz give me any suggestions along with the location of the code written in the bundle.
looking forward for answers..
thanks in advance
تم تعديل 1130847 منذ 16 سنوات من الدقائق.
Regular Member
المشاركات: 128
تاريخ الإنضمام: 31/7/08
المشاركات الحديثة
hi,
sending mail is already implemented in portal. you can a take a look at UserLocalServiceImpl.java, search for sendEmail(User user, String password).
hope it helps you.
Thx,
Babu
sending mail is already implemented in portal. you can a take a look at UserLocalServiceImpl.java, search for sendEmail(User user, String password).
hope it helps you.
Thx,
Babu
تم تعديل 4765569 منذ 16 سنوات من الدقائق.
New Member
المشاركات: 17
تاريخ الإنضمام: 26/3/10
المشاركات الحديثة
thanks Bapu ,
but actually i m trying to send mail out of our organisation but am not able to...
i made changes in portal-ext.properties file :
mail.session.mail.imap.host=
mail.session.mail.pop3.host=
mail.session.mail.smtp.host=
mail.session.mail.smtp.password=
mail.session.mail.smtp.user=
mail.session.mail.store.protocol=
mail.session.mail.transport.protocol=
but still am not able to send it,can u help me out????
i m really fussed up here...
thanks in advance
but actually i m trying to send mail out of our organisation but am not able to...
i made changes in portal-ext.properties file :
mail.session.mail.imap.host=
mail.session.mail.pop3.host=
mail.session.mail.smtp.host=
mail.session.mail.smtp.password=
mail.session.mail.smtp.user=
mail.session.mail.store.protocol=
mail.session.mail.transport.protocol=
but still am not able to send it,can u help me out????
i m really fussed up here...
thanks in advance
تم تعديل 1130847 منذ 16 سنوات من الدقائق.
Regular Member
المشاركات: 128
تاريخ الإنضمام: 31/7/08
المشاركات الحديثة
double check your mail configurations which you have made in portal-ext.properties, check by using gmail mail configurations. and check for firewall settings.
Thx,
Babu
Thx,
Babu
تم تعديل 4765569 منذ 16 سنوات من الدقائق.
New Member
المشاركات: 17
تاريخ الإنضمام: 26/3/10
المشاركات الحديثة
Thanks for your reply..
actually in our organisation gmail is blocked and so i have tried it by configuring for zimbra mail server...
wat more changes sud i make??????
do i need to make any changes in ui??????
actually in our organisation gmail is blocked and so i have tried it by configuring for zimbra mail server...
wat more changes sud i make??????
do i need to make any changes in ui??????
تم تعديل 1130847 منذ 16 سنوات من الدقائق.
Regular Member
المشاركات: 128
تاريخ الإنضمام: 31/7/08
المشاركات الحديثة
hi,
have you tried to configure your organization mail server. take a look @ THIS URL
<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="localhost"
mail.pop.host="localhost"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
mail.smtp.host="smtp.yourorganization.com"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.starttls.enable="true"
mail.smtp.user="username"
password="password"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>
thx,
Babu
have you tried to configure your organization mail server. take a look @ THIS URL
<Resource
name="mail/MailSession"
auth="Container"
type="javax.mail.Session"
mail.imap.host="localhost"
mail.pop.host="localhost"
mail.store.protocol="imap"
mail.transport.protocol="smtp"
mail.smtp.host="smtp.yourorganization.com"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.starttls.enable="true"
mail.smtp.user="username"
password="password"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
/>
thx,
Babu
تم تعديل 4765569 منذ 16 سنوات من الدقائق.
New Member
المشاركات: 17
تاريخ الإنضمام: 26/3/10
المشاركات الحديثة
thnks for ur reply
i m using LR 5.2.3.in my LR bundle i have not implemented the chat portlet which was there in the original src code........
in settings -> server administration -> mail .the credentials are given as localhost and pop port and smtp port.
i have connected my LR to another mail server which is having its own credentials but while creating a new user mail is not being sent.
cud anyone plz help me to resolve this issue..............
waiting for ur reply...
i m using LR 5.2.3.in my LR bundle i have not implemented the chat portlet which was there in the original src code........
in settings -> server administration -> mail .the credentials are given as localhost and pop port and smtp port.
i have connected my LR to another mail server which is having its own credentials but while creating a new user mail is not being sent.
cud anyone plz help me to resolve this issue..............
waiting for ur reply...
تم تعديل 4765569 منذ 16 سنوات من الدقائق.
New Member
المشاركات: 17
تاريخ الإنضمام: 26/3/10
المشاركات الحديثة
i m using LR 5.2.3 so i think i neednot do this as it is only used for versions below LR 5.2.1.
تم تعديل 1064200 منذ 16 سنوات من الدقائق.
Expert
المشاركات: 252
تاريخ الإنضمام: 14/7/08
المشاركات الحديثة
hi,
if you're running on ubuntu machine, just run this code
and everything is done.
thanks
if you're running on ubuntu machine, just run this code
sudo apt-get install postfixand everything is done.
thanks
تم تعديل 4765569 منذ 16 سنوات من الدقائق.
New Member
المشاركات: 17
تاريخ الإنضمام: 26/3/10
المشاركات الحديثة
thank u for ur suggestion but i m using fedora 9........
so is there any alternate which i cud do????
waiting for reply
so is there any alternate which i cud do????
waiting for reply
Community
Company
Feedback