Form not sending email either SMTP or PHP Mail Function

Permalink 1 user found helpful
Hiya,

OK same old problem. Both SMTP and default PHP Mail Function will not send email. Using V8.3.2

Testing Default PHP Mail Function returns "The following error was found while trying to send the test email:<br />Unable to send mail: Unknown error"

Testing with SMTP function with my personal gmail account using TLS and port 587 returns:
The following error was found while trying to send the test email:<br />5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbuf<br /> 5.7.14 (encrypted string here)<br /> 5.7.14 (encrypted string here)<br /> 5.7.14 (encrypted string here)<br /> 5.7.14 (encrypted string here)> Please log in via your web browser and<br /> 5.7.14 then try again.<br /> 5.7.14 Learn more at<br /> 5.7.14https://support.google.com/mail/answer/78754... z63-v6sm11250607wrb.34 - gsmtp<br />

Have 'enabled' the email sending in the form edit with 1 or more email addresses (comma separated).

I'm using a staging URL for my domain :http://mysitedomain-com.mystagingurl.com... until we go LIVE

The php is verison 7 and the send mail is using:
sendmail_path - /usr/sbin/sendmail -t -i
sendmail_from - no value (?! Is this the issue?!)
mail.add_x_header - On
mail.force_extra_parameters - no value
mail.log - no value

zapbrannigan1972
 
zapbrannigan1972 replied on at Permalink Best Answer Reply
zapbrannigan1972
FIXED:

The sendmail_from had no value. I uploaded a php.ini file to the root with:

sendmail_from = "noreply@domainname"

and its working.