LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to configure the automatic mail creation and sending in suse linux (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-the-automatic-mail-creation-and-sending-in-suse-linux-4175506879/)

srivathsaes 06-03-2014 07:18 AM

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

linosaurusroot 06-03-2014 07:35 AM

Have you searched the web for java code to send mail as you want?

Does it definitely have to be java?

srivathsaes 06-04-2014 12:31 AM

Quote:

Originally Posted by linosaurusroot (Post 5181495)
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.

dijetlo 06-04-2014 12:03 PM

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,

TB0ne 06-04-2014 01:10 PM

Quote:

Originally Posted by srivathsaes (Post 5181493)
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.

linosaurusroot 06-04-2014 01:43 PM

Quote:

Originally Posted by dijetlo (Post 5182368)
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.

dijetlo 06-04-2014 03:09 PM

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.

DJ Shaji 06-14-2014 07:56 PM

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.

TB0ne 06-15-2014 11:31 AM

Quote:

Originally Posted by DJ Shaji (Post 5188253)
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.

TB0ne 06-15-2014 11:32 AM

Quote:

Originally Posted by DJ Shaji (Post 5188253)
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.

DJ Shaji 06-15-2014 05:32 PM

Quote:

Originally Posted by TB0ne (Post 5188476)
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+? :cool:

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 :twocents:


All times are GMT -5. The time now is 02:03 PM.