LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-05-2007, 10:17 PM   #1
augurseer
Member
 
Registered: Feb 2006
Location: Canada
Distribution: OpenSuSe 10.2 (Home and Laptop) CentOS 5.0 (Server)
Posts: 171

Rep: Reputation: 30
send CLI email using googles SMTP


i am trying to set up a number of automated email based messaging system for my work and home.


what i would like to do is send email from the CLI to specific email address'.

I even found a program that seems to have the option i am looking for it is called sendemail and it seems quite nice.

My main issue is that even when i think i have fiiled it out 100% i get a segmentation fault error and the program ends.


I am trying to send the email through gmails SMTP server, which requires TLS over SMTP and uses port 465

it takesa while to time out and then says segmentaiton fault.

is this my end? a result of google? is my input to the program wrong?


do you recomend any other CLI based email sending tools?


this isnt jsut for system messagaing but thats where i am starting!!!!



heres the input i put and the output i get:


the fakes are so i dont give away real info HAHA


./sendEmail -f fake@gmail.com -t fakefake@gmail.com -s smtp.gmail.com:465 -o tls=yes username=fakename@gmail.com password=fakepassword



heres the output:

Segmentation fault



BOP thats it


-thanks
 
Old 12-06-2007, 10:02 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Try to do the smtp conversation manually:
Code:
openssl s_client -connect machine.google.com:465 -starttls smtp
That takes care of the TLS connection. Anything else, include authentication, needs to be done
during the conversation.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setup an smtp server to send email everywhere mariogarcia Linux - Server 3 08-04-2007 09:10 PM
Can't send email using SMTP...stuck smiley_lauf Linux - Newbie 4 01-31-2006 08:20 PM
can't send email, smtp or sendmail dtra Linux - Software 1 11-19-2005 06:00 PM
finding c++ smtp libs to send email YatseaLee Programming 0 12-05-2004 10:07 PM
Using Postfix the send email via another smtp server - to anyone. scarstens Linux - Newbie 1 01-27-2004 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration