Solved

a way to send emails from Ruby programming

Posted on 2012-03-18
2
309 Views
Last Modified: 2012-03-19
Hello

I want to be able to write emails from a ruby program for things such as " project point 7 not updated in last 7 days".  It is going to try to do what Microsoft does not seem to do for me as well as get me up on ruby programming.
0
Comment
Question by:TIMFOX123
2 Comments
 
LVL 13

Accepted Solution

by:
F Igor earned 300 total points
ID: 37735230
The package net::SMTP do that job


Check this page:
http://www.tutorialspoint.com/ruby/ruby_sending_email.htm
You need a SMTP server to connect using the server parameters:

Net::SMTP.start('mail.your-domain.com', 
                25, 
                'localhost', 
                'username', 'password' :plain)

Open in new window

This example connects to the SMTP server at mail.your-domain.com using a username and password in plain text format. It identifies the client's hostname as localhost.
0
 
LVL 3

Assisted Solution

by:Rameshwar Vyevhare
Rameshwar Vyevhare earned 200 total points
ID: 37736672
Check this link, http://ruby.about.com/od/tasks/ss/smtp_4.htm
Here is one more good example to send mail in ruby.

Rameshwar
0

Featured Post

The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

Join & Write a Comment

Several part series to implement Internet Explorer 11 Enterprise Mode
The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now