File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes bulk mail and bulk sms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "bulk mail and bulk sms" Watch "bulk mail and bulk sms" New topic
Author

bulk mail and bulk sms

pradeep singh
Ranch Hand

Joined: Oct 23, 2007
Posts: 339
Hi to all
I have assigned a project among these 2 i.e. bulk mail or bulk sms.Could any body help me to tell about them in detail and also how to start ?I dont know anything about them right now.I googled but could not succeed.Please help me.
In bulk mail,i have to send a mail to many at a time .And in bulk sms ,similar i have to send a sms to many.

Please help me .


SCJP 5.0(75%), SCWCD 5.0(88%)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19783
    
  20

For the email, you can send the email with all those addresses in the BCC field. Check out javax.mail.Message#addRecipient(s). The maximum number of addresses on the BCC list depends on the mail server. If you can't send everything in one go, send out a few emails instead:

Because you're using BCC you will not show all the email addresses to all recipients, and that will decrease the chance that those addresses end up on some spam list.

You will probably need a CC or TO address as well, but you can use your own address for that.


I don't know how to send SMS messages with Java but the principle is the same. You may have to send those one at a time in a loop instead of grouping numbers together like the BCC solution.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
pradeep singh
Ranch Hand

Joined: Oct 23, 2007
Posts: 339
Thankx
But i dont know how to start .Please help me how to start this project.
My planning about this project is :
1. Make a home page(html page) asking some details such as my id,message which i want to sent and submit button.
2.After submitting ,a servlet handles this form data and get email ids from sql server database and connect to a email service provider and then put those email ids in BCC field.

Thats all which i know .But i dont know how to connect to email service provider and how to put those email ids in To or BCC field.
So please correct me if i am wrong or suggest me better.Is it possible which i have mentioned in 1 and 2 points.
[b]Also i dont know anything about Java mail APIs
[/B][ August 28, 2008: Message edited by: pradeep singh ]
[ August 28, 2008: Message edited by: pradeep singh ]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19783
    
  20

Then your first step is to read up on them: here (focus on the javax.mail and javax.mail.internet packages).
pradeep singh
Ranch Hand

Joined: Oct 23, 2007
Posts: 339
Hi
I have read JavaMail api .Now please guide me to develop this bulk mail application.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

Start with design first. Does your data come from a database? How often are you going to run it? Things like that. Once you have a design, then write code to implement the design.

You do have your own SMTP server to send these bulk mails, right?

And this forum isn't really a helpful place for vague questions like that. What I have just posted shouldn't have to be said at all. But if you have specific questions about the design or the implementation, this would be a good place to ask them.
pradeep singh
Ranch Hand

Joined: Oct 23, 2007
Posts: 339
Hi

You do have your own SMTP server to send these bulk mails, right?


I dont have SMTP server?Is it for sending mails?How can i get it and from where?
I have my broad band connection provided by government agency MTNL in Delhi.Have i asked to them to provide me SMTP server or to someother.Please guide me .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: bulk mail and bulk sms