Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SMS on mobile phone with sendmail

Status
Not open for further replies.

olli2003

Technical User
Jan 31, 2003
93
DE
Dear gys

I'd like to send a message via senndmail and the command:
echo "TEXT" |sendmail -v my@provider.de
So my problem's that my display doesn't show the TEXT.
There are only two "" will print after the sender-header.
Why can't I send? It's a problem with sendmail or should
I ask my local provider for this?
Thanks at all!
Kind Regards
Oliver
 
Olli,

I think it must be something with your provider because it worked perfectly for me.

Blayne
 
Why don't you use the "mail" command instead of sendmail?
 
Hey sbix

mail... how can I use?
Have you an example for me?
I saw the manual and I thnik it's a little bit
confuse there.
Thanks for help!

Regards
Oliver
 
From IBM AIX manual:
To send the message letter to the recipient user1@host1 and copies to user2@host2 and user3@host3,
type:
mail -c &quot;user2@host2 user3@host3&quot; user1@host1<letter

Hope to be useful
 
Hi sbix

You're right. It's ok in this way.
This command is just used for more than one recipients.
So in case of this I've just used:

SAPHIR_D:root:/ # mail user@provider@.de
Subject: test
text 1234

But in which way I'm able to finish the message now,
so that I can send the text?
I've tried to use several keys for it,
but I can't leave this editor.
Thanks a lot!

Kind Regards
Oliver
 
Did you try something like:
mail -s Test user@provider@.de <<EOF
your_text
EOF

I tried locally on my system and works
 
Hi sbix,

I've tested and it looks ok!
But is it right that you've just one word available
for the subject-string?
Is there a way for using more than one?

Thanks a lot!
Best Regards
Oliver
 
try this (it works):
mail -s 'Test1 Test2 Test3 Test4' user@provider@.de <<EOF
your_text
EOF

 
Hi sbix

Thanks for the great help.

Nice weekend!

Regards
Oliver
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top