How to access gmail and read the content of the email using UFT - hp-uft

After I complete an order, system will send a temp password to gmail account. It will take about 20 minutes for the email to be sent. Then I will have to read the email content and get the temp password.
Example:
Script clicks submit button.
wait 20 minutes
Access gmail and look for the email coming from xyz company.
If email arrived, parse the temp password to a variable.
Sample email:
Email subject: Your temp pw
Email body:
Dear sdfsf sdfsdf,
Thank you for registering for the nnn.
Your temporary password is: Drhh5JT
Your temporary password to log in, https://examplesite.com/, and then reset
your password.
Your temporary password will expire in 4 hours.
If you have questions, call us at 666-666-6666
Thank you, The xyz
How can I accomplish this using UFT?

Once you navigate to your required email and open it. You need to copy Frame source in a Notepad file (this can be achieved by right click > Select "View Frame Source")
once it is copied as text file you can simply use FileSystemObject to read it and search for 'Temporary Password' and retrieve it.
Alternatively you can add this mail account in MS Outlook and use Outlook.application for achieving the same.

Related

Laravel - Changing the Base URL of the Reset Email URL that's being sent to users

I am using Laravel's default email functionality when sending the password reset link to users, and because of this, i wanted to change some parts of the email content that's being sent. One of those is the base URL of the reset link in the email.
In the email, it has this:
I wanted to change the Base URL http://localhost:8081 into something different since I am hosting other web apps on a different domain.
How can I do that?
Any tips are greatly appreciated!
You mean you have 2 servers. One for user to click reset password (an email will be sent to user). The other for handling reset password logic (after user click the link in email, fill new information and submit)
Is that right?
You can check Reset Email Customization and domain you can set in .env for getting

how to remove original user who created google-play-console account

I've a google play console account. First I created using one Gmail and I invited to the second email with full permision and It looks like below image now.
First row -> secondly invited email
Second row-> original email
Now I need to give full permission to email2 and completely remove the originally created email from this account and use only the secondly invited one.
How can I do it?
You need to request a transfer of ownership of the developer account to Google Developer support.
See https://support.google.com/googleplay/android-developer/answer/6230247?hl=en-GB for the restrictions.

Why is my Prestashop forgot password not working

The Forgot Password link in our Prestashop 1.7 site is not working. After setting the admin email on the following, we still do not receive any reset password
Shop Parameters > Contact > Stores tab: <set the admin email>
When I try to send a test email using the links below, I receive the test email
Advanced Parameters > Email > Test Your Email Configuration
I am able to receive a test email from the admin email address I set on Shop Parameters. So that means, the email sending is working.
On the Forgot Password page, I entered my email and clicked the Send Reset Link. I checked the Inbox and Spam and did not see any reset link email.
Do you check that you have a mail template for sending forgotten emails in the corresponding language folder?
Regards
I'm having the same issue (Prestashop 1.7.2.5) From what I can find, if your email setup is configured as PHP, Password Reset works only occasionally depending on email account you are sending to.
It is better to configure your email setup for SMTP. Due to the high amounts of spam being circulated, most email servers will flag email sent from PHP as potential spam and most times will be blocked and not even sent to the junk folder. The fact that some mail gets through and others just disappear is because Spam traps set thresholds. Depending on the body text, subject line, type of links, etc.
Make sure your theme have mails folder and have password_query mail templates in
corresponding language folder.
Go to Preferences > Customers, and check the value of password reset delay. Make the delay value higher like 360 minutes.

Magento enterprise sending password in email not reset link

i am using magento enterprise right now when user click on reset password fill email address our magento send password to user. but what i am trying to add reset link in email. i try to edit
{{store url="customer/account/resetpassword/"_query_id=$customer.id _query_token=$customer.rp_token}}
http://yoursite.com/customer/account/resetpassword/?id={{var customer.id}}&token={{var customer.token}}
{{store url="customer/account/resetpassword/" _query_id=$customer.id _query_token=$customer.token}}
three of them not working customer token not coming in email i try with rp_tocken , token both has same problem token missing in email.
and when i click on link shows me 404..
while i was working on this functionality then i saw " rp_token " not exist then what i did i create rp_token,ro_date attribute under customer then once user request for password reset then i just add values in these attributes then send email link.. here is full module :
http://www.sandeepsingh.us/product/magento-ajax-resetpassword-module/
download this module please read or install carefully if you are not able to run this left me know..

How to use a shared Mailbox configured in Lotus Notes to send messages?

I have an application in VB6 using Lotus Notes so send emails to various recipients.
This is a heavy applications that sends daily reports and since it's a rather heavy task, there is a dedicated machine running it.
It has a win user logged in and the Lotus session that is being used, is the one related to the WIN user. Email messages are sent by the user who has a Lotus/Win session.
Now, this user has access to a shared Mailbox in Lotus. I want the email to be sent from this new shared Mailbox. I can do it manualy, and I noticed that the message is sent from the main email of this shared mailbox but is adds below it the fiedl "sent from UserX".
This is the situation that I want to automate.
I've this (VB6) code:
'Start a session to notes
Set Session = CreateObject("Notes.NotesSession")
'Get the sessions username and then calculate the mail file name
UserName = Session.UserName
MailDbName = Left(UserName, 1) & Right(UserName, (Len(UserName) - InStr(1, UserName, " "))) & ".nsf"
'Open the mail database in notes
Set Maildb = Session.GETDATABASE("", MailDbName)
I think I need to change this last line where I choose the MailDbName.
Can anyone give me some guideance, please?
Thank you.
The MailDbName is a string that contains the path and filename of the mail database within the server, for example "mail/user.nsf". In this case, the server is local, since the first parameter of the GETDATABASE method is passing an empty string. You can replace that with a server name if the database is on the server.
If you open the shared mail database and look at File > Database > Properties you can see the server and file path information and use that in this method call.
However, if the email is sent programmatically, you may need to check out this tip on how to make the "From" appear as someone different.

Resources