Jump to content
UBot Underground

How Can I Add Text And #error In Same Field?


Recommended Posts

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 by myubo
Link to post
Share on other sites

 

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 by myubo
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...