phpmailer更改电子邮件的标题

phpmailer更改电子邮件的标题,php,email,phpmailer,Php,Email,Phpmailer,我有一个网站托管在Lamp服务器上,有一个联系人表单,将使用phpmailer从smtp(gmail)发送电子邮件 我在phpmailer脚本中添加了一个自定义主机名 public $Hostname = 'www.google.com'; /** * Sets the message ID to be used in the Message-Id header. * If empty, a unique id will be generated.

我有一个网站托管在Lamp服务器上,有一个联系人表单,将使用phpmailer从smtp(gmail)发送电子邮件

我在phpmailer脚本中添加了一个自定义主机名

  public $Hostname          = 'www.google.com';

  /**
   * Sets the message ID to be used in the Message-Id header.
   * If empty, a unique id will be generated.
   * @var string
   */
当我查看电子邮件的来源时,标题中有一行

Received: from www.google.com (234092384281.ctinets.com. [server.ip.ip.ip])
        by mx.google.com with ESMTPSA id ve6sm3340494pbc.21.2013.05.29.21.17.15
        for <mygmailacc@gmail.com>
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Wed, 29 May 2013 21:17:16 -0700 (PDT)
收到:来自www.google.com(234092384281.ctinets.com.[server.ip.ip.ip])
通过mx.google.com和ESMTPSA id ve6sm3340494pbc.21.2013.05.29.21.17.15
对于
(版本=TLSv1密码=RC4-SHA位=128/128);
2013年5月29日星期三21:17:16-0700(PDT)

是否可以删除(234092384281.ctinets.com。[server.ip.ip.ip])?

不,当您使用Google SMTP时,这是不可能的,他们会控制它。不是你。如果你必须摆脱,那么你将不得不使用自己的SMTP服务器