Solved

a way to send emails from Ruby programming

Posted on 2012-03-18
2
312 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using icacls to block access to mstsc, cmd & PowerShell 4 120
deploy workstation 4 79
iPhone v Android phone 7 29
WIndows 10 tablet mode on screen keyboard split mode 7 26
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
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.

910 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

22 Experts available now in Live!

Get 1:1 Help Now