Sending Gmail using bash script from insti

44 views
Skip to first unread message

Vinay Y

unread,
Aug 25, 2015, 12:41:09 PM8/25/15
to Web and Coding Club IIT Bombay
I have tried using google's smtp service, in vain to find that ping doen't work from insti as disussed here.

Can someone suggest a way to achieve this using bash/python script or any other way?

Thanks in advance,

Vinay.

Parthasarathi Ainampudi

unread,
Aug 25, 2015, 1:01:00 PM8/25/15
to wncc...@googlegroups.com
there have been many threads discussing this issue in the group. just search in the group threads.

--
--
The website for the club is http://wncc-iitb.org/
To post to this group, send email to wncc...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Web and Coding Club IIT Bombay" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wncc_iitb+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vinay Y

unread,
Aug 25, 2015, 4:00:21 PM8/25/15
to Web and Coding Club IIT Bombay
Can you please provide me a link?
I found some threads on accessing institute's mail and sending to outside mail.
But I want to access my gmail and send from that.

Manish Goregaokar

unread,
Aug 25, 2015, 5:14:37 PM8/25/15
to wncc...@googlegroups.com
You can't use SMTP or IMAP.

You might be able to build something around https://developers.google.com/gmail/api/

-Manish Goregaokar

Dilawar Singh

unread,
Aug 26, 2015, 5:07:35 AM8/26/15
to wncc_iitb
Vinay, Try the following command in bash. And see if you can connect. If any of them fails (double check the ports I put in these commands), then there is no direct solution. If they pass, I can write a bash script which uses mutt.

        openssl s_client -connect imap.gmail.com:993 (Try with 443 as well).
and,
      openssl s_client -connect  smtp.gmail.com:587 -starttls smtp (also try with 465)

best,
Dilawar
--
Dilawar
NCBS Bangalore

Manish Goregaokar

unread,
Aug 26, 2015, 7:34:59 AM8/26/15
to wncc...@googlegroups.com
Only 443, 80, and 22 will work (unless you're using HTTP)

-Manish Goregaokar

Pritam Baral

unread,
Aug 26, 2015, 8:49:01 AM8/26/15
to wncc...@googlegroups.com


On 26-Aug-2015 5:05 pm, "Manish Goregaokar" <manis...@gmail.com> wrote:
>
> Only 443, 80, and 22 will work (unless you're using HTTP)

Even with HTTP, only port 80 will work (Unless you use netmon). And, in any case, port 80 will work only if you use HTTP.

Reply all
Reply to author
Forward
0 new messages