Page 1 of 1

Changing "FROM" email on php page

Posted: Mon Dec 09, 2024 3:38 pm
by JohnR
Wondering how to change the 'FROM' email on a php page?
It's in the "function validateEmail($email)" html section and is set to " $header = 'From: '.$mailfrom.$eol;"

Re: Changing "FROM" email on php page

Posted: Mon Dec 09, 2024 3:51 pm
by Pablo
You can change this via Form properties -> More

Re: Changing "FROM" email on php page

Posted: Tue Dec 10, 2024 1:13 pm
by JohnR
Is there a way I can hard code the 'FROM' address?
I have an entry in the 'From' section, but the server is, for reasons known only to the website gods,
not accepting it. The code generated is as follows:
2024-12-09 10:46:36.655 [2331647] 1tKfxv-00000009mZD-1sLD <= ridgl004@sh-cp10.yyz2.servername.online U=ridgl004 Ci=2331647 P=local S=1965 M8S=0 RT=0.012s id*=E1tKfxv-00000009mZD-1sLD@sh-cp10.yyz2.servername.online T="Request for Marriage License" from <ridgl004@sh-cp10.yyz2.servername.online> for newfiejohn@gmail.com

Re: Changing "FROM" email on php page

Posted: Tue Dec 10, 2024 2:26 pm
by Pablo
Yes, you can hard-code the from address via Form properties -> More

See also the FAQ:
viewtopic.php?t=32967

Re: Changing "FROM" email on php page

Posted: Tue Dec 10, 2024 3:15 pm
by BaconFries
for reasons known only to the website gods,not accepting it.
From part of the error it shows your email is gmail in general host do allow this and the email should be that of the domain. This is documented at the following:
Forms FAQ reading from
Emails are not arriving in my inbox...
5. Does your host allow you to send email to the destination email address?
If you have previously used gmail and it worked then you may need to contact your host and ask why it no longer does and how to resolve.