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
Form to Mail
Started 15 years ago by meganamy | 7 posts |
-
My host specifies that:
To stop misuse of your form by third parties the sendmail_from variable should be set to your Streamline.Net hosted email address. This is usually configured in the php.ini file which is restricted on our shared servers, however you can set this variable using the ini_set() command, shown below.
ini_set("sendmail_from", " you@yourdomain.com ");A fifth parameter -f should be added to the sendmail function. This will set the name of the from email address.
In its basic form, a simple sendmail script will look like this:
ini_set("sendmail_from", " you@yourdomain.com ");
mail($email_to, $email_subject, $email_message, $headers, '-fyou@yourdomain.com')Please can you tell me where I should add this this so that I can send email to myself and customer.
Posted 15 years ago # -
MachForm uses PHPMailer library to send email and it already done that (using -f parameter).
So no need to modify anything. Just make sure to put your email addres into your config.php file.
Make sure to have this setting:
define('NOTIFICATION_MAIL_FROM','you@yourdomain.com');
MachForm Founder
Posted 15 years ago # -
I have added this to config.php file but I'm still not receiving any email either to admin or client.
My host is very critical that "-fyou@yourdomain.com" is added to the 5th parameter in ALL occurances of: mail($email_to, $email_subject, $email_message, $headers, '-fyou@yourdomain.com')
I would really like to get this working as its a great program, any help would be apreciated.
Posted 15 years ago # -
Can you post for us what errors you are getting?
Thanks!
Posted 15 years ago # -
An error message would be very helpful indeed.
Or if you don't want to post it here, please contact us directly:
customer.service [at] appnitr.comMachForm Founder
Posted 15 years ago # -
My dear yunair , I need your help this time. My form was working fine all the last 8 month and now all of sudden stopped sending me emails, i log on the cotrol panel of the form at my websiteand it showed me lots of entry but nothing in my mail box.
any suggestion how to fix this !
My e-mail is: aladdin@ask-aladdin.com
website www.ask-aladdin.comThanks alot for your advice
Aladdin
Posted 15 years ago # -
Hi Aladdin,
Was there any changes with your host?
I reckon the last time you have the same problem, there was some conflict with another PHP scripts?If you still having problem, let me know your FTP login info.
Please send to: customer.service [at] appnitro.comI'll help you fixing it.
MachForm Founder
Posted 15 years ago #
Reply
You must log in to post.