LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-03-2014, 07:18 AM   #1
srivathsaes
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Rep: Reputation: Disabled
how to configure the automatic mail creation and sending in suse linux


Hi
We are working on a automated mail solution for our client.
We are using suse linux and then mysql server on the server.
We are having a java application and based on a situation in application we need to send and automated mail with an attachment to a clients mail id.
I wishf to know what is the prerequisite to configure the server to do automated mailing with an attachment.
As of now the server is not connected to internet and shortly it will be connected.
There is no exchange server available. I need to use the web mail credentials and then log in and prepare the mail and send across to the recipeient after preparing the preformated mail with an attachment.

We are having a J2EE based application which need to do this mailing task automatically with a initiation of a situation called day end process.

Thanks and Regards
Srivathsa .E.S
 
Old 06-03-2014, 07:35 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Have you searched the web for java code to send mail as you want?

Does it definitely have to be java?
 
Old 06-04-2014, 12:31 AM   #3
srivathsaes
LQ Newbie
 
Registered: Jun 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linosaurusroot View Post
Have you searched the web for java code to send mail as you want?

Does it definitely have to be java?
Yes ,
because the application that is being developed and deployed is in java and this need to be done. There is a java code to develop the mail.
We need to find the way how it can be automaticablly sent from linux server as the application is running on Linux server.
 
Old 06-04-2014, 12:03 PM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
I'm still trying to get over the fact you sold somebody a solution you didn't know how to implement, and then came on an internet message board looking for the answer to your own dilema...

Fortunately for you, I have your solution.... right here

Be patient, you're about to pull down the sendmail manual, it's roughly 1500 pages long.

Post back if you have any questions,
 
1 members found this post helpful.
Old 06-04-2014, 01:10 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,788

Rep: Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162
Quote:
Originally Posted by srivathsaes View Post
Hi
We are working on a automated mail solution for our client. We are using suse linux and then mysql server on the server. We are having a java application and based on a situation in application we need to send and automated mail with an attachment to a clients mail id. I wishf to know what is the prerequisite to configure the server to do automated mailing with an attachment. As of now the server is not connected to internet and shortly it will be connected. There is no exchange server available. I need to use the web mail credentials and then log in and prepare the mail and send across to the recipeient after preparing the preformated mail with an attachment.
You say "SuSE Linux", but don't tell us what version, and mention "web mail", but don't tell us what webmail package. If you want to send mail from the command line, you need to configure either sendmail or postfix. There are THOUSANDS of easily-found how-to guides Google can point you to, which will help you set up either postfix or sendmail. Once you can send mail from the command line (either through the mail or mailx commands), your application can use those commands. The 'prerequisite' for sending email is, very obviously, a mail server...what it is doesn't matter, as long as it can relay messages.

Since you mention webmail, that server itself may provide such things.
Quote:
We are having a J2EE based application which need to do this mailing task automatically with a initiation of a situation called day end process.
Ok, so what are you asking us for? If you already HAVE the java application, and the J2EE application, you're all set....since it's your program, make it do whatever you'd like.

If you're asking someone here to CODE for you, then post this job in the LQ Job Marketplace (along with how much you're willing to pay), and someone will be happy to do it for you.
 
Old 06-04-2014, 01:43 PM   #6
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by dijetlo View Post
I'm still trying to get over the fact you sold somebody a solution you didn't know how to implement, and then came on an internet message board looking
To be slightly fairer he might be working for the guy who sold something he doesn't understand.

The difference between a computer salesman and a car salesman is the car salesman knows when he's lying.
 
1 members found this post helpful.
Old 06-04-2014, 03:09 PM   #7
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
To be slightly fairer
Yeah, I know, however I don't think I did him any harm, if you're going to work for a guy who sells vaporware mail-servers, you better read the sendmail manual.
 
Old 06-14-2014, 07:56 PM   #8
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 516
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
You want to send automated e-mails? Marvelous! I love getting unsolicited e-mails! By the way, what you are trying to do will most likely violate the Terms of Service of most (all?) service providers.
 
Old 06-15-2014, 11:31 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,788

Rep: Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162
Quote:
Originally Posted by DJ Shaji View Post
You want to send automated e-mails? Marvelous! I love getting unsolicited e-mails! By the way, what you are trying to do will most likely violate the Terms of Service of most (all?) service providers.
...except, based on the OP's first post, where they mentioned "...and based on a situation in application we need to send and automated mail with an attachment to a clients mail id."

..which could be a network monitoring application responding to a router down, a new user signing up on a hosted web server, or ANY very legitimate reason for someone to get an email. And sending emails to your own clients certainly wouldn't violate any TOS. Any provider that won't let you communicate with your own clients would be pretty useless AS a provider.

Since the OP also mentions these emails will be going to their clients mail ID, that really doesn't indicate a spammer to me. And since the OP never came back to say anything or provide any details, it's all speculation anyway.
 
Old 06-15-2014, 11:32 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,788

Rep: Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162Reputation: 4162
Quote:
Originally Posted by DJ Shaji View Post
You want to send automated e-mails? Marvelous! I love getting unsolicited e-mails! By the way, what you are trying to do will most likely violate the Terms of Service of most (all?) service providers.
...except, based on the OP's first post, where they mentioned "...and based on a situation in application we need to send and automated mail with an attachment to a clients mail id."

..which could be a network monitoring application responding to a router down, a new user signing up on a hosted web server, or ANY very legitimate reason for someone to get an email. And sending emails to your own clients certainly wouldn't violate any TOS. Any provider that won't let you communicate with your own clients would be pretty useless AS a provider.

Since the OP also mentions these emails will be going to their clients mail ID, that really doesn't indicate a spammer to me. And since the OP never came back to say anything or provide any details, it's all speculation anyway.
 
Old 06-15-2014, 05:32 PM   #11
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 516
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by TB0ne View Post
And sending emails to your own clients certainly wouldn't violate any TOS. Any provider that won't let you communicate with your own clients would be pretty useless AS a provider.
Yep. I agree. In fact, something I love more than getting unsolicited e-mail is learning about new and exciting offers from my service providers. Can you imagine how lost I would be if I didn't get to learn about how I could win a whole extra MB of storage in SkyDrive (or whatever it is now called) right there in my Outlook.com inbox, or if I didn't get updates about the exciting things I'm missing out on on G+?

A web hosted e-mail service for communicating with clients? Doesn't really seem legit to me. Why not just use IMAP or POP3 instead? Or run one's own mail server? I may be wrong, but I smell hot and exciting new offers headed towards my inbox
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic Mail sending in linux sanigo Linux - Software 2 06-12-2009 12:06 AM
Error with SMTP sending mail on Evolution 2.4.0 on Suse 10.0 The Jedi Linux - Newbie 2 07-22-2006 11:45 AM
automatic user account creation in mail server kar11 Linux - Software 0 04-13-2004 11:55 PM
Need help on sending e-mail from SuSe 9.0 Kals Linux - Newbie 2 12-17-2003 10:48 AM
Sending an automatic mail using bash + mail Minuteman Linux - Software 4 08-21-2003 12:49 PM


All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration