Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 





Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
Thread Tools
Old 08-28-2008, 10:31 PM   #1 (permalink)
Registered User
 
Join Date: Aug 2008
Posts: 4
OS: xp


bulk mail

Hi
I have assigned to make a project of sending bulk email through through my web-application.Could you tell me how can i achieve this one.In what ways you can help me in this project.
I know Java but dont know how to proceed.
Please help me

pradeep singh

Last edited by DonaldG : 08-29-2008 at 03:13 PM. Reason: Removed email address to avoid bot smamming
pradeepsingh999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 08-30-2008, 10:08 AM   #2 (permalink)
Manager, Networking Forums
 
johnwill's Avatar
 
Join Date: Sep 2002
Location: S.E. Pennsylvania, US
Posts: 32,947
OS: XP-Pro, Vista, Linux


Blog Entries: 1
Re: bulk mail

I really doubt that we want to help someone create SPAM, I'm sure not inclined to offer any assistance!
__________________
If TSF has helped you, Tell us about it! or Donate to help keep the site up!

Microsoft MVP - Windows Desktop Experience
johnwill is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 08-30-2008, 01:43 PM   #3 (permalink)
TSF Enthusiast
 
sobeit's Avatar
 
Join Date: Nov 2007
Location: NEAR
Posts: 6,013
OS: windows/linux


Send a message via MSN to sobeit Send a message via Yahoo to sobeit Send a message via Skype™ to sobeit
Re: bulk mail

tell more about this bulk email. What is it? what type of organization is this email is for? is it subscription type stuff or non solicited?

Do you want the emails auto generated or will it be composed by someone and sent? Will you be using your webhosts email system or a third party? One thing for sure, if you will be using your webhosts email system, then you need to check their policies on bulk emails.

we need more info to even begin to help you.
__________________
Do not feed the trolls.

Last edited by sobeit : 08-30-2008 at 01:45 PM.
sobeit is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 08-31-2008, 06:38 PM   #4 (permalink)
Registered User
 
Join Date: Aug 2008
Posts: 4
OS: xp


Re: bulk mail

Hi
I am a student now and doing a project of sending many mails(more than 200 mails within a short period of time and also sending many sms .It is not of like sending junk mails .I want to make it by using Java technology.Pease help me regarding this.
Thankx !

Expecting your reply very soon.
pradeepsingh999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 08-31-2008, 07:49 PM   #5 (permalink)
Registered User
 
Join Date: Feb 2008
Posts: 269
OS: Vista


Re: bulk mail

Here it is in PHP:

<?php

$to = 'your email here';
$subject = 'haihaihai';
$msg = 'lolololowned';

mail($to,$sub,$msg);

?>
Slapshot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 09-01-2008, 07:44 AM   #6 (permalink)
Registered User
 
Join Date: Aug 2008
Posts: 4
OS: xp


Re: bulk mail

Hi
Thankx .I dont know php and i know java.I used javamail api .Below is my program but getting some exceptions ,don't know why?



quote:
--------------------------------------------------------------------------------
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;

public class sms
{
public static void main(String args[])
{
try
{
String strstrsmtserver="smtp.bol.net.in";
String strto="pradeepsingh999@yahoo.co.in";
String strfrom="sandeepsumal@bol.net.in";
String strsubject="Hello";
String bodytext="This is my first java mail program";


sms s=new sms();





s.send(strstrsmtserver,strto,strfrom,strsubject,bodytext);


}

catch(Exception e)
{
System.out.println("usage:java sms"+"strstrsmtpserver tosddress fromaddress subjecttext bodyText");
}
System.exit(0);

}





public void send(String strsmtpserver,String strto,String strfrom ,String strsubject,String bodytext)
{
try
{
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
Properties p=new Properties(System.getProperties());












if(strsmtpserver!=null)
{
p.put("mail.transport.protocol","smtp");
p.put("mail.smtp.host","pradeepsingh999@yahoo.co.in");

p.put("mail.smtp.port","25");

}


Session session=Session.getDefaultInstance(p);

Message msg=new MimeMessage(session);




Transport trans = session.getTransport("smtp");
trans.connect("smtp.bol.net.in","sandeepsumal@bol.net.in","1234563757");





msg.setFrom(new InternetAddress(strfrom));
msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(strto,false));



msg.setSubject(strsubject);
msg.setText(bodytext);


msg.setHeader("X-Mailer","mtnlmail");
msg.setSentDate(new Date());

Transport.send(msg);

System.out.println("Message sent OK.");
}

catch(Exception ex)
{
System.out.println("here is error");
ex.printStackTrace();
}


}


}
--------------------------------------------------------------------------------




It compiles fine but showing exceptions at run time.Please help me to remove these exceptions.I am new to this JavaMail and it is my first program of javamail.Please also tell me how to use smtp server.I am using MTNL 's internet connection having smtp.bol.net.in server.

exceptions are:

Here is exception

quote:
--------------------------------------------------------------------------------
Javax.mail.MessagingException:Could not connect to SMTP host : smtp.bol.net.in, port :25;
Nested exception is :
Java.net.ConnectException:Connection refused: connect
At com.sun.mail.smtp.SMTPTransport.openServer<SMTPTransport.java:1227>
At com.sun.mail.smtp.SMTPTransport.protocolConnect<SMTPTransport.java:322>
At javax.mail.Service .connect(Service.java:236>
At javax.mail.Service.connect<Service.java:137>
At sms.send<sms.java:77>
At sms.main<sms.java:24>
;
pradeepsingh999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 09-01-2008, 08:00 AM   #7 (permalink)
Registered User
 
Join Date: Aug 2008
Posts: 4
OS: xp


to send a single message(email) to all students of an institute within short time

Hi
I want to develop 2 application using Java technology.First one is to send a same message to all students of an institute on their email ids.
And for second one to send a sms to all students of an institute on their cell phones.

For first one i am using JavaMail api but got many exceptions at run time.Below is my small program.But for second application i don't know how and what can be used for sms application?


quote:
--------------------------------------------------------------------------------
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;

public class sms
{
public static void main(String args[])
{
try
{
String strstrsmtserver="smtp.bol.net.in";
String strto="pradeepsingh999@yahoo.co.in";
String strfrom="sandeepsumal@bol.net.in";
String strsubject="Hello";
String bodytext="This is my first java mail program";


sms s=new sms();





s.send(strstrsmtserver,strto,strfrom,strsubject,bodytext);


}

catch(Exception e)
{
System.out.println("usage:java sms"+"strstrsmtpserver tosddress fromaddress subjecttext bodyText");
}
System.exit(0);

}





public void send(String strsmtpserver,String strto,String strfrom ,String strsubject,String bodytext)
{
try
{
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
Properties p=new Properties(System.getProperties());












if(strsmtpserver!=null)
{
p.put("mail.transport.protocol","smtp");
p.put("mail.smtp.host","pradeepsingh999@yahoo.co.in");

p.put("mail.smtp.port","25");

}


Session session=Session.getDefaultInstance(p);

Message msg=new MimeMessage(session);




Transport trans = session.getTransport("smtp");
trans.connect("smtp.bol.net.in","sandeepsumal@bol.net.in","1234563757");





msg.setFrom(new InternetAddress(strfrom));
msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(strto,false));



msg.setSubject(strsubject);
msg.setText(bodytext);


msg.setHeader("X-Mailer","mtnlmail");
msg.setSentDate(new Date());

Transport.send(msg);

System.out.println("Message sent OK.");
}

catch(Exception ex)
{
System.out.println("here is error");
ex.printStackTrace();
}


}


}
--------------------------------------------------------------------------------




It compiles fine but showing exceptions at run time.Please help me to remove these exceptions.I am new to this JavaMail and it is my first program of javamail.Please also tell me how to use smtp server.I am using MTNL 's internet connection having smtp.bol.net.in server.

exceptions are:

Here is exception

quote:
--------------------------------------------------------------------------------
Javax.mail.MessagingException:Could not connect to SMTP host : smtp.bol.net.in, port :25;
Nested exception is :
Java.net.ConnectException:Connection refused: connect
At com.sun.mail.smtp.SMTPTransport.openServer<SMTPTransport.java:1227>
At com.sun.mail.smtp.SMTPTransport.protocolConnect<SMTPTransport.java:322>
At javax.mail.Service .connect(Service.java:236>
At javax.mail.Service.connect<Service.java:137>
At sms.send<sms.java:77>
At sms.main<sms.java:24>
pradeepsingh999 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 03:49 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82