【问题标题】:PHP reply-to error - comes up with random email not sender of contact formPHP 回复错误 - 提供随机电子邮件而不是联系表的发件人
【发布时间】:2017-03-03 06:32:18
【问题描述】:

我在我的网站上设置了一个联系表单(通过 Adob​​e Muse 完成) 电子邮件设置为发送到多个地址

其中一个地址有一封自动确认退回电子邮件。 发件人地址不是在表单本身中输入的电子邮件,而是与我的 Adob​​e ID 关联的电子邮件,这意味着我收到了所有退回的电子邮件,而对其他人来说,表单似乎来自一个电子邮件地址,而不是发送者网站上的表格。

我已经设法找到表单本身的 php 代码,但在编码方面的知识非常有限。 如何获取代码以使“发件人”地址或回复地址与填写表格的人相同

见下文

<?php 
/*  
If you see this text in your browser, PHP is not configured correctly on this hosting provider. 
Contact your hosting provider regarding PHP configuration for your site.

PHP file generated by Adobe Muse CC 2015.2.1.352
*/

require_once('form_process.php');

$form = array(
    'subject' => 'SSUPPORT FOR EXTENSIONS TO AVOCA BEACH PICTURE THEATRE IN LAND & ENVIRONMENT COURT - DA42661/2012 Submission',
    'heading' => 'New Form Submission',
    'success_redirect' => '',
    'resources' => array(
        'checkbox_checked' => 'Selected',
        'checkbox_unchecked' => 'Unselected',
        'submitted_from' => 'Form submitted from website: %s',
        'submitted_by' => 'Visitor IP address: %s',
        'too_many_submissions' => 'Too many recent submissions from this IP',
        'failed_to_send_email' => 'Failed to send email',
        'invalid_reCAPTCHA_private_key' => 'Invalid reCAPTCHA private key.',
        'invalid_field_type' => 'Unknown field type \'%s\'.',
        'invalid_form_config' => 'Field \'%s\' has an invalid configuration.',
        'unknown_method' => 'Unknown server request method'
    ),
    'email' => array(
        'from' => 'saveaseat@avocabeachpicturetheatre.com.au',
        'to' => 'saveaseat@avocabeachpicturetheatre.com.au,ask@centralcoast.nsw.gov.au,Carolyn.Wesley@gosford.nsw.gov.au,Ariella.Whitelum@gosford.nsw.gov.au'
    ),
    'fields' => array(
        'custom_U262562' => array(
            'order' => 1,
            'type' => 'string',
            'label' => 'Name',
            'required' => true,
            'errors' => array(
                'required' => 'Field \'Name\' is required.'
            )
        ),
        'Email' => array(
            'order' => 2,
            'type' => 'email',
            'label' => 'Email',
            'required' => true,
            'errors' => array(
                'required' => 'Field \'Email\' is required.',
                'format' => 'Field \'Email\' has an invalid email address.'
            )
        ),
        'custom_U262553' => array(
            'order' => 4,
            'type' => 'string',
            'label' => 'Message',
            'required' => false,
            'errors' => array(
            )
        ),
        'custom_U262696' => array(
            'order' => 3,
            'type' => 'string',
            'label' => 'Postcode',
            'required' => false,
            'errors' => array(
            )
        )
    )
);

process_form($form);
?>

【问题讨论】:

标签: php html forms email


【解决方案1】:

或者如果您在email array 中添加replay-to,例如:

'email' => array(
    'from' => 'saveaseat@avocabeachpicturetheatre.com.au',
    'to' => 'saveaseat@avocabeachpicturetheatre.com.au,ask@centralcoast.nsw.gov.au,Carolyn.Wesley@gosford.nsw.gov.au,Ariella.Whitelum@gosford.nsw.gov.au',
    'replay-to' => 'Email for replay'
),

【讨论】:

  • 不幸的是,我没有通过 Business Catalyst 托管网站 - 如果我这样做会更容易(我认为)更改/重新发送表单时代码更改似乎不起作用我有什么需要可以添加将“发件人”=> 替换为填写表格的人的电子邮件地址吗?
猜你喜欢
  • 2012-08-10
  • 2017-07-16
  • 2013-11-15
  • 1970-01-01
  • 1970-01-01
  • 2019-01-30
  • 2011-10-07
  • 1970-01-01
  • 2021-10-25
相关资源
最近更新 更多