Jump to content



Photo

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

email

  • Please log in to reply
2 replies to this topic

#1 myubo

myubo

    Newbie

  • Members
  • Pip
  • 7 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 06 February 2018 - 05:06 PM

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, 06 February 2018 - 05:10 PM.


#2 bestmacros

bestmacros

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 381 posts
  • LocationIsrael
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 06 February 2018 - 11:17 PM

try this:

send email("recipient's email here", "Hello", "Plain Text", "So how\'s it going? I got error: {#error}", "", "", "")

bestmacros.jpg


#3 myubo

myubo

    Newbie

  • Members
  • Pip
  • 7 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 07 February 2018 - 12:03 AM

 

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, 07 February 2018 - 12:04 AM.






Also tagged with one or more of these keywords: email

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users