Guest User

Untitled

a guest
Jan 17th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. (*valid in 11.3*)
  2. (* the right configuration could be found at mail service site*)
  3. fSetMailOptions[] :=
  4. MailSettings -> <|
  5. "Server" -> "smtp.yahoo.com",
  6. "PortNumber" -> 25,
  7. "EncryptionProtocol" -> None,
  8. "From" -> "youraccount@yahoo.com",
  9. "FullName" -> "youraccount@yahoo.com",
  10. "ReplyTo" -> "youraccount@yahoo.com",
  11. "UserName" -> "youraccount@yahoo.com",
  12. "Password" -> Uncompress["1:eJxTTMoPCuZhYGCozC8tKkgsLi7PL0oBAEFEBuY="](*Compress["yourpassword"*)*)
  13. |>
  14.  
  15.  
  16. fSendMail[tolist_?ListQ, title_, body_, attachslist_?ListQ] :=
  17. SendMail[tolist, {title, body, attachslist},
  18. Evaluate@fSetMailOptions[]]
  19.  
  20. fSendMail[{"xman@yahoo.com","spideman@google.com"},"Greetings","Hello, Happy New Year!",{"c:\temp\card1.jpg","c:\temp\card2.jpg"}]
Add Comment
Please, Sign In to add comment