コード例 #1
0
                print "Cannot execute query <br>";
                exit;
            } else {
                /************** to sent registration mail to the  company*********/
                $qry_select_sent = "Select mail_id,mail_sent from cs_registrationmail";
                $rst_select_sent = mysql_query($qry_select_sent, $cnn_cs);
                if (mysql_num_rows($rst_select_sent) > 0) {
                    $mail_sent = mysql_result($rst_select_sent, 0, 1);
                }
                if ($mail_sent == 1) {
                    $arrFiles[0] = "";
                    $arrFileNames[0] = "";
                    $email_from = "*****@*****.**";
                    $email_to = $email;
                    $email_subject = "Registration Confirmation";
                    $email_message = func_getreplymailbody($companyname, $username, $password);
                    if (!sendMail($email_from, $email_subject, $email_message, $email_to, $arrFiles, $arrFileNames)) {
                        print "Sorry! Some of the mails was not able to send";
                        exit;
                    }
                }
                /***************************************************************/
                $username = "******";
                $outhtml = "y";
                message($username, $outhtml, $headerInclude);
                exit;
            }
        }
    }
    ?>
<script language="javascript">
コード例 #2
0
        </tr>
        <tr>
          <td width="99%" bgcolor="#85AFBC" height="18"><img border="0" src="images/spacer.gif" width="1" height="1"></td>
          <td width="1%" ><img border="0" src="images/spacer.gif" width="1" height="1"></td>
        </tr>
        <tr>
          <td width="100%" height="178" colspan="2" valign="top"><!--<img border="0" src="images/service.jpg" width="160" height="176">--></td>
        </tr>
      </table>
    </td>
    <td height="25" valign="top" align="center" width="607">
&nbsp;

 <?php 
// print $msgtodisplay;
print func_getreplymailbody($companyname, $username, $password);
?>
    </td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="772" align="center" class="blkbd1" height="20">
  <tr>
    <td height="25" bgcolor="#2F6468"></td>
  </tr>
</table>




</body>
コード例 #3
0
function func_getreplymailbody_htmlformat($strCompanyName, $strUserName, $strPassword, $str_reference_num)
{
    return nl2br(func_getreplymailbody($strCompanyName, $strUserName, $strPassword, $str_reference_num));
}
コード例 #4
0
             }
             $outhtml = "y";
             message($msgtodisplay, $outhtml, $headerInclude);
             exit;
         }
     }
 } else {
     foreach ($companyname as $company_id) {
         $select_mail_sql = "select distinct email,companyname,username,password,send_mail from cs_companydetails where userId={$company_id} ";
         $show_sql = mysql_query($select_mail_sql, $cnn_cs);
         $to_id = mysql_result($show_sql, 0, 0);
         $company_name = mysql_result($show_sql, 0, 1);
         $user_name = mysql_result($show_sql, 0, 2);
         $pass_word = mysql_result($show_sql, 0, 3);
         $mail_confirm = mysql_result($show_sql, 0, 4);
         $strMaildata = func_getreplymailbody($company_name, $user_name, $pass_word);
         /*			$str_current_path = "csv/confirmationmail.htm";
         			//	print $str_current_path;
         			$create_file = fopen($str_current_path,'w');
         			//	print $create_file;
         			$file_content = $strMaildata;
         			fwrite($create_file,$file_content);
         			fclose($create_file);
         */
         $txtBody = $strMaildata;
         if ($mail_confirm == 1) {
             if (!func_send_mail($fromaddress, $to_id, $subject, $txtBody)) {
                 $msgtodisplay = "Sorry, some of the emails could not be sent.";
             } else {
                 $msgtodisplay = "Mails successfully send to the users.";
             }
コード例 #5
0
<?php

include "includes/mailbody_replytemplate.php";
$strMail = func_getreplymailbody("[CompanyName]", "[UserName]", "[PassWord]");
?>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="window.close()">
</body>