mailto and mailfrom doesn't work on form

2 replies · opened Feb 28, 2022

Wwkwiatko78Feb 28, 2022

I used contact-2.html provided with the package. I follow the instructions and I changed $toemails and $fromemail in form.php
Unfortunately mail server logs shows that form.php use from=<no-reply@website.com> and to=<your-email@website.com>
In contact-2.html


...
...

In form.php
$toemails = array();
$toemails[] = array(
'email' => 'some_email@hindukusz.com', // Your Email Address
'name' => 'Test Name' // Your Name
);
$fromemail = array(
'email' => 'form-address@hindukusz.com', // Company's Email Address (preferably currently used Domain Name)
'name' => 'Test Form' // Company Name
);
SMPT server and web server works on the same host. Both addresses are present and works - I checked.
Below mail server log:
`Feb 28 15:29:00 noszak postfix/pickup[3450145]: A865E3FAB2: uid=33 from=<no-reply@website.com>
Feb 28 15:29:00 noszak postfix/cleanup[3453954]: A865E3FAB2: message-id=<hUUsvb3h3JrToMFEup6oNXUay3ueH5Eds1xrAw6f7eU@trecime.pl>
Feb 28 15:29:00 noszak opendkim[69918]: A865E3FAB2: no signing table match for 'no-reply@website.com'
Feb 28 15:29:00 noszak opendkim[69918]: A865E3FAB2: no signature data
Feb 28 15:29:00 noszak postfix/qmgr[3283735]: A865E3FAB2: from=<no-reply@website.com>, size=3711, nrcpt=1 (queue active)
Feb 28 15:29:01 noszak postfix/smtp[3453959]: Trusted TLS connection established to mailsrv101.in2net.com[65.61.198.231]:25: TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)
Feb 28 15:29:02 noszak postfix/smtp[3453959]: A865E3FAB2: to=<your-email@website.com>, relay=mailsrv101.in2net.com[65.61.198.231]:25, delay=1.5, delays=0.04/0.03/1.3/0.18, dsn=5.0.0, status=bounced (host mailsrv101.in2net.com[65.61.198.231] said: 550 Authentication is required for relay (in reply to MAIL FROM command))
Feb 28 15:29:02 noszak postfix/cleanup[3453954]: 3794A3FB3F: message-id=<20220228142902.3794A3FB3F@noszak.hindukusz.com>
Feb 28 15:29:02 noszak postfix/qmgr[3283735]: 3794A3FB3F: from=<>, size=5787, nrcpt=1 (queue active)
Feb 28 15:29:02 noszak postfix/bounce[3453960]: A865E3FAB2: sender non-delivery notification: 3794A3FB3F
Feb 28 15:29:02 noszak postfix/qmgr[3283735]: A865E3FAB2: removed
Feb 28 15:29:03 noszak postfix/smtp[3453959]: Trusted TLS connection established to mailsrv101.in2net.com[65.61.198.231]:25: TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)
Feb 28 15:29:03 noszak postfix/smtp[3453959]: 3794A3FB3F: to=<no-reply@website.com>, relay=mailsrv101.in2net.com[65.61.198.231]:25, delay=1.7, delays=0/0/1.3/0.36, dsn=5.0.0, status=bounced (host mailsrv101.in2net.com[65.61.198.231] said: 550 <no-reply@website.com> No such user here (in reply to RCPT TO command))
Feb 28 15:29:04 noszak postfix/qmgr[3283735]: 3794A3FB3F: removed
'
I used grep to find where *@website.com is present in form.php or contact-2.html but I found nothing. How it is possible that form still use default addresses event after form.php was changed?

Wwkwiatko78Feb 28, 2022

Hi,
I found what cause the issue. Below part of contact-2.html page:


  
    
     
        
           
        
    

    
      Name *
      

'
After the I removed 

<div class="css3-spinner">
<div class="css3-spinner-scaler"></div>
</div>

'
The form starts working and sends emails according to form.php configuration.

SSemicolon WebSTAFFMar 1, 2022

Hello,

Glad your issues were resolved.

We have just checked this out in the Source Files and they appears to be working correctly even with the Codes you have deleted above. It would be great if you can please provide us with a Live URL so that we can check this more efficiently and provide you with a more accurate solution for this.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard