Search the Community
Showing results for tags 'email'.
My code works, unless I send it to gmail, then the attachment doesn't show up, and the body shows: This is a multi-part message in MIME format. I'm assuming my headers are incorrect. $from = stripslashes($from_name)."<".stripslashes($from_email).">"; $uniqid = md5(uniqid(time())); $boundary = "--==_mimepart_".$uniqid; $headers = "From: ".$from."\n". 'Subject: '.$subject."\n". 'Reply-to: '.$from_email."\n". 'Return-Path: '.$from_email."\n". 'Message-ID: <'.$uniqid.'@'.$domain.">\n". 'Date: '.date("r", strtotime("now"))."\n". 'Mime-Version: 1.0'."\n
I am using a phpmailer to send emails to users. I noticed that it only sends email if I am calling it from a page in a root directory. Say I am sending an email from contact.php and it's inside a sub folder/directory instead of the root, it won't email out. Setup is like this. include_once '../phpmailer/class.phpmailer.php'; $mail = new PHPMailer; $mail->IsSMTP(); // Set mailer to use SMTP $mail->Host = '127.0.01'; // Specify main and backup server $mail->From = 'email@example.com'; $mail->FromName
I'm attempting to modify the email message body based on a users input to a form. I'm using the code shown here as a starting point: https://stackoverflow.com/questions/40345116/manipulate-ninja-forms-mail-body?answertab=votes#tab-top Unfortunately even the most rudimentary change to the message body does not seem to work, and I'm unable to find any additional documentation on the ninja_forms_action_email_message filter. Has anyone attempted to modify the email message body upon submission? Here's what I'd like to achieve. If the user submits "Yes" to a question, then I would add a list i
Sorry that the topic is cryptic but I am unsure how to ask the question. I have written and been using a php client contact ticket system for many years using phpmailer. The problem I have is when I send an email out to a client they reply using the "reply" button in the email program and ignore the "please click here to reply " which takes them to the site where they can log in and be shown all previous correspondence etc etc . What I would like is for the clients to be able to reply using their outlook (or similar) email program but their reply and other details be stored in