Linux and Sendmail Attachment Help

david56 -  
 david56 -
Hello,

I am sending you this message during this Christmas season and wish you happy holidays. So, here it is, I am using Linux and I would like to know how to send an attachment with sendmail. I tried this command but nothing works.

sendEmail -f ***@*** -t ***@*** -u "pentesting tester" -m "I'm doing my first test with sendmail" -s smtp.orange.fr -a /home/david/sendmail.pdf -o tls=no

I am currently studying for a certification in cybersecurity, specifically pentesting, and as a complete novice, I have been asked to perform various basic tasks to familiarize myself with email sending methods.

Configuration: Configuration: Linux / Firefox 45.0

1 answer

zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501
 
Hello,

And does a simple email (without attachment) go through?

--
_______________________________ ☯ Zen my nuggets ☮ ______________________________
Do something for the environment, close your windows and adopt a penguin…
0
david56
 
Hello,

Yes, absolutely, that's why I find it strange that a PDF document isn't going through since it's really very small in KB.
0
zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501 > david56
 
By adding the verbose mode (-v), maybe you'll get some information on the how and why... ;-\
0
david56
 
ahhhhh it worked zip perfect!!!! I sent the document without any problem ^^ thank you very much.

does the verbal mode force the sending?
0
zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 501 > david56
 
Does the verb mode force the send?
Not at all.

There must have been a mistake somewhere ;-(
0
david56
 
After my trainer told me that there is a possibility to proceed differently with another SMTP without using our internet service provider in order to formulate a proper email, we have not yet received any explanation.
0