techbeastzz
BANNED
- Jun 11, 2023
- 259
- 101
So can anyone tell me, this contact form script worked or not. I download this from GitHub, i don't have pc so can anyone test and tell the results. If not worked please tell me the solution.
Her's the code>>>
import requests
# List of contact form URLs
contact_form_urls = [
'https://example.com/contact1',
'https://example.com/contact2',
# Add more URLs as needed
]
# Define your common message data
common_message_data = {
'name': 'Your Name',
'email': '[email protected]',
'message': 'Your common message here.'
}
# Iterate through each contact form URL
for url in contact_form_urls:
# Send a POST request to the contact form
response = requests.post(url, data=common_message_data)
# Check the response status
if response.status_code == 200:
print(f'Message sent successfully to {url}!')
else:
print(f'Failed to send message to {url}. Status code:', response.status_code)
Her's the code>>>
import requests
# List of contact form URLs
contact_form_urls = [
'https://example.com/contact1',
'https://example.com/contact2',
# Add more URLs as needed
]
# Define your common message data
common_message_data = {
'name': 'Your Name',
'email': '[email protected]',
'message': 'Your common message here.'
}
# Iterate through each contact form URL
for url in contact_form_urls:
# Send a POST request to the contact form
response = requests.post(url, data=common_message_data)
# Check the response status
if response.status_code == 200:
print(f'Message sent successfully to {url}!')
else:
print(f'Failed to send message to {url}. Status code:', response.status_code)