myubo 2 Posted February 7, 2018 Report Share Posted February 7, 2018 (edited) Sorry guys total noob with coding. I'm trying to send an email to myself anytime an error occurs in one of my bots. I know I can just put #error in the body of the message but I would also like to add some text + error number. So body of the message would look something like this: facebook bot, error number #error I dont know how to put plain text and #error in the same field How do I code that into the "So how\'s it going" field? connect to mail server("SMTP With SSL", "Username Here @gmail.com", "Password Here", "smtp.gmail.com", 587) {send email("recipient's email here", "Hello", "Plain Text", "So how\'s it going?", "", "", "")} Edited February 7, 2018 by myubo Quote Link to post Share on other sites
bestmacros 60 Posted February 7, 2018 Report Share Posted February 7, 2018 try this: send email("recipient's email here", "Hello", "Plain Text", "So how\'s it going? I got error: {#error}", "", "", "") 1 Quote Link to post Share on other sites
myubo 2 Posted February 7, 2018 Author Report Share Posted February 7, 2018 (edited) try this: send email("recipient's email here", "Hello", "Plain Text", "So how\'s it going? I got error: {#error}", "", "", "") That worked. Thank you so much I spend a ton of time googling and trying dif stuff and it was just that simple lol Edited February 7, 2018 by myubo Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.