jcremin
December 16, 2008, 6:40am
1
Hello everyone,
I’m using the email tool to send myself backups of my server each night. It creates a system backup, and also exports my user manager users. Right now it is sending me two emails, one for each attachment.
Does anyone know of anyway to have it attach both files to one email? It doesn’t seem to want to let me use the “file” command twice.
Thanks,
Joe
janisk
December 16, 2008, 1:16pm
2
no, tool e-mail can attach only one file per e-mail.
jcremin
December 16, 2008, 4:16pm
3
Alright, that’s what I figured.
Thanks,
Joe
normis
December 17, 2008, 9:09am
4
well, but you can send two mails with subjects like “backup 03.03.08 - 1/2” and “backup 03.03.08 - 2/2”
Genkun
August 1, 2015, 10:13am
5
Does anyone know if it is now possible to send 2 attachments as one e-mail with the new updates in software?
Genkun
August 13, 2015, 6:11am
7
Thank you for the response Jarda.
Just another query I have; is it possible to, lets say, to send an e-mail with a single attachment and send other information in the body of the text.
Example:
:if ([find name="e-mail_backup"]!="") do={remove [find name="e-mail_backup"]}
add name=e-mail_backup policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive source={
:log info "E-mail backup : Begin"
{/system backup save name=email; :delay 10s;
/tool e-mail send to="someone@someone.com" subject=([/system identity get name] . " Backup") file=email.backup;
:delay 10s; /file remove email.backup
:log info ("E-mail backup : Sent to Administrator at " . [/sys cl get time] . " " . [/sys cl get date])}
}
Then add coding to pull the data from /ip address print and insert it into the body of the e-mail that is about to be sent?
Hi there, did you manage to get this working?
Genkun:
Thank you for the response Jarda.
Just another query I have; is it possible to, lets say, to send an e-mail with a single attachment and send other information in the body of the text.
Example:
:if ([find name="e-mail_backup"]!="") do={remove [find name="e-mail_backup"]}
add name=e-mail_backup policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive source={
:log info "E-mail backup : Begin"
{/system backup save name=email; :delay 10s;
/tool e-mail send to="someone@someone.com" subject=([/system identity get name] . " Backup") file=email.backup;
:delay 10s; /file remove email.backup
:log info ("E-mail backup : Sent to Administrator at " . [/sys cl get time] . " " . [/sys cl get date])}
}
Then add coding to pull the data from /ip address print and insert it into the body of the e-mail that is about to be sent?