Mail or mailx command to send email to myself

Hello, I’ve been trying to email my unige account with a summary of a job (including plots) in a pdf. I have tried both the mail and mailx command, for example:

mailx -s “test” -a report.pdf -v
this is a test

Neither sends an email. The host name is either login01.yggdrasil or node@yggdrasil.

Is there a way I can send an email using the CLI?

Best regards,
~ Erica

Dear Erica,

It’s possible to send email from nodes but you need to respect a lot of rules to permit the mail to arrive in your mailbox.

First is to set sender using your personal unige email adding '-r “” ’ to command line.

Best regards,