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


  1. meganamy
    Member

    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 #
  2. yuniar

    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 #
  3. meganamy
    Member

    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 #
  4. Saghalie
    Pro Member

    Can you post for us what errors you are getting?

    Thanks!

    Posted 15 years ago #
  5. yuniar

    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.com


    MachForm Founder

    Posted 15 years ago #
  6. aladdin
    Member

    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.com

    Thanks alot for your advice

    Aladdin

    Posted 15 years ago #
  7. yuniar

    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.com

    I'll help you fixing it.


    MachForm Founder

    Posted 15 years ago #

RSS feed for this topic

Reply