Javascript action plane
Goal create an optout page

Open the page> and use the browser todo it.
1 ) Read variable
https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript

https://j11y.io/javascript/bujs-1-getparameterbyname
basic tester

copy path on local did not work

code miss placement on my end

https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_alert
Script location in the body

email xx is there

Opting out

removal


I might not be able to do it ?

xhttp not defined

jquery could be the option

https://api.jquery.com/jQuery.post
Added the top

basic tester

Post fail > at least it is posting


https://stackoverflow.com/questions/75702313/how-to-configure-cors-on-azure-app-service#:~:text=To%20enable%20CORS%20in%20Azure,enable%20CORS%20using%20Azure%20CLI.
push code and see
repo is downloaded



https://learn.microsoft.com/en-us/azure/static-web-apps/build-configuration?tabs=github-actions
remove not used parts

App Service deploy

Authorize and service names are loaded

fail sytax find it > task: AzureRmWebAppDeployment@4
https://learn.microsoft.com/en-us/azure/app-service/deploy-azure-pipelines?tabs=yaml

fix the action with line

now deploying

Practical linux template

Permission denied

Permit

Service Connection in action

No package zip
[error]Error: No package found with specified pattern: /home/vsts/work/1/s//.zip*
Check if the package mentioned in the task is published as an artifact in the build or a previous stage and downloaded in the current job.

zip gets from the publish


build configuration not found

X simplified X

missing part

Artifacts empty

Publish worked

build but npot pushed?

empty

different cases

Also copy needed as it is a static site i am doing

34 files are in

Even got the git folder

moved to str

There is zip creation process

witout a solution file does not make sense > too many templates

Ascii character inside yaml as tricky as it gets

happiness and code

`# Starter pipeline
Start with a minimal pipeline that you can customize to build and deploy your code.
Add steps that build, run tests, deploy, and more:
https://aka.ms/yaml
trigger:
- main
pool:
vmImage: ubuntu-latest
steps:
- script: echo running the pipeline for the contractormarketing email opt out
displayName: 'Run the header for start'
- task: CopyFiles@2
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.ArtifactStagingDirectory)'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.StagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)' # string. Required. Path to publish. Default: $(Build.ArtifactStagingDirectory).
ArtifactName: 'drop' # string. Required. Artifact name. Default: drop.
publishLocation: 'Container'
- task: AzureRmWebAppDeployment@4
inputs:
ConnectionType: 'AzureRM'
azureSubscription: 'Pay-As-You-Go-ContractorMarketing(ad744a08-2411-4d78-b417-1f1c83f4f741)'
appType: 'webApp'
WebAppName: 'contractormarketing-emaillistout'
packageForLinux: '$(Build.StagingDirectory)/*/.zip'
- script: |
echo ended the process of building
echo released a new version
displayName: 'Run the end'`
CHECK THE WEB APP
opt out is there

Optlut

https://contractormarketing-emaillistout.azurewebsites.net/optout.html
more deployments are coming in

Post is here

Nice it worked

Added to the do not send list

make it use friendly and change from time to time

Add the link > https://contractormarketing-emaillistout.azurewebsites.net/[email protected]

after 3:50 it should add the links so i can remove the action easily

I can also do it in the past ones after a while
small footprints to remove the email>

https://mail.google.com/mail/u/0/#search/rtyagi%40intonenetworks.com/FMfcgzGxRnfnxLTkHwnWFktxhKMnhWXx
Added to pipeline b

Practical removes

it works and tested with more than 10 in a short time frame

still one by one takes time create a loader string method
got an array i might be able to use

bulk outlined ones
['[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]','[email protected]']
AI has to be able to answer which is a direct recruiter email which is a marketing email

Added and running

Comment create practical list

double quote use the vscode to fix it

now running and rerun with the fixes now

do not send emails did not get marked properly

it needs to get updated
All 2500 > to 3000 records did not land here

total number of do not send email at 253 > it would increase daily

Imported from rifaterdemsahin.com · 2024