reply

Reply to email using python 3.4

ぐ巨炮叔叔 提交于 2019-11-27 16:44:14
问题 I am trying to reply to an email using Python 3.4. The recipient of the email will be using Outlook (unfortunately) and it is important that Outlook recognizes the reply and displays the thread properly. The code I currently have is: def send_mail_multi(headers, text, msgHtml="", orig=None): """ """ msg = MIMEMultipart('mixed') # Create message container - the correct MIME type is multipart/alternative. body = MIMEMultipart('alternative') for k,v in headers.items(): if isinstance(v, list): v

Reply to sender - PHP email

跟風遠走 提交于 2019-11-27 02:28:53
问题 Here is my code for a email form. It works well, it sends to my email. But how can i make it so i can reply to the email that i received from the form? Would you be able to edit my code and put it in because im a BIG php noobie. many thanks! <?php $name = $_POST['name']; $email = $_POST['email']; $subject = $_POST['subject']; $message = $_POST['message']; $to = "adamgoredesign@gmail.com"; mail ($to, $subject, $message, "From: " . $name); header('Location: contact_thankyou.html'); ?> 回答1: you