|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Novell Archives Archived content from Novell openSUSE support forums |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello
On SUZE is there a command to attach a file and email to someone. eg using sendmail? Angus |
|
|||
|
Angus Comber wrote:
> Hello > > On SUZE is there a command to attach a file and email to someone. eg > using sendmail? man mail |
|
|||
|
Thanks.
I had a go and have used this for example: mail myself@somedomain.com -s MySubject -a attachedfile That works but it prompts you to enter a body text etc. How can I write the line without having to then interactively enter body text. I will be calling this from a batch program. Angus <novell-numpty@mailtrap.org.uk> wrote in message news:qYW0f.2721$GG4.1875@prv-forum2.provo.novell.com... > Angus Comber wrote: > >> Hello >> >> On SUZE is there a command to attach a file and email to someone. eg >> using sendmail? > > man mail |
|
|||
|
Angus Comber wrote:
> Thanks. > > I had a go and have used this for example: > > mail myself@somedomain.com -s MySubject -a attachedfile > > That works but it prompts you to enter a body text etc. How can I > write the > line without having to then interactively enter body text. I will be > calling this from a batch program. Please do not top post. You may want to use a "here" document. "man bash" and look for "redirection". As a quick guide though.... mail wibble@wobble <<%% data data %% Or to redirect a file... mail wibble@wobble < /path/to/file > <novell-numpty@mailtrap.org.uk> wrote in message > news:qYW0f.2721$GG4.1875@prv-forum2.provo.novell.com... >> Angus Comber wrote: >> >>> Hello >>> >>> On SUZE is there a command to attach a file and email to someone. >>> eg using sendmail? >> >> man mail |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|