Sponsored Content
Top Forums Shell Programming and Scripting Mailx: How to send a attachment using mailx command Post 302396229 by zaxxon on Thursday 18th of February 2010 04:12:22 AM
Old 02-18-2010
This question is asked very often here in the forums, please search the forum for "mail attachment" - you will find plenty helpful threads.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

HELP!!! how to send PDF file as an attachment using mailx

Hi, iam using the following command: uuencode file1.pdf file1.pdf|mailx - s "waz up?" xyz@domain.com Iam recieving an encoding error when i try to open the attachment. Pls help..very urgent!!! (1 Reply)
Discussion started by: Brat
1 Replies

2. Shell Programming and Scripting

UNABLE to send 5MB attachment using mailx

hi, i've created a script that sends out an email using the mailx and uuencode command. the script is ok, but when a 5MB attachment is sent, there are time that the intended recepients does not receive any email. i tested it and the issue is intermitent. please help on how to troubleshoot. i... (3 Replies)
Discussion started by: tads98
3 Replies

3. Shell Programming and Scripting

How to send attachment to web-based email client using mailx

hi, i am trying to send mail with attachment to web-based email client like gmail.com using mailx. the problem is it is displayed in content rather than as attachment. the code i am using is as follows, uuencode test1.txt test1.txt | mailx -s "test only" aaaa@gmail.com does anyone... (1 Reply)
Discussion started by: randomcz1
1 Replies

4. Shell Programming and Scripting

Problem with Mailx command to send mail with attachment

Hi, I am using mailx command to send a mail with attachment. It's working fine, but with attachment I am getting one extra attachment like (ATT00131.txt). I have tried to use unix2dos command also. But still I am getting the extra attachment. I am using the following code: subject="temp... (5 Replies)
Discussion started by: viswanatharv
5 Replies

5. UNIX for Advanced & Expert Users

how to send file as attachment using mail or mailx

I have a need to send a file from the unix command line to be sent as an attachment. Is this possible? That is when I open my outlook email I need to file to appear as an attachment. Also, is there a way to use the mail binary (not mailx) to modify the "reply address". mailx -r works but I need... (1 Reply)
Discussion started by: kieranfoley
1 Replies

6. Shell Programming and Scripting

send attachment and body in one mail using mailx

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)
Discussion started by: ashwin3086
4 Replies

7. Shell Programming and Scripting

want to send .csv file as an attachment using mailx command.

want to send .csv file as an attachment using mailx command. Please help!!! (1 Reply)
Discussion started by: gagandeep
1 Replies

8. Shell Programming and Scripting

Mailx command to send attachment file

Hi, I need to send a attachment which has space in the file name as: "ABC Data Extract.txt" which is present in the location /home/projects/txt i am using /home/projects/scripts mailx -s "Sub" email_id "/home/projects/txt/ABC Data Extract.txt" but i am not getting the attachment. (7 Replies)
Discussion started by: ATWC
7 Replies

9. UNIX for Dummies Questions & Answers

Unable to send attachment using mailx command

I am unable to send email with attachment using the mailx command. Without the attachment, the email goes through file. This is the command I use. Works : $ echo "Test" | mailx -s "Test" username@website.com Fails : $echo "Test" | mailx -a all-dss-accounts.txt -s "Test"... (3 Replies)
Discussion started by: nkarthik_mnnit
3 Replies

10. Shell Programming and Scripting

How to send a PDF attachment via MAILX?

Hi, We are using HPUX and have a script to send PDF attachment via MAILX Basically the script does the following: echo > $HOME/MY_mail_file uuencode o40881754.pdf o40881754.pdf >> MY_mail_file cat MY_mail_file | mailx -m -s "Sending PDF attachment" <email address> This script works... (7 Replies)
Discussion started by: Michel
7 Replies
WESNOTHD(6)					   Battle for Wesnoth multiplayer network daemon				       WESNOTHD(6)

NAME
wesnothd - Battle for Wesnoth multiplayer network daemon SYNOPSIS
wesnothd [-dv] [-c path] [-p port] [-t number] [-T number] wesnothd -V DESCRIPTION
Manages Battle for Wesnoth multiplayer games. See http://www.wesnoth.org/wiki/ServerAdministration on what commands the server accepts via the wesnoth client (/query ...) or the fifo. OPTIONS
-c path, --config path tells wesnothd where to find the config file to use. See the section SERVER CONFIG below for the syntax. You can reload the config with sending SIGHUP to the server process. -d, --daemon runs wesnothd as a daemon. -h, --help tells you what the command line options do. --log-level=domain1,domain2,... sets the severity level of the log domains. all can be used to match any log domain. Available levels: error, warning, info, debug. By default the error level is used and the info level for the server domain. -p port, --port port binds the server to the specified port. If no port is specified, port 15000 will be used. -t number, --threads number sets the maximum number of waiting worker threads for network I/O to n (default: 5, max: 30). -T number, --max-threads number sets the maximum number of worker threads that will be created. If set to 0 there will be no limit (default: 0). -V, --version shows version number and exits. -v, --verbose turns debug logging on. SERVER CONFIG
The general syntax is: [tag] key="value" key="value,value,..." [/tag] Global keys: allow_remote_shutdown If set to no (default), shut_down and restart requests are ignored unless they come from the fifo. Set it to yes to allow remote shutdown via a /query by an administrator. ban_save_file Full or relative path to a (gzip compressed) file that the server can read and write. Bans will be saved to this file and read again on server start. compress_stored_rooms Determines whether the rooms file should be read and written to in compressed form. Defaults to yes. connections_allowed The number of allowed connections from the same IP. 0 means infinite. (default: 5) disallow_names Names/nicks that are not accepted by the server. * and ? from wildcard patterns are supported. See glob(7) for more details. Default values (used if nothing is specified) are: *admin*,*admln*,*server*,ai,ai?,computer,human,network,player. fifo_path The path to the fifo you can echo server commands into (same as /query ... from wesnoth). If not specified defaults to the compile- time path (default: /var/run/socket/wesnothd/socket). max_messages The number of allowed messages in messages_time_period. (default: 4) messages_time_period The time period (in seconds) message flooding is detected in. (default: 10 seconds) motd The message of the day. new_room_policy Determines who can create new rooms on the server. Available values are everyone, registered, admin and nobody, and give the permis- sion respectively to everyone, registered users, admin users or disables new room creation. Default value is everyone. passwd The password used to gain admin privileges (via /query admin password). replay_save_path The directory where the server stores game replays. (Don't forget the trailing /!) Defaults to `' which means the directory wesnothd was started in. restart_command The command that the server uses to start a new server process via the restart command. (Can only be issued via the fifo. See the allow_remote_shutdown setting.) room_save_file Path to a file where the room info should be stored. This file is read on server startup and written to later. If empty or not set, rooms are not loaded and not saved. save_replays Defines whether the server will automatically save replays of games. (default: false) versions_accepted A comma separated list of version strings to be accepted by the server. * and ? from wildcard patterns are supported. (defaults to the corresponding wesnoth version) Example: versions_accepted="*" accepts any version string. user_handler The name of the user handler to use. Currently available user handlers are forum (to connect wesnothd to a phpbb forum database) and sample (a sample implementation of the user handler interface, if you use this on anything real you are insane). The default value is forum. You must also add a [user_handler] section, see below. Global tags: [redirect] A tag to specify a server to redirect certain client versions to. host The address of the server to redirect to. port The port to connect to. version A comma separated list of versions to redirect. Behaves the same way as versions_accepted in regard to wildcard patterns. [ban_time] A tag to define convenient keywords for temporary ban time lengths. name The name used to reference the ban time. time The time length definition. The format is: %d[%s[%d%s[...]]] where %s is s (seconds), m (minutes), h (hours), D (days), M (months) or Y (years) and %d is a number. If no time modifier is given minutes (m) are assumed. Example: time="1D12h30m" results in a ban time of 1 day, 12 hours and 30 minutes. [proxy] A tag to tell the server to act as a proxy and forward the connected client's requests to the specified server. Accepts the same keys as [redirect]. [user_handler] Configures the user handler. Available keys vary depending on which user handler is set with the user_handler key. If no [user_handler] section is present in the configuration the server will run without any nick registration service. db_host (for user_handler=forum) The hostname of the database server db_name (for user_handler=forum) The name of the database db_user (for user_handler=forum) The name of the user under which to log into the database db_password (for user_handler=forum) This user's password db_users_table (for user_handler=forum) The name of the table in which your phpbb forums saves its user data. Most likely this will be <ta- ble-prefix>_users (e.g. phpbb3_users). db_extra_table (for user_handler=forum) The name of the table in which wesnothd will save its own data about users. You will have to create this table manually, e.g.: CREATE TABLE <table-name>(username VARCHAR(255) PRIMARY KEY, user_lastvisit INT UNSIGNED NOT NULL DEFAULT 0, user_is_moderator TINYINT(4) NOT NULL DEFAULT 0); user_expiration (for user_handler=sample) The time after which a registered nick expires (in days). [mail] Configures an SMTP server through which the user handler can send mail. Currently only used by the sample user handler. server The hostname of the mail server username The user name under which to log into the mail server. password This user's password. from_address The reply-to address of you mail. mail_port The port on which your mail server is running. Default is 25. EXIT STATUS
Normal exit status is 0 when the server was properly shutdown. An exit status of 2 indicates an error with the command line options. AUTHOR
Written by David White <davidnwhite@verizon.net>. Edited by Nils Kneuper <crazy-ivanovic@gmx.net>, ott <ott@gaon.net>, Soliton <soli- ton.de@gmail.com> and Thomas Baumhauer <thomas.baumhauer@gmail.com>. This manual page was originally written by Cyril Bouthors <cyril@bouthors.org>. Visit the official homepage: http://www.wesnoth.org/ COPYRIGHT
Copyright (C) 2003-2011 David White <davidnwhite@verizon.net> This is Free Software; this software is licensed under the GPL version 2, as published by the Free Software Foundation. There is NO war- ranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
wesnoth(6). wesnothd 2011 WESNOTHD(6)
All times are GMT -4. The time now is 05:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy