This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Sending HTML Email back to submitter
Started 17 years ago by minibigs | 29 posts |
-
Ooops sorry, I just learned what a backtick is.. :)
But now I get this error:
Warning: Cannot use a scalar value as an array in /home/formppp/public_html/machform/hooks/custom_hooks.php on line 61
Warning: Cannot use a scalar value as an array in /home/formppp/public_html/machform/hooks/custom_hooks.php on line 62
Warning: Cannot use a scalar value as an array in /home/formppp/public_html/machform/hooks/custom_hooks.php on line 63
Warning: Cannot modify header information - headers already sent by (output started at /home/formppp/public_html/machform/hooks/custom_hooks.php:61) in /home/formppp/public_html/machform/embed.php on line 33
-----
my line 61,62,63 is:
$result['body'] = $email_content;
$result['target_email'] = $user_input['element_11'];
$result['subject'] = $email_subject;-----
Posted 16 years ago # -
Oops..sorry, small error with the code. It was using the same $result variable, hence the conflict occured.
I've just logged in to your FTP and updated that file. Please check it.
MachForm Founder
Posted 16 years ago # -
Thank you so much!
Posted 16 years ago # -
Is there anyway to change the sender name, on the email that you send out to the person who completed the form?
At the moment, my emails are coming from "Machform."
Thank you :)
Posted 16 years ago # -
Sure, simply edit your config.php file.
Search for NOTIFICATION_MAIL_FROM_NAME setting.For example:
define('NOTIFICATION_MAIL_FROM_NAME','SonicAlpha');
That will set your sender name to "SonicAlpha" :-)MachForm Founder
Posted 16 years ago # -
Thank you very much :)
Posted 16 years ago # -
I have two questions:
I've followed the steps above to have an html email sent back and it is working fien.
Q1: I need to add a different html email to be sent for another form, I added the same code under in custom_hook.php but it doesn't seem to work at the moment.Q2: I also need to have a distinct mail from for the first form and the second form, how could I accomplish this?
Posted 16 years ago # -
ok I found this post that will probably help me!
http://www.appnitro.com/forums/topic/reply-to-address?replies=8#post-381Posted 16 years ago # -
I have this working nicely now, thanks for the tips.
Posted 16 years ago #
Reply
You must log in to post.