Home › Forums › Quform PHP › How to add parameters to mail() function
- This topic has 2 replies, 2 voices, and was last updated 10 years, 10 months ago by Ally.
- AuthorPosts
- January 23, 2014 at 2:51 pm #8426Alain1405Participant
I set up the form but I still can’t receive any notification email. After looking for a solution I found that my domain provider requires the mail() function to have a 5° parameter. If the email is sent to “email@domain.com” the 5° parameter of mail() should be “-f email@domain.com”.
I tested it with mail-check.php and it worked indeed.
Where is the best place to add something like “-f ” . $from[’email’] as parameter? Can I do it in process.php?
Thanks in advance!January 23, 2014 at 3:04 pm #8427Alain1405ParticipantIf I try to set up smtp I get:
There was a problem
Fatal error: Uncaught exception ‘phpmailerException’ with message ‘SMTP Error: Could not connect to SMTP host.’ in /home/mhd-01/www.tenutalasantissima.com/htdocs/quform/lib/class.phpmailer.php:1093
Stack trace:
#0 /home/mhd-01/www.tenutalasantissima.com/htdocs/quform/lib/class.phpmailer.php(971): PHPMailer->SmtpConnect()
#1 /home/mhd-01/www.tenutalasantissima.com/htdocs/quform/lib/class.phpmailer.php(845): PHPMailer->SmtpSend(‘Date: Thu, 23 J…’, ‘–b1_ff9247ed44…’)
#2 /home/mhd-01/www.tenutalasantissima.com/htdocs/quform/lib/class.phpmailer.php(763): PHPMailer->PostSend()
#3 /home/mhd-01/www.tenutalasantissima.com/htdocs/quform/process.php(363): PHPMailer->Send()
#4 /home/mhd-01/www.tenutalasantissima.com/htdocs/quform/process.php(417): process(Object(Quform), Array)
#5 {main}
thrown in /home/mhd-01/www.tenutalasantissima.com/htdocs/quform/lib/class.phpmailer.php on line 1093- This reply was modified 10 years, 10 months ago by Alain1405.
January 23, 2014 at 5:57 pm #8439AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.