Sending mail attachment using Java

Working code, I have used Java Mail 1.4.7 jar import java.util.Properties; import javax.activation.*; import javax.mail.*; public class MailProjectClass { public static void main(String[] args) { final String username = “your.mail.id@gmail.com”; final String password = “your.password”; Properties props = new Properties(); props.put(“mail.smtp.auth”, true); props.put(“mail.smtp.starttls.enable”, true); props.put(“mail.smtp.host”, “smtp.gmail.com”); props.put(“mail.smtp.port”, “587”); Session session = Session.getInstance(props, new javax.mail.Authenticator() { … Read more

Obtain a link to a specific email in GMail

I don’t know about a specific “email”, but you can view a specific thread (which is usually one email) by clicking in the URL bar and copying that. Then, change the label to “all”. So if the url is “https://mail.google.com/mail/u/0/#inbox/abc123def456”, you would change “#inbox” to say “#all” like this: “https://mail.google.com/mail/u/0/#all/abc123def456” Now the link will work, … Read more

‘observe’ on ‘MutationObserver’: parameter 1 is not of type ‘Node’

As I mentioned in a comment, and Xan stated an answer, the error makes it clear that the result of document.querySelectorAll(“.no”)[2] does not evaluate to a Node. From the information you provided in a comment, it is clear that the issue is that the node you desire to observe does not exist when your code … Read more

How to trigger a Google Apps Script once an email get in the inbox?

After some research and some help from other google-apps-script developers, the best solution is to use a combination of Gmail filtering system in addition to a time-driven-trigger. So basically for a normal Gmail account there is a 1 hour/day computing time as mentioned in the documentation. So what I did is set up a filter … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)