If I use the "Mail" link instead of the "mail" link to ../mailx I get this error.
Mail so-n-so @whatever.com
mailx: NUL changed to @
Unknown command: "postmaster"
The email still goes through but i get the error.
If I use "mail" it goes thru without the error.
Any ideas?? (2 Replies)
I have a KSH script that runs a SQL script, then sends an email to me indicating that it's completed. I would like to modify it so that the body of the email will contain a count of the number of records Added, Changed, Deleted as a result of the SQL script.
Here's what I was trying, but it's... (2 Replies)
Hi all,
Think this is a pretty simple problem, but I've been thinking about it for a few days. Let's say that I'm going to have to output the contents of a file as the body of a mailx message.
I'll probably do this: cat <filename> | mailx <extra commands>
However, how do I go about doing... (1 Reply)
Hi
I am totally dummy as far as UNIX is concerned, so please apologize.
I was just given the syntax to send multiple attachments with a body.txt message, it works great and we use it a lot.
Now, my question is : can we have the body to be a Binary file (like a Word Document for example)?
... (5 Replies)
hi,
Can anyone please tell me how to add some text in the mail body like I can add subject using the following syntax.
mailx -s "Hi - This is mail subject" xyz@abc.com
Many Thanks. (4 Replies)
Hi,
I'm working on Solaris 9 (SPARC) and I like to send an html body message to our users when something happen.
The problem is that I can't find how to give mime type information with mailx.
To be recognized as html I need to put in email header this information:
Mime-Version: 1.0... (2 Replies)
Hi,
Our requirement is to send an attachment and content in a single mail. I am using the below command to send attachement.
---------------------
(uuencode $exp_file $exp_file) |mailx -s "$email_subject" $EmailRecipients
--------------------
I m not able to send any message in the... (4 Replies)
Hi,
I am using mailx command to send an email and i took the body of the email from a file,
mailx -r gtt.org -s "Status Report " ss@org.com < $ProcessStatisticsFile
but now i want to declare the body of the email in the command itself.
I have tried with the following command but... (4 Replies)
Hi,
I'm a perl developer. I need to attach a file from my perl cgi script and send mail to our users whoever using our website. I have used mailx command to attach a file.. it is working fine for me. The problem I'm facing is I'm not getting body of the mail.
I have a function called... (0 Replies)
i have to attach the 'body in the email' along with attachment below code is throwing errors, how can i do it ?
here body file contains message, it should display in email, please help
i am using HP-UX
(cat body ;) (uuencode attch1 attch1 ;) | mailx -m -s "testing" "abc@gmail.com"
... (4 Replies)
Discussion started by: only4satish
4 Replies
LEARN ABOUT DEBIAN
amqp-publish
AMQP-PUBLISH(1) RabbitMQ C Client AMQP-PUBLISH(1)NAME
amqp-publish - Publish a message on an AMQP server
SYNOPSIS
amqp-publish [OPTION...]
DESCRIPTION
Publishes a message to an exchange on an AMQP server. Options allow the various properties of the message and parameters of the AMQP
basic.publish method to be specified.
By default, the message body is read from standard input. Alternatively, the -b option allows the message body to be provided as part of
the command.
OPTIONS -e, --exchange=exchange name
The name of the exchange to publish to. If omitted, the default exchange (also known as the nameless exchange) is used.
-r, --routing-key=routing key
The routing key to publish with. If omitted, an empty routing key is assumed. A routing key must be specified when publishing to the
default exchange; in that case, accoding to the AMQP specification, the routing key corresponds to a queue name.
-p, --persistent
Use the persistent delivery mode. Without this option, non-persistent delivery is used.
-C, --content-type=MIME type
Specifies the content-type property for the message. If omitted, the content-type property is not set on the message.
-E, --content-encoding=content coding
Specifies the content-encoding property for the message. If omitted, the content-encoding property is not set on the message.
-b, --body=message body
Specifies the message body. If omitted, the message body is read from standard input.
EXAMPLES
Send a short message, consisting of the word "Hello" to the queue "myqueue" via the default exchange:
$ amqp-publish -r myqueue -b Hello
Send some XML data from a file to the exchange "events", with persistent delivery mode, setting the content-type property on the message to
make the data format explicit:
$ amqp-publish -e events -p -C text/xml <event.xml
SEE ALSO librabbitmq-tools(7) describes connection-related options common to all the RabbitMQ C Client tools.
AUTHOR
The RabbitMQ Team <info@rabbitmq.com>
RabbitMQ C Client 2011-01-01 AMQP-PUBLISH(1)