Jump to content

Sending an email

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
AdvMutant

AdvMutant

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 438 posts
Hey. It might sound simple, as long as you're not me. I'm trying to send an email using cmd. I'm running windows xp, but it has to work on windows 7 too. I wanna use my gmail account.
I found some VBS and EXE files that were supposed to work, but they're unable to connect to gmail's smtp.gmail.com server. Any way to fix it?

Posted Image
There is no problem that cannot be solved by the use of high explosives.


#2
DEViANT

DEViANT

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 358 posts
I dunno about CMD, in linux terminal its as simple as


>telnet smtp.gmail.com 25


followed by your HELO command, from and rcpt to, data, etc.

I remember CMD has a telnet client though. Try it out

:D You should rep+ me so that I can win :D

My Blog | Ask me!
Error : Satan did it

#3
AdvMutant

AdvMutant

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 438 posts
I tried it, but it won't let me for some reason. All I get is a blank CMD screen. Linux is a very interesting OS, I'm really starting to like it.

Posted Image
There is no problem that cannot be solved by the use of high explosives.


#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I suspect Gmail is used a secure connection only, which may use a different port, or may be expecting additional information.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
nicckk

nicckk

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 629 posts
Google's outgoing mail server is SSL enabled, and is on port 465.

#6
AdvMutant

AdvMutant

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 438 posts
Oh... So is there a way I can telnet a SSL server?

Posted Image
There is no problem that cannot be solved by the use of high explosives.


#7
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,120 posts

AdvMutant said:

Oh... So is there a way I can telnet a SSL server?
Well you are not going to get far with that, it required TLS (:587 not SSL :465). Telnet in command prompt does not display characters (it will be blank), so I would recommend downloading a simple and more advanced telnet client, such as PuTTytel. Server: smtp.gmail.com, port: 587.

You will see HELO/OLEH and HELP/MAIL commands will work fine, for a list of appropriate commands, check out the RFC specification, I am too rusty to give you a tutorial:
http://www.ietf.org/rfc/rfc2821.txt
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#8
AdvMutant

AdvMutant

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 438 posts
Thanks, I'll try that at home later.

Posted Image
There is no problem that cannot be solved by the use of high explosives.