Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all experts,
I have been looking though the web looking for the above mention solution. But no luck to my actually request.

I have no problem accessing to Linux via Putty and command prompt using telnet session. While connected to linux, I want to send email using "email command". No problem with putty and command prompt. But using VB.net to create telnet/SSH session, no chance at all.

i do it in putty as shown below:

Login: user
Password: password

[user@server]$ mail user@email.com
Subject: This is subject
this is message
.
Cc:

[user@server]$
Posted
Comments
Richard MacCutchan 18-Jun-13 3:35am    
Whatever you choose you will still need an agent on the Linux system to accept your command and message content and process it.

1 solution

Your question is a little vague and not well stated. You don't send email messages to a system, you send from a username on a system to an email address, which (in most cases) ends up on a mail server. The email message can be downloaded from the server by a user on a client machine. Each of these 3 machines (sender, SMTP server, receiver) can be on just about any platform: windows, mac, linux, other.

Your example code seems to be attempting to send a message from a linux machine. The stuff about PuTTY and SSH are not relevant here. This command might have had more success some time ago. The email protocol was originally designed to be happy to send almost any message anywhere, using any mail relay, with no security checks or "account login". Since the 1990s however, various security problems and the rise of the spam monster have caused systems to prevent mail delivery without significant authorization, face numerous gateways and firewalls that all combine to block your outgoing messages. Failure to deliver a message can be caused by numerous reasons that all really need to be there.

You need to provide a few more details to have your question answered properly...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900