When I use SendMail to send email a dialog box opens asking for my Login Credentials.

Email is sent successfully when I enter my email account password. However, when I click the "Save email credentials" check box, I get a message saying

"SendMail was unable to access credentials storage at this time. Try again later*".

But it never is able to access my credentials storage. How do I fix this?

*which reminds me of "Concentrate and ask again"


1 Answer 1


I suggest you set up the configuration in codes before sending mails.

(*valid in 11.3*) 
(* the right configuration could be found at mail service site*)
 fSetMailOptions[] :=
        MailSettings -> <|
        "Server" -> "smtp.yahoo.com",
        "PortNumber" -> 25, 
        "EncryptionProtocol" -> None,
        "From" -> "[email protected]",
        "FullName" -> "[email protected]",
        "ReplyTo" -> "[email protected]",
        "UserName" -> "[email protected]",
        "Password" -> Uncompress["1:eJxTTMoPCuZhYGCozC8tKkgsLi7PL0oBAEFEBuY="](*Compress["yourpassword"*)*)

fSendMail[tolist_?ListQ, title_, body_, attachslist_?ListQ] :=
        SendMail[tolist, {title, body, attachslist},


fSendMail[{"[email protected]","[email protected]"},"Greetings","Hello, Happy New Year!",{"c:\\temp\\card1.jpg","c:\\temp\\card2.jpg"}]
  • $\begingroup$ This worked right out of the box. I had asked Mathematica support about the problem, and received a followup note that I had to make sure that I was logged out of all my cloud accounts. I wasn't logged into anything that I could find. $\endgroup$ Jan 17, 2019 at 18:22
  • $\begingroup$ I'm not sure where the password is stored on the computer or cloud. ref.to.support.wolfram.com/kb/19070. but to be set up in code would be smart in multi-accounts cases. $\endgroup$
    – Jerry
    Jan 18, 2019 at 2:52
  • $\begingroup$ That seems to be the case. $\endgroup$ Jan 18, 2019 at 16:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.