Sending the mail with the link

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
think
Posts: 136
Joined: 09 Feb 2014, 05:20

Sending the mail with the link

Post by think » 20 Jan 2022, 04:56

I would like to send the mail to another user with the link. Clicking the link would run a script on user's computer.
Is this possible? Thanks.

amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: Sending the mail with the link

Post by amateur+ » 20 Jan 2022, 07:26

Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.

think
Posts: 136
Joined: 09 Feb 2014, 05:20

Re: Sending the mail with the link

Post by think » 20 Jan 2022, 14:51

Thanks. I tried the script but I’ll be using it on a different computer each time so entering the server names etc is out of the question. Or is it possible to retrieve the default values from the registry somehow?

amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: Sending the mail with the link

Post by amateur+ » 20 Jan 2022, 15:00

I think the task can't be solved. You can't run any script on remote computer just because its user clicked on your link. He should download .exe after clicking on the link and then run that .exe. It is impossible to achieve without that user's help. He should apply file saving and then manually run your script that will send an email.
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.

think
Posts: 136
Joined: 09 Feb 2014, 05:20

Re: Sending the mail with the link

Post by think » 20 Jan 2022, 17:47

It’s possible in this case. The user has AutoHotkey installed with the script already prepared in the known folder so it can be run. Another file is a .bat file which can also be executed.

amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: Sending the mail with the link

Post by amateur+ » 20 Jan 2022, 18:38

It would be possible only if specific script is already running on the user's computer. Is may contain WinWait("SpecificWindowTitleOfYourWebPageOpenedViaLink") followed by sending an email procedure.
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.

think
Posts: 136
Joined: 09 Feb 2014, 05:20

Re: Sending the mail with the link

Post by think » 21 Jan 2022, 10:21

The question remains: is there a method to send html formatted email from AutoHotkey?
Or at least open the mail with html formatted body before sending?

amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: Sending the mail with the link

Post by amateur+ » 21 Jan 2022, 11:41

The answer has been provided already: viewtopic.php?p=440035#p440035.
Create a new google-account to send emails via script.
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.

think
Posts: 136
Joined: 09 Feb 2014, 05:20

Re: Sending the mail with the link

Post by think » 21 Jan 2022, 16:23

Yes, thanks for your patience. As said, the script is not convenient for me as I’ll be running my script on a different computer each time so changing the server names etc each time is a problem.

amateur+
Posts: 655
Joined: 09 Oct 2021, 15:43

Re: Sending the mail with the link

Post by amateur+ » 21 Jan 2022, 16:49

Why do you need to change them? You will use the same every time. The same servers, the same login, the same password. You can then delete emails from the sentbox and recycle bin or use compiled script rather than .ahk.
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.

Post Reply

Return to “Ask for Help (v1)”