Announcement

Collapse
No announcement yet.

script sc_mail_send

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • script sc_mail_send

    Hy,script works, but i have issue not find problem, when i add string for a email copies not works, but reiceve only one mail,but not copies, i want reiceve two mail, thanks.





    // Email parameters
    $mail_smtp_server = '----'; // SMTP server name or IP address
    $mail_smtp_user = '-----'; // SMTP user name
    $mail_smtp_pass = '-----'; // SMTP password
    $mail_from = 'x@x.it'; // From email
    $mail_to = $email ; // To email
    $mail_subject = $invio; // Message subject
    $mail_message = {testo_email}; // Message body
    $mail_format = 'H'; // Message format: (T)ext or (H)tml
    $mail_Copies = 'x@x.it' ;
    $mail_Copies_Type = 'CCC' ;

    // Send email";


    {





    sc_mail_send($mail_smtp_server,
    $mail_smtp_user,
    $mail_smtp_pass,
    $mail_from,
    $mail_to,
    $mail_subject,
    $mail_message,
    $mail_format);
    $mail_Copies;
    $mail_Copies_Type;

    }

  • #2
    $mail_subject,
    $mail_message,
    $mail_format);
    $mail_Copies;
    $mail_Copies_Type;

    }

    should be

    $mail_subject,
    $mail_message,
    $mail_format,
    $mail_Copies,
    $mail_Copies_Type
    )
    }

    Dave
    Last edited by daveprue; 12-19-2014, 03:10 AM.
    Dave Prue
    Code Whisperer
    Lahar International Corp
    www.lahar.net

    Comment


    • #3
      hy, not solve issue, i reiceve only one mail not copy,not find problem ,now write code:
      $test='Prova Invio';
      $test1='Fattura';

      $invio=$test.' '.$test1.' '.{numero_fattura};
      $copia='a.parisi1973@gmail.com';

      // Email parameters
      $mail_smtp_server = '-----'; // SMTP server name or IP address
      $mail_smtp_user = '------'; // SMTP user name
      $mail_smtp_pass = '---'; // SMTP password
      $mail_from = 'andrea@androidintheworld.it'; // From email
      $mail_to = $email ; // To email
      $mail_subject = $invio; // Message subject
      $mail_message = {testo_email}; // Message body
      $mail_format = 'H'; // Message format: (T)ext or (H)tml
      $mail_Copies = $copia ;
      $mail_Copies_Type = 'CCC' ;


      {

      sc_mail_send($mail_smtp_server,
      $mail_smtp_user,
      $mail_smtp_pass,
      $mail_from,
      $mail_to,
      $mail_subject,
      $mail_message,
      $mail_format;
      $mail_Copies;
      $mail_Copies_Type;
      )

      }

      Comment


      • #4
        Try it like this:

        Code:
        $test='Prova Invio';
        $test1='Fattura';
        
        $invio=$test.' '.$test1.' '.{numero_fattura};
        $copia='a.parisi1973@gmail.com';
        
        // Email parameters
        $mail_smtp_server = '-----';        // SMTP server name or IP address
        $mail_smtp_user   = '------';                   // SMTP user name
        $mail_smtp_pass   = '---';                // SMTP password
        $mail_from        = 'andrea@androidintheworld.it';          // From email
        $mail_to          = $email ;         // To email
        $mail_subject     = $invio;            // Message subject
        $mail_message     =  {testo_email}; // Message body
        $mail_format      = 'H';                       // Message format: (T)ext or (H)tml
        $mail_Copies      = $copia ;
        $mail_Copies_Type = 'CCC' ;
        
        sc_mail_send(
        $mail_smtp_server,
        $mail_smtp_user, $mail_smtp_pass, $mail_from, $mail_to, $mail_subject, $mail_message, $mail_format, $mail_Copies, $mail_Copies_Type
        );
        Also, I would suggest you spend some time here: http://www.w3schools.com/php/default.asp

        Dave
        Dave Prue
        Code Whisperer
        Lahar International Corp
        www.lahar.net

        Comment

        Working...
        X