Email Total Messages

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
Line 8: Line 8:
  
 
<pre>
 
<pre>
connect to mail server("IMAP With SSL", "username@gmail.com", "password", "imap.gmail.com", 993) {
+
connect to mail server("IMAP With SSL","username@gmail.com","password","imap.gmail.com",993) {
     set(#email subject, $email subject(0), "Global")
+
     set(#email total messages,$email total messages,"Global")
 
+
 
}
 
}
 +
  
 
</pre>
 
</pre>
  
  
The subject of the email at position 0 on the mail server is 8.
+
The number of emails on the mail server is 8.
  
  
 
[[File:email total messages00.png]]
 
[[File:email total messages00.png]]

Revision as of 12:56, 20 September 2016

This function is an Email Function.

The function returns the subject of the email at the specified position.

The function goes into another command such as a set command, which is then placed inside the connect to mail server command.

Example

connect to mail server("IMAP With SSL","username@gmail.com","password","imap.gmail.com",993) {
    set(#email total messages,$email total messages,"Global")
}



The number of emails on the mail server is 8.


Email total messages00.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox