Sending mail through external smtp server via command line/shell script
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
Currently the server I have has blocked emails from being sent from it due to spam issues. So I am currently looking for a way to send e-mail through the command line or shell script through an external SMTP server like gmail.
Please note that if I require other software to aid in this issue, I do not have root access on the server thus I cannot install software that requires root but I can install them locally provided that I build from source with ./configure --prefix=$HOME
. The server comes with mail
and that is really all that is related to email.
add a comment |Â
up vote
1
down vote
favorite
Currently the server I have has blocked emails from being sent from it due to spam issues. So I am currently looking for a way to send e-mail through the command line or shell script through an external SMTP server like gmail.
Please note that if I require other software to aid in this issue, I do not have root access on the server thus I cannot install software that requires root but I can install them locally provided that I build from source with ./configure --prefix=$HOME
. The server comes with mail
and that is really all that is related to email.
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Currently the server I have has blocked emails from being sent from it due to spam issues. So I am currently looking for a way to send e-mail through the command line or shell script through an external SMTP server like gmail.
Please note that if I require other software to aid in this issue, I do not have root access on the server thus I cannot install software that requires root but I can install them locally provided that I build from source with ./configure --prefix=$HOME
. The server comes with mail
and that is really all that is related to email.
Currently the server I have has blocked emails from being sent from it due to spam issues. So I am currently looking for a way to send e-mail through the command line or shell script through an external SMTP server like gmail.
Please note that if I require other software to aid in this issue, I do not have root access on the server thus I cannot install software that requires root but I can install them locally provided that I build from source with ./configure --prefix=$HOME
. The server comes with mail
and that is really all that is related to email.
asked Apr 14 '16 at 10:09
mclarence
82
82
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
msmtp is a command line application that can send email over smtp. You can pipe your email into it. Keep in mind that it is not an mail user agent so you have to pipe in the whole email not just the body.
add a comment |Â
up vote
0
down vote
Just validate if you have mail/mailx installed. mail should be there by default.
You can use smtp details in these commands, to send email via external smtp.
Example - mailx -S smtp= -r -s -v < body.txt
New contributor
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
msmtp is a command line application that can send email over smtp. You can pipe your email into it. Keep in mind that it is not an mail user agent so you have to pipe in the whole email not just the body.
add a comment |Â
up vote
1
down vote
accepted
msmtp is a command line application that can send email over smtp. You can pipe your email into it. Keep in mind that it is not an mail user agent so you have to pipe in the whole email not just the body.
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
msmtp is a command line application that can send email over smtp. You can pipe your email into it. Keep in mind that it is not an mail user agent so you have to pipe in the whole email not just the body.
msmtp is a command line application that can send email over smtp. You can pipe your email into it. Keep in mind that it is not an mail user agent so you have to pipe in the whole email not just the body.
answered Apr 14 '16 at 10:29
Lucas
1,988717
1,988717
add a comment |Â
add a comment |Â
up vote
0
down vote
Just validate if you have mail/mailx installed. mail should be there by default.
You can use smtp details in these commands, to send email via external smtp.
Example - mailx -S smtp= -r -s -v < body.txt
New contributor
add a comment |Â
up vote
0
down vote
Just validate if you have mail/mailx installed. mail should be there by default.
You can use smtp details in these commands, to send email via external smtp.
Example - mailx -S smtp= -r -s -v < body.txt
New contributor
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Just validate if you have mail/mailx installed. mail should be there by default.
You can use smtp details in these commands, to send email via external smtp.
Example - mailx -S smtp= -r -s -v < body.txt
New contributor
Just validate if you have mail/mailx installed. mail should be there by default.
You can use smtp details in these commands, to send email via external smtp.
Example - mailx -S smtp= -r -s -v < body.txt
New contributor
New contributor
answered 1 min ago
akshay misra
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f276404%2fsending-mail-through-external-smtp-server-via-command-line-shell-script%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password