FORUM

Contact Form: Mail with Attachments

Home / Forum / Components Discussions / Contact Form: Mail with Attachments / Page 2

  • Hi again pinosh,


    Thanks for your answer,


    if I understand correctly the end of sendmail.php should read:


    if(mail($TO, $SUBJECT, $message, “From:”.$yourname.” <”.$yourmail.”>/nReply-To: “.$yourmail.”/nReturn-Path: “.$yourmail.”/nMIME-Version:1.0
    “. $content_type)) { echo “<status message=‘sent’ />”; mail($yourmail, $CONFIRMATION_SUBJECT, $CONFIRMATION_MESSAGE, “From:”.$CONFIRMATION_NAME.” <”.$CONFIRMATION_MAIL.”>/nReply-To: “.$CONFIRMATION_MAIL.”/nReturn-Path: “.$CONFIRMATION_MAIL.”/nMIME-Version:1.0
    “.$content_type); } else { echo “<status message=‘error’ />”; }
    ?>


    ?


    #  /  posted on May 05, 2009
  • Yes,
    Except that /n should be\r\n


    #  /  posted on May 05, 2009
  • hi pinosh !


    Thank you for the answer… but it still doesn’t work !
    i had an answer from my server webmasters.


    They send me this as exemple :


    <?php
    $headers =‘From: “test oleane”<test@oleane-hebergement.com>’.” ”;
    $headers .=‘Return-Path: test@oleane-hebergement.com’.” ”;
    $headers .=‘Reply-To: test@oleane-hebergement.com’.” ”;
    $headers .=‘Content-Type: text/plain; charset=“iso-8859-1”’.” ”;
    $headers .=‘Content-Transfer-Encoding: 8bit’;


    if(mail(‘test@oleane-hebergement.com’, ‘test formulaire’, ‘message avec
    enveloppe complete’, $headers))
    {
    echo ‘Le message a bien ?t? envoy?’;
    }
    else
    {
    echo ‘Le message n‘a pu ?tre envoy?’;
    }
    ?>


    Does-it help you to solve the problem ?



    #  /  posted on May 06, 2009
  • sorry some accents did not appear correctly :


    this is better :


    <?php
    $headers =‘From: “test oleane”<test@oleane-hebergement.com>’.” ”;
    $headers .=‘Return-Path: test@oleane-hebergement.com’.” ”;
    $headers .=‘Reply-To: test@oleane-hebergement.com’.” ”;
    $headers .=‘Content-Type: text/plain; charset=“iso-8859-1”’.” ”;
    $headers .=‘Content-Transfer-Encoding: 8bit’;


    if(mail(‘test@oleane-hebergement.com’, ‘test formulaire’, ‘message avec
    enveloppe complete’, $headers))
    {
    echo ‘Le message a bien ete envoye’;
    }
    else
    {
    echo ‘Le message n‘a pu etre envoye’;
    }
    ?>



    #  /  posted on May 06, 2009
  • Hi,
    I don't think that's going to work either.

    \r\n it is CRLF which is "backslash"r"backslash"n
    These characters must separate the headers.

    Just like in this comment here http://www.php.net/manual/en/function.mail.php#88302

    Ovidiu


    #  /  posted on May 06, 2009
  • Hi Pinosh,


    I am person who work with Limou… We still have some problems with program…
    The program is running on a linux server but the message “message not sent” apprear whatever I do.


    I work on the v1.2 on the program.
    I don’t understand anything about php (I program only with Actionscript 3) so I don’t match to find the mistake.


    Do you have a new idea or a process to find where is the bug ?


    Thank you for your help.


    lemathurin


    #  /  posted on Dec 18, 2009
  • hello Pinosh


    i am trying to get it work but i am not receiving any attachment in my mail.
    Contact form is showing the progress like everything is OK but then i do not find the file attached.
    I did everything as explained and I checked 5 times :)


    this is the link to my test page
    contact form


    i would appreciate any help.
    Bruno


    #  /  posted on Apr 01, 2010
  • ok, now i changed the php version on my server to 5.2.12.
    now i get constantly message MESSAGE NOT SENT. so he even doesn’t send the message.


    ...
    hm… and then when i change back to the php 4.x it says the same… ???
    i am puzzzzzzzled..
    .......
    please help!


    #  /  posted on Apr 01, 2010
  • Hi,

    Do you have this email for ASP Version also come with file attachment?


    #  /  posted on Jan 08, 2011
  • Hi Mr. When i send a file, name and other informations will be sended to my email, and file will be upload to one folder or ill be sended to my email too ? It ill be upload to a folder, sure?


    #  /  posted on Oct 31, 2011

Please login to post replies.