Mannu Pal

Greenhorn
+ Follow
since Dec 15, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Mannu Pal

Hi all,

i got the solution.
just replace this line of code and enjoy !!!

String emailRegEx ="^([_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.(([A-Za-z]{2,3})|(aero|coop|info|museum)))?$";


Regards ,

Mannu Pal
15 years ago
Hi ,
I am using this code for email validation. the only problem with this is its taking space like as i have shown in exp code.
can any one help me to fix this bug.

String emailString = "aa hello@abv.com";
boolean isValidEMail = false;
String emailRegEx ="^([_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*.(([a-z]{2,3})|(aero|coop|info|museum)))?$";
Pattern pattern = Pattern.compile(emailRegEx);
Matcher matcher = pattern.matcher(emailString);
isValidEMail = matcher.find();
System.out.println("email result : "+isValidEMail);

email result : true

Regards ,
Mannu Pal.
15 years ago
hi i got the solution ,

It is here for you guys.


connectionProps.setProperty("mail.pop.connectiontimeout", timeoutStr);
connectionProps.setProperty("mail.pop.timeout", timeoutStr);

Thanks ,
Mannu Pal
15 years ago
Hi ,

i am using gmail server for sending and reading mail.

once at the time of sending mail. i m making ssl="fasle".

its taking almost 10-30 minute to response.

i want to set my own connection time out setting ...
can any one help me to do that.

once i am setting ssl="false". i am getting this error

Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465, response: -1
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1379)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
at javax.mail.Service.connect(Service.java:288)
at javax.mail.Service.connect(Service.java:169)
15 years ago
Hi raj malhotra ,

i am using blob type. and i am able to save data into oracle database(as object). but at the time of retrieving i am not getting real one.
at the time of insert i am checking the byte[] and at the time or retrieve its giving different byte[].

can you guide how to do this.
if required i will share code with you.

Thanks ,
Mannu Pal.
Hi ,
i have a requirement in which i have to save some files into a table. and these files may b in any format like (Pdf, csv, doc etc). i have to do this using java coding.

can any one guide me to do this.

Thanks ,

Mannu Pal.
Thanks a lot i am able to do it.

if any one need help on this. you can catch me on this.

Thanks ,
Mannu Pal
15 years ago
Hi ,

I am new to java mail Operations. I am using POP3 mail to perform Operations like read a mail, Send a mail, Download Attachment, Forward mail with and without Attachment. and client i am using Lotus Notes.

Can any one Help me to do this
If you can send some sample code it will help me a lot.

i am waiting for positive response from all of you.

Thanks ,
Mannu Pal.
15 years ago