WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • wb-mail function adds the wrong REPLY-TO
  • Print
Pages: [1]   Go Down

Author Topic: wb-mail function adds the wrong REPLY-TO  (Read 8302 times)

Offline CodeALot

  • Posts: 579
  • Gender: Male
wb-mail function adds the wrong REPLY-TO
« on: November 13, 2023, 12:29:01 PM »
I use the following code in a page:

Code: [Select]
$wb->mail(SERVER_EMAIL,$mail_to,$mail_subject,$mail_message

Mailer settings are set to SMTP, with debug on for now. When sending an e-mail, the wb->mail adds a reply-to that is the same as the recipient. Why does it do that and how can I change that? Receiving mailservers are rejecting this mail because having the TO and REPLY-TO the same makes no sense and is a spam-flag.

This is (part of) the DEBUG-response when I try to send the message from within the website:

Code: [Select]
2023-11-13 11:22:33 CLIENT -> SERVER: To: recipient@serverone.nl
2023-11-13 11:22:33 CLIENT -> SERVER: From: sender@servertwo.nl
2023-11-13 11:22:33 CLIENT -> SERVER: Reply-To: recipient@serverone.nl
...
2023-11-13 11:22:34 SERVER -> CLIENT: 554 5.7.1 Spam message rejected
2023-11-13 11:22:34 SMTP ERROR: DATA END command failed: 554 5.7.1 Spam message rejected
SMTP Error: data not accepted.
Logged

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 601
Re: wb-mail function adds the wrong REPLY-TO
« Reply #1 on: November 13, 2023, 03:49:59 PM »
Quote
Code: [Select]
$wb->mail(SERVER_EMAIL,$mail_to,$mail_subject,$mail_message

add more attributes/parameters to the function call

here the complete list (class.wb.php // Ln 1005)

Quote
public function mail(
                    $sFromAddress,
                    $toAddress,
                    $sSubject,
                    $sMessage,

                    $sFromname='',
                    $toName='',
                    $sReplyToAddress='',
                    $sReplyToName='',
                    $sMessagePath='',
                    $aAttachment=null,
                    $sCallingScript='none'

                    )

used parameters == green
possible other parameters == red
Logged

Offline CodeALot

  • Posts: 579
  • Gender: Male
Re: wb-mail function adds the wrong REPLY-TO
« Reply #2 on: November 13, 2023, 04:19:17 PM »
Thank you! That convinced the spam filters to let the mails through :-)
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • wb-mail function adds the wrong REPLY-TO
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2