PHP mailer Error

Issues related to forms.
Post Reply
eirianceri
 
 
Posts: 18
Joined: Fri May 29, 2009 4:42 pm
Location: Wales
Contact:

PHP mailer Error

Post by eirianceri » Fri Apr 27, 2018 1:57 pm

Hi,
I'm have a PHP mailer Error could not instantiate mail function on forms on 2 sites.
I've spoken with my hosting company and this is what they said after looking at the page code.

$mailto = 'julia@julianicholls.co.uk';
$mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto;
ini_set('sendmail_from', $mailfrom);

so, the technican from our hosting company has changed the coding from his side - AND THIS WORKS. THE CLIENTS ARE ABLE TO SEND THE FORM.
i changed the from address in the

class.phpmailer.php /**
* The From email address for the message.
* @var string
*/
public $From = 'julia@julianicholls.co.uk


My question is, How can I fix this inside wysiwyg form?
Regards
Eirian

User avatar
Pablo
 
Posts: 13052
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: PHP mailer Error

Post by Pablo » Fri Apr 27, 2018 2:47 pm

Normally it is not necessary to make any changes to the code. No one else has ever needed this code.
Are you using the latest update?

You can add custom code to the form processor via Right click -> Object HTML

eirianceri
 
 
Posts: 18
Joined: Fri May 29, 2009 4:42 pm
Location: Wales
Contact:

Re: PHP mailer Error

Post by eirianceri » Fri Apr 27, 2018 6:57 pm

thank you for your reply.
Eirian

Eleri Jones
 
 
Posts: 9
Joined: Wed Oct 29, 2014 6:44 pm

Re: PHP mailer Error

Post by Eleri Jones » Tue May 15, 2018 6:07 pm

Hi,
Still having several of our clients cannot receive email from their form on the websites.
I was told by our ISP to add a code or change some settings on the form.

The ISP added the following code:
i changed the from address in the class.phpmailer.php /**
* The From email address for the message.
* @var string
*/
public $From = 'julia@julianicholls.co.uk ';


How do I add this code to other forms on other website? And do I really need to do this? The forms on all website have worked perfectly for many years. I really hope someone can help as I have no knowledge of coding.
Thanks you
Eleri

User avatar
Pablo
 
Posts: 13052
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: PHP mailer Error

Post by Pablo » Tue May 15, 2018 6:27 pm

You can add custom code to the form processor via Right click -> Object HTML

Eleri Jones
 
 
Posts: 9
Joined: Wed Oct 29, 2014 6:44 pm

Re: PHP mailer Error

Post by Eleri Jones » Tue May 15, 2018 6:52 pm

Hi, Thanks for quick reply. What code would you suggest that I use? I use WYSIWYG Web Builder Form .
I was told by my ISP than I should "make the form element a STATIC value rather than a variable"
What code should I use and can I add that code to the Object HTMl you suggested?
I hope that you can help, as I am desperate, many of my clients are now not receiving any details from the forms on their websites.
Thanks
Eleri. :cry:

User avatar
Pablo
 
Posts: 13052
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: PHP mailer Error

Post by Pablo » Tue May 15, 2018 8:25 pm

In WB14 you can set the 'from' address to a fixed value:
Image

I am not sure if that will work with your host but you can try.
I was told by my ISP than I should "make the form element a STATIC value rather than a variable"
I'm sorry, I do not know what that means.
I hope that you can help, as I am desperate, many of my clients are now not receiving any details from the forms on their websites.
If it suddenly stopped working and you did not change anything then maybe you can ask your web host to undo the changes?

eirianceri
 
 
Posts: 18
Joined: Fri May 29, 2009 4:42 pm
Location: Wales
Contact:

Re: PHP mailer Error

Post by eirianceri » Wed May 16, 2018 3:50 pm

Thank you so much for your advice. Inserting the From: value I think solved the issue. I will need to check on all the other websites now.
Regards
Eirian

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests