Automatic reply from Gmail to WebMail - selenium

I'm using Selenium WebDriver to test the web mail I've develop in one of my websites.
How can I set up a test script that when I send an email from the web mail to Gmail, Gmail will automatically reply to that email? I'm still fairly new using Java language.

I don't think setting up a selenium script to send a reply from gmail is the way to go. Since you are testing only your own application, you should refrain from creating scripts to automate replies from gmail as they further add a level of complexity and extra effort.
There are better ways to do what you want and I believe "Canned Responses" in gmail labs can be your savior.
Check out this link for more information on it :
Auto Responder to specific email addresses
You can also connect to the gmail address via POP3 in your java code and check for the email from your web mail and respond to that via java code itself. However, I think, the above solution (Canned Responses) would be the cleanest and the best approach.

Related

Telegram bot authentification

A web service that contains all the methods for processing data is stored by Azure. In this case, only my telegram can process this data. Other applications are not allowed. But there is a possibility of expanding the service.
How do I know that the service is used by my telegram bot?
How to authenticate the application.
Well, I tried to use OAuth2.0, but i think it is not correct, because user is already authentificated with telegram, when he use telegram bot. My idea was to send a link to google auththentification in the beginning of bot job. By th way, ok, we know user`s data. May be I can check: Id, login etc. But some hacker can substitute this id
How can I make sure that Webhook requests are coming from Telegram? If
you‘d like to make sure that the Webhook request comes from Telegram,
we recommend using a secret path in the URL you give us, e.g.
www.example.com/your_token. Since nobody else knows your bot’s token,
you can be pretty sure it's us.
Telegram Bot FAQ

How to query Hotmail for new email

I'm looking for the best way to check if new email has arrived in a Hotmail account without accessing the web interface or using a mail client.
I couldn't find any Hotmail mail API and looking at a Firefox add-on it seems that querying the site through a normal login process and then searching the HTML source is the way to go.
Any suggestions how to do this with security in mind?
Are you looking for API or plugin?
If API - it looks like they don't have any API for mail, they have API only for contacts and calendar.
But you can use SMTP or POP3 to fetch it.
EDIT
The link to the API can be found here.

Gmail Sidebar gadget development, getting started

I'm kind of new to dealing with Gmail API and I have a question regarding the development environment.
I want to create a simple application that fetches unread emails from a gmail user, sends it to a processing server of mine (RESTful web service) where I analyze the data and extract some information, then finally use the extracted information to add it to the user's Google calendar.
I was thinking of developing a sidebar gadget but I was curious about which IDE to use. Do I use the Google scripts API? Will it make my gadget portable? Which IDE to use?
I know about the Gmail API that uses oAuth access to IMAP & SMTP but how can I integrate it with the sidebar gadget? Where do I write the code? Which language?
First, you will want to read Google's Gmail gadget documentation to learn how to make them.
Basically, you can either use the Google Gadget Editor (GGE), which is a very simple IDE that runs in your browser, or you can use whatever editor you prefer for editing JavaScript and XML. You will also need a website where you can post your code. A google gadget is an XML+Javascript file that resides in some webserver and that follows the schema google dictates.
Google Apps Scripts are a different thing. They are scripts that run in a google spreadsheet and can access the user's google services (docs, gmail, and some other ones). But, they are not Gadgets. To write one, create a new spreadsheet then go to Tools->script editor.
IMAP and SMTP are another thing. They are protocols for talking to a mail server. There are imap and smtp libraries available for nearly all programming languages. But, that is not what you want if you want to implement a gadget.
One important thing to consider is that Apps Script is the only way to get full access to Gmail. You could easily automate all the processing to send the information to Calendar.

how to open Gmail inbox and readmail with selenium tool

i' m testing my web application with selenium. When a user registered, an activation link will sent to user mail id. now i' m able to login to gmail account and unable to pen inbox using selenium. Is there any solution to solve this problem?
thank in advance.
Do you actually need gmail for that? If there is activation link sent to specified e-mail, what about trying other service for e-mail? I have been playing around with gmail via Selenium IDE and did not found any solution...
I came across this blog post which may help you - http://seleniumsoftwaretesting.blogspot.com/2011/08/verify-email-confirmation-using.html?m=1

Is there an API for POP/IMAP in iOS?

In my app I need to access mail programmatically without using a MFMailComposeViewController. I have sent email with the help of SKPSMTPMessage from google code. Now I have to connect and check mail via POP3 or IMAP. Is there an API to download mail using POP3 or IMAP? I am not looking for a way to interface with Mail.app.
Thanks in advance.
You can try MailCore. MailCore supports SMTP and IMAP
I tried MailCore and reMail a year ago and it was too complex for me. I don't know if they improved now, but at that time I just gave up on them and written my own code. I uploaded it to sourceforge now, so whoever finds this discussion in google is welcome to try it.
https://sourceforge.net/projects/imap4ios/