Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all! can please anyone tell how to send email with attachment from telneting to SMTP server? i searched various places, but found nothing i am developing mail sending application, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie DeoXMAN's Avatar
    Join Date
    Jul 2005
    Location
    Azerbaijan, Germany
    Posts
    154

    sending mail with telneting to smtp server


    Hi all!
    can please anyone tell how to send email with attachment from telneting to SMTP server? i searched various places, but found nothing
    i am developing mail sending application, that why i am asking question. I would appreciate if someone would help me with this.
    Karabakh - I will be back

  2. #2
    Linux Newbie dilbert's Avatar
    Join Date
    Sep 2006
    Location
    Yorkshire, GB
    Posts
    237
    I guess you would need some sort of telnet stack for this.

    Therefore, using Expect and telnet as shell command would do the job without using C.

    Samples of the SMTP protocol with HELO, DATA etc I found once in the O'Reilly book of Graig Hunt "TCP/IP Network Administration", but should also be found with any search engine. The RFC for SMTP is "RFC 821".

    Attachments need to be integrated into the mail before that, using MIME types.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •