Solved

a way to send emails from Ruby programming

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
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…

792 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