Networking Forums

Networking Forums > Computer Networking > Linux Networking > Sending mail using telnet

Reply
Thread Tools Display Modes

Sending mail using telnet

 
 
Ravi
Guest
Posts: n/a

 
      12-01-2003, 08:33 AM
Hi,

I was trying to send mail using telnet everything went fine.
But I have just one problem

If you want to send a body that contains

some text
asdf
asdfasdf

..

fasdfadfasd

i.e a <crlf>.<crlf> in the body.

Then how can you send it via telnet?

TIA.

--
main(){char s[37]="CSbwjAjocpy/mw!PS!sbwjAeftqbnnfe/dpn";
int i;for(i=0;i<36;putchar(s[i++]-1));return 0;}
 
Reply With Quote
 
 
 
 
C3
Guest
Posts: n/a

 
      12-01-2003, 09:06 AM
I think you may have to MIME encode it. As far as I know, there's no way to
escape characters in SMTP. I may be wrong, though.

cheers,

C3
"Ravi" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> Hi,
>
> I was trying to send mail using telnet everything went fine.
> But I have just one problem
>
> If you want to send a body that contains
>
> some text
> asdf
> asdfasdf
>
> .
>
> fasdfadfasd
>
> i.e a <crlf>.<crlf> in the body.
>
> Then how can you send it via telnet?
>
> TIA.
>
> --
> main(){char s[37]="CSbwjAjocpy/mw!PS!sbwjAeftqbnnfe/dpn";
> int i;for(i=0;i<36;putchar(s[i++]-1));return 0;}



 
Reply With Quote
 
P.T. Breuer
Guest
Posts: n/a

 
      12-01-2003, 09:40 AM
C3 <(E-Mail Removed)> wrote:

Please do not TOP POST!!!!! Fixing ...

> "Ravi" <(E-Mail Removed)> wrote in message
> news(E-Mail Removed)...
> > I was trying to send mail using telnet everything went fine.
> > But I have just one problem
> >
> > If you want to send a body that contains
> >
> > some text
> > asdf
> > asdfasdf
> >
> > .
> >
> > fasdfadfasd
> >
> > i.e a <crlf>.<crlf> in the body.
> >
> > Then how can you send it via telnet?


> I think you may have to MIME encode it. As far as I know, there's no way to
> escape characters in SMTP. I may be wrong, though.


You think wrong. The SMTP protocol says that you have to double any
initial "." on send in the data part.

Well, any initial ".", or just a . on a line alone? I forget. The OP
can go look it up in the RFC concerned.

Peter
 
Reply With Quote
 
Ravi
Guest
Posts: n/a

 
      12-01-2003, 10:39 AM
On Mon, 01 Dec 2003 10:40:13 GMT, (E-Mail Removed) (P.T.
Breuer) wrote:
> The SMTP protocol says that you have to double any
>initial "." on send in the data part.


You are right.

just send

sadfas
f

...

fasdfasd
sffsadf
___________
and the message contains

sadfas
f

..

fasdfasd
sffsadf

Thanks.

--
main(){char s[37]="CSbwjAjocpy/mw!PS!sbwjAeftqbnnfe/dpn";
int i;for(i=0;i<36;putchar(s[i++]-1));return 0;}
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sending mail through telnet to multiple address prashant Linux Networking 1 05-10-2006 06:09 PM
How to config - sending mail to mail.btconnect.com via ADSL Steve Broadband 17 12-03-2005 12:55 PM
sending e-mail with Wi-Fi hot spot Lost & Found Wireless Networks 3 11-01-2005 04:32 AM
Sending mail as HTML Jenda Mudron Linux Networking 1 07-27-2005 06:42 AM
Sending info when establishing a telnet connection The LinuxBuff Linux Networking 2 10-10-2003 07:53 PM



1 2 3 4 5 6 7 8 9 10 11