Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
29a5afb1
Commit
29a5afb1
authored
8 years ago
by
Florent Thiery
Browse files
Options
Downloads
Patches
Plain Diff
send mail to non existing address, fixes
#20590
parent
195ba793
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_send_email.sh
+3
-2
3 additions, 2 deletions
tests/test_send_email.sh
with
3 additions
and
2 deletions
tests/test_send_email.sh
+
3
−
2
View file @
29a5afb1
...
...
@@ -2,14 +2,15 @@
# Copyright 2017, Florent Thiery
# envoyer un mail contenant un truc random
RAND
=
"
$RANDOM
"
EMAIL
=
"
deployment
+
$RAND
@ubicast.eu"
EMAIL
=
"
noreply
+
$RAND
@ubicast.eu"
echo
"Sending email to
$EMAIL
"
echo
"This is a test email"
| mail
-s
"Test email from
`
cat
/etc/hostname
`
"
$EMAIL
sleep
10
grep
$EMAIL
/var/log/mail.log |
grep
bounced
>
/dev/null
if
[
$?
-e
0
]
;
then
if
[
$?
-e
q
0
]
;
then
echo
"Sending mail failed"
exit
1
fi
echo
"Sending mail succeeded"
exit
0
# check un webservice qui recoit le mail
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment