--------------------------------------------------------------------------------
/examples/mail.phps:
--------------------------------------------------------------------------------
1 | setFrom('from@example.com', 'First Last');
12 | //Set an alternative reply-to address
13 | $mail->addReplyTo('replyto@example.com', 'First Last');
14 | //Set who the message is to be sent to
15 | $mail->addAddress('whoto@example.com', 'John Doe');
16 | //Set the subject line
17 | $mail->Subject = 'PHPMailer mail() test';
18 | //Read an HTML message body from an external file, convert referenced images to embedded,
19 | //convert HTML into a basic plain-text alternative body
20 | $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
21 | //Replace the plain text body with one created manually
22 | $mail->AltBody = 'This is a plain-text message body';
23 | //Attach an image file
24 | $mail->addAttachment('images/phpmailer_mini.png');
25 |
26 | //send the message, check for errors
27 | if (!$mail->send()) {
28 | echo "Mailer Error: " . $mail->ErrorInfo;
29 | } else {
30 | echo "Message sent!";
31 | }
32 |
--------------------------------------------------------------------------------
/phppro/p16.php:
--------------------------------------------------------------------------------
1 | ";
24 | }
25 |
26 | /* Second method to create array. */
27 | $numbers[0] = "one";
28 | $numbers[1] = "two";
29 | $numbers[2] = "three";
30 | $numbers[3] = "four";
31 | $numbers[4] = "five";
32 |
33 | foreach( $numbers as $value ) {
34 | echo "Value is $value ";
35 | }
36 | ?>
--------------------------------------------------------------------------------
/sendsms/sendsms.php:
--------------------------------------------------------------------------------
1 | "http://api.msg91.com/api/v2/sendsms?campaign=&response=&afterminutes=&schtime=&unicode=&flash=&message=&encrypt=&authkey=&mobiles=&route=&sender=&country=91",
12 | CURLOPT_RETURNTRANSFER => true,
13 | CURLOPT_ENCODING => "",
14 | CURLOPT_MAXREDIRS => 10,
15 | CURLOPT_TIMEOUT => 30,
16 | CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
17 | CURLOPT_CUSTOMREQUEST => "POST",
18 | CURLOPT_POSTFIELDS => "{ \"sender\": \"KEONIC\", \"route\": \"4\", \"country\": \"91\", \"sms\": [ { \"message\": \"$message\", \"to\": [ \"$phone\" ] } ] }",
19 | CURLOPT_SSL_VERIFYHOST => 0,
20 | CURLOPT_SSL_VERIFYPEER => 0,
21 | CURLOPT_HTTPHEADER => array(
22 | "authkey: 186843AaiqXTfRqgE5b6ba8ab",
23 | "content-type: application/json"
24 | ),
25 | ));
26 |
27 | $response = curl_exec($curl);
28 | $err = curl_error($curl);
29 |
30 | curl_close($curl);
31 |
32 | if ($err) {
33 | echo "cURL Error #:" . $err;
34 | } else {
35 | echo "Message Sent";
36 | }
37 | }
--------------------------------------------------------------------------------
/examples/sendmail.phps:
--------------------------------------------------------------------------------
1 | isSendmail();
12 | //Set who the message is to be sent from
13 | $mail->setFrom('from@example.com', 'First Last');
14 | //Set an alternative reply-to address
15 | $mail->addReplyTo('replyto@example.com', 'First Last');
16 | //Set who the message is to be sent to
17 | $mail->addAddress('whoto@example.com', 'John Doe');
18 | //Set the subject line
19 | $mail->Subject = 'PHPMailer sendmail test';
20 | //Read an HTML message body from an external file, convert referenced images to embedded,
21 | //convert HTML into a basic plain-text alternative body
22 | $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
23 | //Replace the plain text body with one created manually
24 | $mail->AltBody = 'This is a plain-text message body';
25 | //Attach an image file
26 | $mail->addAttachment('images/phpmailer_mini.png');
27 |
28 | //send the message, check for errors
29 | if (!$mail->send()) {
30 | echo "Mailer Error: " . $mail->ErrorInfo;
31 | } else {
32 | echo "Message sent!";
33 | }
34 |
--------------------------------------------------------------------------------
/phppro/p37.php:
--------------------------------------------------------------------------------
1 | improved)
8 | 2) PDO(PHP Data Objects)
9 |
10 | PDO will work on 12 different Database systems
11 | Mysqli will work only with MYSQL Database
12 |
13 |
14 | In project if you want to switch project from one DB to another Database :
15 | In PDO only Connection
16 | String is need to modify with few queries . With MYSQLi need to rewrite entire code
17 | */
18 |
19 |
20 | /* Connecting Database */
21 |
22 | /* Using Mysqli */
23 | $servername="localhost";
24 | $username="root";
25 | $password="";
26 |
27 | $con=new mysqli($servername,$username,$password);
28 | if($con->connect_error){
29 | die("Connection Error");
30 | }else{
31 | echo " Connection Successful";
32 | }
33 |
34 |
35 | /* PDO */
36 | try
37 | {
38 | $database="mydb";
39 | $connection=new PDO("mysql:host=$servername;dbname=$database",$username,$password);
40 | $connection->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
41 | echo "Connection Successful";
42 | }
43 | catch(PDOException $e){
44 | echo "Connection Failed : $e";
45 | }
46 | ?>
47 |
--------------------------------------------------------------------------------
/phppro/files/newfile123.doc:
--------------------------------------------------------------------------------
1 | Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
2 | To make your document look professionally produced, Word provides header, footer, cover page, and text box designs that complement each other. For example, you can add a matching cover page, header, and sidebar. Click Insert and then choose the elements you want from the different galleries.
3 | Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme.
4 | Save time in Word with new buttons that show up where you need them. To change the way a picture fits in your document, click it and a button for layout options appears next to it. When you work on a table, click where you want to add a row or a column, and then click the plus sign.
5 | Reading is easier, too, in the new Reading view. You can collapse parts of the document and focus on the text you want. If you need to stop reading before you reach the end, Word remembers where you left off - even on another device.
6 |
--------------------------------------------------------------------------------
/phppro/files/newfile123.pdf:
--------------------------------------------------------------------------------
1 | Video provides a powerful way to help you prove your point. When you click Online Video, you can paste in the embed code for the video you want to add. You can also type a keyword to search online for the video that best fits your document.
2 | To make your document look professionally produced, Word provides header, footer, cover page, and text box designs that complement each other. For example, you can add a matching cover page, header, and sidebar. Click Insert and then choose the elements you want from the different galleries.
3 | Themes and styles also help keep your document coordinated. When you click Design and choose a new Theme, the pictures, charts, and SmartArt graphics change to match your new theme. When you apply styles, your headings change to match the new theme.
4 | Save time in Word with new buttons that show up where you need them. To change the way a picture fits in your document, click it and a button for layout options appears next to it. When you work on a table, click where you want to add a row or a column, and then click the plus sign.
5 | Reading is easier, too, in the new Reading view. You can collapse parts of the document and focus on the text you want. If you need to stop reading before you reach the end, Word remembers where you left off - even on another device.
6 |
--------------------------------------------------------------------------------
/type4/fileUpload.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | File Upload
5 |
6 |
7 |
55 |
56 |
--------------------------------------------------------------------------------
/phppro/p33.php:
--------------------------------------------------------------------------------
1 | This is an Example for calling function with Parameters";
12 | echo " value Number 1 is :$num1 Value of Number 2 is :$num2";
13 | }
14 |
15 | demo1(20,30);
16 |
17 |
18 | /* Function with Reference variable */
19 | function demo2(&$num){
20 | $num+=20;
21 | }
22 | $original=100;
23 | echo " value of Orginal variable is : $original";
24 | demo2($original);
25 | echo " Updated Value of Orginal varaible is : $original";
26 |
27 | /* Function Returning Values */
28 |
29 | function findlenghtofstring($name){
30 | return strlen($name);
31 | }
32 | $data="Vijay";
33 | $length=findlenghtofstring($data);
34 | echo " Length of $data is : $length";
35 |
36 | /* Setting Default values to function Parameters */
37 | function setdefault($num=10){
38 | return $num;
39 | }
40 | $number=100;
41 | echo " The value of number variable is :".setdefault($number);
42 | echo " The Default value of number variable is :".setdefault();;
43 |
44 |
45 | /* Dynamic Function Calls */
46 | function test(){
47 | echo " testing Function .";
48 | }
49 | $x="test";
50 | $x();
51 | ?>
--------------------------------------------------------------------------------
/phppro/p11.php:
--------------------------------------------------------------------------------
1 | loops through block of code a specified number of times
7 | 2. While -> loops through block of code if and as long as condition is true
8 | 3. do..while ->loops through block of code once,and repeats till condition is true
9 | 4. foreach ->loops through block of code for each element is array
10 | */
11 |
12 | //Example using For Loops
13 | include 'header.php';
14 | ?>
15 |
57 |
58 |
--------------------------------------------------------------------------------
/phpmailer.lang-zh.php:
--------------------------------------------------------------------------------
1 |
6 | * @author Peter Dave Hello <@PeterDaveHello/>
7 | * @author Jason Chiang
8 | */
9 |
10 | $PHPMAILER_LANG['authenticate'] = 'SMTP 錯誤:登入失敗。';
11 | $PHPMAILER_LANG['connect_host'] = 'SMTP 錯誤:無法連線到 SMTP 主機。';
12 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 錯誤:無法接受的資料。';
13 | $PHPMAILER_LANG['empty_message'] = '郵件內容為空';
14 | $PHPMAILER_LANG['encoding'] = '未知編碼: ';
15 | $PHPMAILER_LANG['execute'] = '無法執行:';
16 | $PHPMAILER_LANG['file_access'] = '無法存取檔案:';
17 | $PHPMAILER_LANG['file_open'] = '檔案錯誤:無法開啟檔案:';
18 | $PHPMAILER_LANG['from_failed'] = '發送地址錯誤:';
19 | $PHPMAILER_LANG['instantiate'] = '未知函數呼叫。';
20 | $PHPMAILER_LANG['invalid_address'] = '因為電子郵件地址無效,無法傳送: ';
21 | $PHPMAILER_LANG['mailer_not_supported'] = '不支援的發信客戶端。';
22 | $PHPMAILER_LANG['provide_address'] = '必須提供至少一個收件人地址。';
23 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 錯誤:以下收件人地址錯誤:';
24 | $PHPMAILER_LANG['signing'] = '電子簽章錯誤: ';
25 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 連線失敗';
26 | $PHPMAILER_LANG['smtp_error'] = 'SMTP 伺服器錯誤: ';
27 | $PHPMAILER_LANG['variable_set'] = '無法設定或重設變數: ';
28 | $PHPMAILER_LANG['extension_missing'] = '遺失模組 Extension: ';
29 |
--------------------------------------------------------------------------------
/language/phpmailer.lang-ch.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 |
8 | $PHPMAILER_LANG['authenticate'] = 'SMTP 错误:身份验证失败。';
9 | $PHPMAILER_LANG['connect_host'] = 'SMTP 错误: 不能连接SMTP主机。';
10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误: 数据不可接受。';
11 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty';
12 | $PHPMAILER_LANG['encoding'] = '未知编码:';
13 | $PHPMAILER_LANG['execute'] = '不能执行: ';
14 | $PHPMAILER_LANG['file_access'] = '不能访问文件:';
15 | $PHPMAILER_LANG['file_open'] = '文件错误:不能打开文件:';
16 | $PHPMAILER_LANG['from_failed'] = '下面的发送地址邮件发送失败了: ';
17 | $PHPMAILER_LANG['instantiate'] = '不能实现mail方法。';
18 | //$PHPMAILER_LANG['invalid_address'] = 'Invalid address: ';
19 | $PHPMAILER_LANG['mailer_not_supported'] = ' 您所选择的发送邮件的方法并不支持。';
20 | $PHPMAILER_LANG['provide_address'] = '您必须提供至少一个 收信人的email地址。';
21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误: 下面的 收件人失败了: ';
22 | //$PHPMAILER_LANG['signing'] = 'Signing Error: ';
23 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
24 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
25 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
26 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
27 |
--------------------------------------------------------------------------------
/language/phpmailer.lang-ko.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 |
8 | $PHPMAILER_LANG['authenticate'] = 'SMTP 오류: 인증할 수 없습니다.';
9 | $PHPMAILER_LANG['connect_host'] = 'SMTP 오류: SMTP 호스트에 접속할 수 없습니다.';
10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP 오류: 데이터가 받아들여지지 않았습니다.';
11 | $PHPMAILER_LANG['empty_message'] = '메세지 내용이 없습니다';
12 | $PHPMAILER_LANG['encoding'] = '알 수 없는 인코딩: ';
13 | $PHPMAILER_LANG['execute'] = '실행 불가: ';
14 | $PHPMAILER_LANG['file_access'] = '파일 접근 불가: ';
15 | $PHPMAILER_LANG['file_open'] = '파일 오류: 파일을 열 수 없습니다: ';
16 | $PHPMAILER_LANG['from_failed'] = '다음 From 주소에서 오류가 발생했습니다: ';
17 | $PHPMAILER_LANG['instantiate'] = 'mail 함수를 인스턴스화할 수 없습니다';
18 | $PHPMAILER_LANG['invalid_address'] = '잘못된 주소: ';
19 | $PHPMAILER_LANG['mailer_not_supported'] = ' 메일러는 지원되지 않습니다.';
20 | $PHPMAILER_LANG['provide_address'] = '적어도 한 개 이상의 수신자 메일 주소를 제공해야 합니다.';
21 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP 오류: 다음 수신자에서 오류가 발생했습니다: ';
22 | $PHPMAILER_LANG['signing'] = '서명 오류: ';
23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 연결을 실패하였습니다.';
24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP 서버 오류: ';
25 | $PHPMAILER_LANG['variable_set'] = '변수 설정 및 초기화 불가: ';
26 | $PHPMAILER_LANG['extension_missing'] = '확장자 없음: ';
27 |
--------------------------------------------------------------------------------
/examples/DKIM.phps:
--------------------------------------------------------------------------------
1 | setFrom('from@example.com', 'First Last');
16 | //Set an alternative reply-to address
17 | $mail->addReplyTo('replyto@example.com', 'First Last');
18 | //Set who the message is to be sent to
19 | $mail->addAddress('whoto@example.com', 'John Doe');
20 | //Set the subject line
21 | $mail->Subject = 'PHPMailer DKIM test';
22 | //This should be the same as the domain of your From address
23 | $mail->DKIM_domain = 'example.com';
24 | //Path to your private key file
25 | $mail->DKIM_private = 'dkim_private.pem';
26 | //Set this to your own selector
27 | $mail->DKIM_selector = 'phpmailer';
28 | //If your private key has a passphrase, set it here
29 | $mail->DKIM_passphrase = '';
30 | //The identity you're signing as - usually your From address
31 | $mail->DKIM_identity = $mail->From;
32 |
33 | //send the message, check for errors
34 | if (!$mail->send()) {
35 | echo "Mailer Error: " . $mail->ErrorInfo;
36 | } else {
37 | echo "Message sent!";
38 | }
39 |
--------------------------------------------------------------------------------
/type4/display.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Display User Table
6 |
7 |
8 |
User Table
9 |
10 |
11 |
12 |
SL.No
13 |
Name
14 |
Email
15 |
Phone
16 |
Dob
17 |
Gender
18 |
Reg.Date
19 |
Action
20 |
21 |
22 |
23 | SELECT * FROM user WHERE name LIKE '%e%' -- letter 'e' in the name
26 | >SELECT * FROM user WHERE name LIKE 'e%' --letter begin with 'e'
27 | >SELECT * FROM user WHERE name LIKE '%e' --letter end with 'e'
28 | >SELECT * FROM user WHERE gender='male' --Filter the table by gender is male
29 |
30 | */
31 | $selectQuery="SELECT * FROM user ORDER BY uid DESC";
32 | $stmt=$con->query($selectQuery);
33 | $no=1;
34 | while($row=$stmt->fetch(PDO::FETCH_ASSOC)){
35 | ?>
36 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/language/phpmailer.lang-ja.php:
--------------------------------------------------------------------------------
1 |
6 | * @author Yoshi Sakai
7 | */
8 |
9 | $PHPMAILER_LANG['authenticate'] = 'SMTPエラー: 認証できませんでした。';
10 | $PHPMAILER_LANG['connect_host'] = 'SMTPエラー: SMTPホストに接続できませんでした。';
11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTPエラー: データが受け付けられませんでした。';
12 | //$PHPMAILER_LANG['empty_message'] = 'Message body empty';
13 | $PHPMAILER_LANG['encoding'] = '不明なエンコーディング: ';
14 | $PHPMAILER_LANG['execute'] = '実行できませんでした: ';
15 | $PHPMAILER_LANG['file_access'] = 'ファイルにアクセスできません: ';
16 | $PHPMAILER_LANG['file_open'] = 'ファイルエラー: ファイルを開けません: ';
17 | $PHPMAILER_LANG['from_failed'] = 'Fromアドレスを登録する際にエラーが発生しました: ';
18 | $PHPMAILER_LANG['instantiate'] = 'メール関数が正常に動作しませんでした。';
19 | //$PHPMAILER_LANG['invalid_address'] = 'Invalid address: ';
20 | $PHPMAILER_LANG['provide_address'] = '少なくとも1つメールアドレスを 指定する必要があります。';
21 | $PHPMAILER_LANG['mailer_not_supported'] = ' メーラーがサポートされていません。';
22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTPエラー: 次の受信者アドレスに 間違いがあります: ';
23 | //$PHPMAILER_LANG['signing'] = 'Signing Error: ';
24 | //$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.';
25 | //$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: ';
26 | //$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: ';
27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
28 |
--------------------------------------------------------------------------------
/examples/exceptions.phps:
--------------------------------------------------------------------------------
1 | setFrom('from@example.com', 'First Last');
14 | //Set an alternative reply-to address
15 | $mail->addReplyTo('replyto@example.com', 'First Last');
16 | //Set who the message is to be sent to
17 | $mail->addAddress('whoto@example.com', 'John Doe');
18 | //Set the subject line
19 | $mail->Subject = 'PHPMailer Exceptions test';
20 | //Read an HTML message body from an external file, convert referenced images to embedded,
21 | //and convert the HTML into a basic plain-text alternative body
22 | $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
23 | //Replace the plain text body with one created manually
24 | $mail->AltBody = 'This is a plain-text message body';
25 | //Attach an image file
26 | $mail->addAttachment('images/phpmailer_mini.png');
27 | //send the message
28 | //Note that we don't need check the response from this because it will throw an exception if it has trouble
29 | $mail->send();
30 | echo "Message sent!";
31 | } catch (phpmailerException $e) {
32 | echo $e->errorMessage(); //Pretty error messages from PHPMailer
33 | } catch (Exception $e) {
34 | echo $e->getMessage(); //Boring error messages from anything else!
35 | }
36 |
--------------------------------------------------------------------------------
/language/phpmailer.lang-nb.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Demo Page
5 |
36 |
37 |
38 |
39 |
Kenoics
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
School : XYZ Pvt School
48 |
College : ABC Govt. College
49 |
Hobbies : Cricket, Footbal ......
50 |
51 |
52 |
53 |
54 |
55 |
About Me :
56 |
57 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam non pellentesque purus. Quisque aliquet tellus id odio lacinia, condimentum commodo turpis tempus. Pellentesque quis metus vitae tortor venenatis tincidunt. Donec maximus, libero nec accumsan hendrerit, ex massa volutpat eros, at euismod purus orci at lorem.
58 |
47 |
63 |
64 |
--------------------------------------------------------------------------------
/phppro/p32.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/extras/README.md:
--------------------------------------------------------------------------------
1 | # PHPMailer Extras
2 |
3 | These classes provide optional additional functions to PHPMailer.
4 |
5 | These are not loaded by the PHPMailer autoloader, so in some cases you may need to `require` them yourself before using them.
6 |
7 | ## EasyPeasyICS
8 |
9 | This class was originally written by Manuel Reinhard and provides a simple means of generating ICS/vCal files that are used in sending calendar events. PHPMailer does not use it directly, but you can use it to generate content appropriate for placing in the `Ical` property of PHPMailer. The PHPMailer project is now its official home as Manuel has given permission for that and is no longer maintaining it himself.
10 |
11 | ## htmlfilter
12 |
13 | This class by Konstantin Riabitsev and Jim Jagielski implements HTML filtering to remove potentially malicious tags, such as `
73 |
74 |
75 |
--------------------------------------------------------------------------------
/webdesign_assign/side navigation.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
49 |
50 |
51 |
52 |
Click on the element below to open the side navigation menu.
62 | ☰ open
63 |
64 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/language/phpmailer.lang-ka.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 |
8 | $PHPMAILER_LANG['authenticate'] = 'SMTP შეცდომა: ავტორიზაცია შეუძლებელია.';
9 | $PHPMAILER_LANG['connect_host'] = 'SMTP შეცდომა: SMTP სერვერთან დაკავშირება შეუძლებელია.';
10 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP შეცდომა: მონაცემები არ იქნა მიღებული.';
11 | $PHPMAILER_LANG['encoding'] = 'კოდირების უცნობი ტიპი: ';
12 | $PHPMAILER_LANG['execute'] = 'შეუძლებელია შემდეგი ბრძანების შესრულება: ';
13 | $PHPMAILER_LANG['file_access'] = 'შეუძლებელია წვდომა ფაილთან: ';
14 | $PHPMAILER_LANG['file_open'] = 'ფაილური სისტემის შეცდომა: არ იხსნება ფაილი: ';
15 | $PHPMAILER_LANG['from_failed'] = 'გამგზავნის არასწორი მისამართი: ';
16 | $PHPMAILER_LANG['instantiate'] = 'mail ფუნქციის გაშვება ვერ ხერხდება.';
17 | $PHPMAILER_LANG['provide_address'] = 'გთხოვთ მიუთითოთ ერთი ადრესატის e-mail მისამართი მაინც.';
18 | $PHPMAILER_LANG['mailer_not_supported'] = ' - საფოსტო სერვერის მხარდაჭერა არ არის.';
19 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP შეცდომა: შემდეგ მისამართებზე გაგზავნა ვერ მოხერხდა: ';
20 | $PHPMAILER_LANG['empty_message'] = 'შეტყობინება ცარიელია';
21 | $PHPMAILER_LANG['invalid_address'] = 'არ გაიგზავნა, e-mail მისამართის არასწორი ფორმატი: ';
22 | $PHPMAILER_LANG['signing'] = 'ხელმოწერის შეცდომა: ';
23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'შეცდომა SMTP სერვერთან დაკავშირებისას';
24 | $PHPMAILER_LANG['smtp_error'] = 'SMTP სერვერის შეცდომა: ';
25 | $PHPMAILER_LANG['variable_set'] = 'შეუძლებელია შემდეგი ცვლადის შექმნა ან შეცვლა: ';
26 | $PHPMAILER_LANG['extension_missing'] = 'ბიბლიოთეკა არ არსებობს: ';
27 |
--------------------------------------------------------------------------------
/phpmailer.lang-uk.php:
--------------------------------------------------------------------------------
1 |
6 | * @fixed by Boris Yurchenko
7 | */
8 |
9 | $PHPMAILER_LANG['authenticate'] = 'Помилка SMTP: помилка авторизації.';
10 | $PHPMAILER_LANG['connect_host'] = 'Помилка SMTP: не вдається під\'єднатися до серверу SMTP.';
11 | $PHPMAILER_LANG['data_not_accepted'] = 'Помилка SMTP: дані не прийняті.';
12 | $PHPMAILER_LANG['encoding'] = 'Невідомий тип кодування: ';
13 | $PHPMAILER_LANG['execute'] = 'Неможливо виконати команду: ';
14 | $PHPMAILER_LANG['file_access'] = 'Немає доступу до файлу: ';
15 | $PHPMAILER_LANG['file_open'] = 'Помилка файлової системи: не вдається відкрити файл: ';
16 | $PHPMAILER_LANG['from_failed'] = 'Невірна адреса відправника: ';
17 | $PHPMAILER_LANG['instantiate'] = 'Неможливо запустити функцію mail.';
18 | $PHPMAILER_LANG['provide_address'] = 'Будь-ласка, введіть хоча б одну адресу e-mail отримувача.';
19 | $PHPMAILER_LANG['mailer_not_supported'] = ' - поштовий сервер не підтримується.';
20 | $PHPMAILER_LANG['recipients_failed'] = 'Помилка SMTP: відправлення наступним отримувачам не вдалося: ';
21 | $PHPMAILER_LANG['empty_message'] = 'Пусте тіло повідомлення';
22 | $PHPMAILER_LANG['invalid_address'] = 'Не відправлено, невірний формат адреси e-mail: ';
23 | $PHPMAILER_LANG['signing'] = 'Помилка підпису: ';
24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'Помилка з\'єднання із SMTP-сервером';
25 | $PHPMAILER_LANG['smtp_error'] = 'Помилка SMTP-сервера: ';
26 | $PHPMAILER_LANG['variable_set'] = 'Неможливо встановити або перевстановити змінну: ';
27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
28 |
--------------------------------------------------------------------------------
/PHPMailerAutoload.php:
--------------------------------------------------------------------------------
1 |
8 | * @author Jim Jagielski (jimjag)
9 | * @author Andy Prevost (codeworxtech)
10 | * @author Brent R. Matzelle (original founder)
11 | * @copyright 2012 - 2014 Marcus Bointon
12 | * @copyright 2010 - 2012 Jim Jagielski
13 | * @copyright 2004 - 2009 Andy Prevost
14 | * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
15 | * @note This program is distributed in the hope that it will be useful - WITHOUT
16 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 | * FITNESS FOR A PARTICULAR PURPOSE.
18 | */
19 |
20 | /**
21 | * PHPMailer SPL autoloader.
22 | * @param string $classname The name of the class to load
23 | */
24 | function PHPMailerAutoload($classname)
25 | {
26 | //Can't use __DIR__ as it's only in PHP 5.3+
27 | $filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'class.'.strtolower($classname).'.php';
28 | if (is_readable($filename)) {
29 | require $filename;
30 | }
31 | }
32 |
33 | if (version_compare(PHP_VERSION, '5.1.2', '>=')) {
34 | //SPL autoloading was introduced in PHP 5.1.2
35 | if (version_compare(PHP_VERSION, '5.3.0', '>=')) {
36 | spl_autoload_register('PHPMailerAutoload', true, true);
37 | } else {
38 | spl_autoload_register('PHPMailerAutoload');
39 | }
40 | } else {
41 | /**
42 | * Fall back to traditional autoload for old PHP versions
43 | * @param string $classname The name of the class to load
44 | */
45 | function __autoload($classname)
46 | {
47 | PHPMailerAutoload($classname);
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/examples/send_file_upload.phps:
--------------------------------------------------------------------------------
1 | setFrom('from@example.com', 'First Last');
18 | $mail->addAddress('whoto@example.com', 'John Doe');
19 | $mail->Subject = 'PHPMailer file sender';
20 | $mail->Body = 'My message body';
21 | // Attach the uploaded file
22 | $mail->addAttachment($uploadfile, 'My uploaded file');
23 | if (!$mail->send()) {
24 | $msg .= "Mailer Error: " . $mail->ErrorInfo;
25 | } else {
26 | $msg .= "Message sent!";
27 | }
28 | } else {
29 | $msg .= 'Failed to move file to ' . $uploadfile;
30 | }
31 | }
32 | ?>
33 |
34 |
35 |
36 |
37 | PHPMailer Upload
38 |
39 |
40 |
41 |
45 |
48 |
49 |
--------------------------------------------------------------------------------
/examples/styles/shThemeAppleScript.css:
--------------------------------------------------------------------------------
1 | .syntaxhighlighter.applescript{background:white;font-size:1em;color:black;}
2 | .syntaxhighlighter.applescript div,.syntaxhighlighter.applescript code{font:1em/1.25 Verdana,sans-serif !important;}
3 | .syntaxhighlighter.applescript .code .line{overflow:hidden !important;}
4 | .syntaxhighlighter.applescript .code .line.highlighted{background:#b5d5ff !important;}
5 | .syntaxhighlighter.applescript .color1{color:#000000 !important;}
6 | .syntaxhighlighter.applescript .color2{color:#000000 !important;}
7 | .syntaxhighlighter.applescript .color3{color:#000000 !important;font-weight:bold !important;}
8 | .syntaxhighlighter.applescript .keyword{color:#000000 !important;font-weight:bold !important;}
9 | .syntaxhighlighter.applescript .color4{color:#0000ff !important;font-style:italic !important;}
10 | .syntaxhighlighter.applescript .comments{color:#4c4d4d !important;}
11 | .syntaxhighlighter.applescript .plain{color:#408000 !important;}
12 | .syntaxhighlighter.applescript .string{color:#000000 !important;}
13 | .syntaxhighlighter.applescript .commandNames{color:#0000ff !important;font-weight:bold !important;}
14 | .syntaxhighlighter.applescript .parameterNames{color:#0000ff !important;}
15 | .syntaxhighlighter.applescript .classes{color:#0000ff !important;font-style:italic !important;}
16 | .syntaxhighlighter.applescript .properties{color:#6c04d4 !important;}
17 | .syntaxhighlighter.applescript .enumeratedValues{color:#4a1e7f !important;}
18 | .syntaxhighlighter.applescript .additionCommandNames{color:#0016b0 !important;font-weight:bold !important;}
19 | .syntaxhighlighter.applescript .additionParameterNames{color:#0016b0 !important;}
20 | .syntaxhighlighter.applescript .additionClasses{color:#0016b0 !important;font-style:italic !important;}
21 | .syntaxhighlighter.applescript .spaces{display:inline-block;height:0 !important;font-size:1.75em !important;line-height:0 !important;}
22 |
--------------------------------------------------------------------------------
/language/phpmailer.lang-it.php:
--------------------------------------------------------------------------------
1 |
6 | * @author Stefano Sabatini
7 | */
8 |
9 | $PHPMAILER_LANG['authenticate'] = 'SMTP Error: Impossibile autenticarsi.';
10 | $PHPMAILER_LANG['connect_host'] = 'SMTP Error: Impossibile connettersi all\'host SMTP.';
11 | $PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dati non accettati dal server.';
12 | $PHPMAILER_LANG['empty_message'] = 'Il corpo del messaggio è vuoto';
13 | $PHPMAILER_LANG['encoding'] = 'Codifica dei caratteri sconosciuta: ';
14 | $PHPMAILER_LANG['execute'] = 'Impossibile eseguire l\'operazione: ';
15 | $PHPMAILER_LANG['file_access'] = 'Impossibile accedere al file: ';
16 | $PHPMAILER_LANG['file_open'] = 'File Error: Impossibile aprire il file: ';
17 | $PHPMAILER_LANG['from_failed'] = 'I seguenti indirizzi mittenti hanno generato errore: ';
18 | $PHPMAILER_LANG['instantiate'] = 'Impossibile istanziare la funzione mail';
19 | $PHPMAILER_LANG['invalid_address'] = 'Impossibile inviare, l\'indirizzo email non è valido: ';
20 | $PHPMAILER_LANG['provide_address'] = 'Deve essere fornito almeno un indirizzo ricevente';
21 | $PHPMAILER_LANG['mailer_not_supported'] = 'Mailer non supportato';
22 | $PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: I seguenti indirizzi destinatari hanno generato un errore: ';
23 | $PHPMAILER_LANG['signing'] = 'Errore nella firma: ';
24 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallita.';
25 | $PHPMAILER_LANG['smtp_error'] = 'Errore del server SMTP: ';
26 | $PHPMAILER_LANG['variable_set'] = 'Impossibile impostare o resettare la variabile: ';
27 | //$PHPMAILER_LANG['extension_missing'] = 'Extension missing: ';
28 |
--------------------------------------------------------------------------------
/phppro/p42.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
Error SignUp Please TryAgain Later.
5 |
Record Deleted Successfully
6 |
41 |
42 |
43 |
44 | prepare($sql);
50 | $stmt->bindParam(1,$_GET['delete_id']);
51 | if($stmt->execute()){
52 | echo "";
53 |
54 | }else{
55 | echo "";
56 | }
57 | }
58 |
59 |
60 | ?>
--------------------------------------------------------------------------------
/language/phpmailer.lang-pt.php:
--------------------------------------------------------------------------------
1 |
6 | */
7 |
8 | $PHPMAILER_LANG['authenticate'] = 'Erro do SMTP: Não foi possível realizar a autenticação.';
9 | $PHPMAILER_LANG['connect_host'] = 'Erro do SMTP: Não foi possível realizar ligação com o servidor SMTP.';
10 | $PHPMAILER_LANG['data_not_accepted'] = 'Erro do SMTP: Os dados foram rejeitados.';
11 | $PHPMAILER_LANG['empty_message'] = 'A mensagem no e-mail está vazia.';
12 | $PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: ';
13 | $PHPMAILER_LANG['execute'] = 'Não foi possível executar: ';
14 | $PHPMAILER_LANG['file_access'] = 'Não foi possível aceder o ficheiro: ';
15 | $PHPMAILER_LANG['file_open'] = 'Abertura do ficheiro: Não foi possível abrir o ficheiro: ';
16 | $PHPMAILER_LANG['from_failed'] = 'Ocorreram falhas nos endereços dos seguintes remententes: ';
17 | $PHPMAILER_LANG['instantiate'] = 'Não foi possível iniciar uma instância da função mail.';
18 | $PHPMAILER_LANG['invalid_address'] = 'Não foi enviado nenhum e-mail para o endereço de e-mail inválido: ';
19 | $PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.';
20 | $PHPMAILER_LANG['provide_address'] = 'Tem de fornecer pelo menos um endereço como destinatário do e-mail.';
21 | $PHPMAILER_LANG['recipients_failed'] = 'Erro do SMTP: O endereço do seguinte destinatário falhou: ';
22 | $PHPMAILER_LANG['signing'] = 'Erro ao assinar: ';
23 | $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.';
24 | $PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: ';
25 | $PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: ';
26 | $PHPMAILER_LANG['extension_missing'] = 'Extensão em falta: ';
27 |
--------------------------------------------------------------------------------
/phppro/sm.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
38 |
39 | Submitted Details Name: ".$_POST['fname']." Email : ".$to." Subject:".$subject." Message: ".$message." ";
48 | $result=mail($to,$subject,$msg,$header);
49 | if($result){
50 | echo"Mail Send Successfully";
51 | }
52 | else{
53 | echo"Mail Not Sent ..!!";
54 | }
55 | }
56 | ?>
--------------------------------------------------------------------------------
/examples/smtp_no_auth.phps:
--------------------------------------------------------------------------------
1 | isSMTP();
16 | //Enable SMTP debugging
17 | // 0 = off (for production use)
18 | // 1 = client messages
19 | // 2 = client and server messages
20 | $mail->SMTPDebug = 2;
21 | //Ask for HTML-friendly debug output
22 | $mail->Debugoutput = 'html';
23 | //Set the hostname of the mail server
24 | $mail->Host = "mail.example.com";
25 | //Set the SMTP port number - likely to be 25, 465 or 587
26 | $mail->Port = 25;
27 | //Whether to use SMTP authentication
28 | $mail->SMTPAuth = false;
29 | //Set who the message is to be sent from
30 | $mail->setFrom('from@example.com', 'First Last');
31 | //Set an alternative reply-to address
32 | $mail->addReplyTo('replyto@example.com', 'First Last');
33 | //Set who the message is to be sent to
34 | $mail->addAddress('whoto@example.com', 'John Doe');
35 | //Set the subject line
36 | $mail->Subject = 'PHPMailer SMTP without auth test';
37 | //Read an HTML message body from an external file, convert referenced images to embedded,
38 | //convert HTML into a basic plain-text alternative body
39 | $mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
40 | //Replace the plain text body with one created manually
41 | $mail->AltBody = 'This is a plain-text message body';
42 | //Attach an image file
43 | $mail->addAttachment('images/phpmailer_mini.png');
44 |
45 | //send the message, check for errors
46 | if (!$mail->send()) {
47 | echo "Mailer Error: " . $mail->ErrorInfo;
48 | } else {
49 | echo "Message sent!";
50 | }
51 |
--------------------------------------------------------------------------------