![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Absolute Beginner Talk The perfect starting place to find out more about computers, Linux and Ubuntu. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Ubuntu Developer
![]() Join Date: Aug 2006
My beans are hidden!
Ubuntu 9.10 Karmic Koala
|
Send email through script
I've been trying for a while to set up a way to send emails from a perl script or even the terminal. Currently, I use thunderbird to send email. It uses my gmail account and smtp.gmail.com to send the mail. smtp.gmail.com requires all these authentication things to work (http://mail.google.com/support/bin/a...87&topic=1556). Is there any way I can connect to smtp.gmail.com to send mail from the perl script/terminal? I don't need to be able to read mail, just send it. If I could send from an email account other than my own (without making a new account), that would be even better. I have a feeling that will involve a different smtp server, which is fine, as long as it works.
|
|
|
|
|
|
#2 |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Dec 2005
Location: EU - Belgium
Beans: 664
Ubuntu 9.10 Karmic Koala
|
Re: Send email through script
__________________
When you have a problem, look up what's the source... Otherwise it's like being mad with the lamp when the light goes out, instead of noticing that there's a power breakdown in your city. |
|
|
|
|
|
#3 | |
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Dec 2005
Location: EU - Belgium
Beans: 664
Ubuntu 9.10 Karmic Koala
|
Re: Send email through script
Quote:
Just try it out, configure it, and tell us if it worked for you...
__________________
When you have a problem, look up what's the source... Otherwise it's like being mad with the lamp when the light goes out, instead of noticing that there's a power breakdown in your city. |
|
|
|
|
|
|
#4 |
|
Gee! These Aren't Roasted!
![]() Join Date: Jan 2005
Location: Europe/France
Beans: 219
|
Re: Send email through script
gmail uses smtp over ssl
so, I think you should use the Net::SMTP::SSL module |
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: Aug 2006
Location: Brittany - France
Beans: 5
Ubuntu 6.06
|
Re: Send email through script
Cheater
I don't know if this is what you are after but I send mail to a Gmail account as part of my nightly backup process - I use MUTT to do this. The relevant portion of the backup script is as follows... # And now Mail it to Mozart.Archive@Gmail.com mutt -s "MailBack" -a /home/keckstein/Data/Tars/MailBack.tar.gz MozartArchive@Gmail.com < backuplog.000 I can obviously do the same thing from the console without having to run it in a script. Hope this helps Keith (learning a little more, every day) |
|
|
|
|
|
#6 |
|
Gee! These Aren't Roasted!
![]() Join Date: Apr 2005
Location: ON, TN, FL
Beans: 160
|
Re: Send email through script
|
|
|
|
|
|
#7 | |
|
Ubuntu Developer
![]() Join Date: Aug 2006
My beans are hidden!
Ubuntu 9.10 Karmic Koala
|
Re: Send email through script
Quote:
|
|
|
|
|
|
|
#8 | |
|
Gee! These Aren't Roasted!
![]() Join Date: Jan 2005
Location: Europe/France
Beans: 219
|
Re: Send email through script
with perl, you can use back-quotes :
Quote:
|
|
|
|
|
|
|
#9 |
|
Ubuntu Developer
![]() Join Date: Aug 2006
My beans are hidden!
Ubuntu 9.10 Karmic Koala
|
Re: Send email through script
|
|
|
|
|
|
#10 | ||
|
Skinny Soy Caramel Ubuntu
![]() Join Date: Dec 2005
Location: EU - Belgium
Beans: 664
Ubuntu 9.10 Karmic Koala
|
Re: Send email through script
Quote:
The link I posted previously was to a page where was explained how to install & use MUTT Note to myself: say to where a posted link goes To be quite honest, I'm glad someone else recommends it... I just googled for a prog that could be used to send emails using Script/Command-line. But as I tested it myself it didn't worked... When I first installed it it asked me to choose one of these Quote:
Does one of you know how I could reconfigure it using the menus that appeared then? Reinstalling etc doesn't work ![]() Also, could you tell how you configured it to work with your gmail? [EDIT] Nevermind, tried sendemail and that worked fine. [/EDIT]
__________________
When you have a problem, look up what's the source... Otherwise it's like being mad with the lamp when the light goes out, instead of noticing that there's a power breakdown in your city. Last edited by Ecthelion; January 13th, 2007 at 12:06 PM.. |
||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|