can read mails and send appointment request

This commit is contained in:
2025-06-11 16:30:47 +02:00
parent 4d493a3e92
commit bcab7f40c0
10 changed files with 97 additions and 34 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ class Sender:
headers['sec-ch-ua-full-version-list'] = _chrome_ua_version
data = {'check': '', '_csrf': _csrf, 'prefer': _selected_store,
'surname': contact.last_name.capitalize(), 'name': contact.first_name.capitalize(),
'phone_country': "FR", 'phone_number': "+33 " + contact.phone, 'email': contact.mail,
'phone_country': "FR", 'phone_number': "0" + contact.phone, 'email': contact.mail,
'passport_id': contact.passport, 'processing': 'on', 'cgu': 'on'}
self.logger.info(data)
self.logger.info("try to request for mail:{}".format(contact.mail))