Jump to content

Illasera

Members
  • Content Count

    107
  • Joined

  • Last visited

Everything posted by Illasera

  1. Illasera

    TimeOut or Spam

    Am not sure i am blacklist since i can send/receive mails, And i can`t "remove" the protection since am hiring the SMTP service from a shared servers company, i need a VPS/Cloud for it i believe, More $
  2. Illasera

    TimeOut or Spam

    well the first example doesn`t work, it seems to be launching the mail send request, But nothing seems to happen, You think maybe its getting blocked by the mailing servers?The second example only send the mail to the first client on the list.
  3. Illasera

    TimeOut or Spam

    $mail_list=array(); $mail = new Zend_Mail('UTF-8'); while($Row = mysql_fetch_array($Mail_Result)) { $transport = new Zend_Mail_Transport_Smtp('mail.domain.com', $config); $pr_Mail_ID = $Row['IdMail']; $pr_Mail_Address = $Row['MAIL']; $pr_WantNews = $Row['WantMail']; $pr_MailMd5 = md5($pr_Mail_Address); if($pr_WantMail != 1) continue; $mail_list[$Num_Mail_Sent] = $pr_Mail_Address; $Num_Mail_Sent++; $mail_subject = 'test'; $mail_Header = $mail_Body; $mail->addHeader('Content-Language', 'en'); $mail->addHeader('Content-Type', 'multipart/mixed'); $mail->setHeaderEncoding(Zend_Mime::ENCODING_BASE64); $mail->setBodyHtml($mail_Header, 'UTF-8', Zend_Mime::MULTIPART_MIXED); $mail->setFrom('info@domain.com', 'info@domain.com');// $mail->addBcc($pr_Mail_Address, $pr_Mail_Address); $mail->addBcc($mail_list, $mail_list); $mail->setSubject($mail_subject); try { echo "try send mail "; $mail->send($transport); } catch (Zend_Mail_Transport_Exception $e) { echo "$e"; } } and how do i convert it to dynamic array without getting "Notice: Array to string conversion in /var/www/vhosts/Domainl/httpdocs/Zend/Mail.php on line 995And i am guessing it fail to send since am not getting the mail.For some reasons, my code edits doesn`t get edit
  4. Illasera

    TimeOut or Spam

    Nope, I don`t get it or fail to understand, Isn`t easier to write it instead of telling me to re-read it as it clear from my post that i already had?
  5. Illasera

    TimeOut or Spam

    Ok, i want to add BCC as you suggested, How do i write the correct syntax, How is ZEND API parser handles it?, Comma seperated?
  6. Illasera

    TimeOut or Spam

    Well basicly the server am hosting on isn`t a cloud server and they are very strict (Won`t let me change anything), And i dont have a pc that can be used a server, Can`t i dictate the mail sending paradigm to sleep() myself after few mails?
  7. Illasera

    TimeOut or Spam

    BTW, Any ways to bypass the problem, I fear my Mailing service provider will tell me "Sorry, Can`t help",My top priority is to bypass without swapping to other mailing APIs.
  8. Illasera

    TimeOut or Spam

    pffff, I am paying for the SMTP server per month to "forget the protection"I contacted them before i posted here but i have yet to recieve an answer, I just came here to verify.
  9. Illasera

    TimeOut or Spam

    After 27 mails ~120 seconds.*FakeDomain = alias for real domain.*FakeIP = Alias for real IPFatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message '421 4.0.0 Intrusion prevention active for [FakeIp] ' in /var/www/vhosts/FakeDomain.com/httpdocs/Zend/Mail/Protocol/Abstract.php:378 Stack trace: #0 /var/www/vhosts/FakeDomain.com/httpdocs/Zend/Mail/Protocol/Smtp.php(199): Zend_Mail_Protocol_Abstract->_expect(220, 300) #1 /var/www/vhosts/FakeDomain.com/httpdocs/Zend/Mail/Transport/Smtp.php(196): Zend_Mail_Protocol_Smtp->helo('localhost') #2 /var/www/vhosts/FakeDomain.com/httpdocs/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail() #3 /var/www/vhosts/FakeDomain.com/httpdocs/Zend/Mail.php(973): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail)) #4 /var/www/vhosts/FakeDomain.com/httpdocs/sale_of_the_month_august_2011.php(248): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp)) #5 {main} thrown in /var/www/vhosts/FakeDomain.com/httpdocs/Zend/Mail/Protocol/Abstract.php on line 378
  10. Illasera

    TimeOut or Spam

    How do i find out the script isn`t timing out, I am unable to invoke any errors, and the script doesnt seems to reach the end, How do i verify it with my own eyes (Trigging the error code?)?
  11. Illasera

    TimeOut or Spam

    I am trying to send mail (Using Zend mail API and a valid SMTP server) to send over 800 clients, but the process seems to be aborted after ~25 mailsAnyone have any idea why? The function simply go through the SQL database and send mails untill no more clients left to query.Thanks in advance.
  12. Illasera

    A loop within mail

    I don`t understand, The reason i am using an array, Is because i need to query a list of products from each user and send it via mail.Unless there is some sort of mathod to undo the array combination and just resolve it into a simple string?like so : $Test = array("help", "me");$Test_String = Some sort of function to convert the array into 1 long simple string...? I believe that once you save your file as a .php, Your file is actually getting parsed by a php parser, and once it reaches a php tag,It start parsing the syntax in its own special way.
  13. Illasera

    A loop within mail

    Hey all, I am sending mail via ZendMail, And i wish to know how to list of products in the mail body,Consider the following example, I have an array of string written in php, And i wish to display them in my mail body,How do i achieve that? I can`t call php functions/operators within the mail, What do i need to do, Here is an example : // Mail php array.<?php$mail_Products = array("Apple", "Bigger apples", "How do you like them apples");?><!-- Mail body --><html><!-- rquired Start & end tags -->$mail_Products = Will display "Array"</html> foreach/list = I can`t call since i can`t parse php operator within html.print_r = I can`t call since i cant parse php functions within html.I can`t use <php /> tags as well, since i cant parse server data within mail unless its pre-processed.Any ideas?
  14. Understandable Huh? I lost you there mate, Can you give me an example please in theory?
  15. Hey everyone, Few questions : 1.)When i include a php page via ajax, Am trying to query data from mySQL server, for some reason i need to re-establish connection to mySQL server.However, I already established my connection in my Header file which i include at the start of each file.Here is my example : Header.php - Included in each file. // Relavent connection code $connection_request = mysql_connect("localhost","username","Password"); mysql_select_db("database", $connection_request);...// Relavent Ajax included codefunction Cart_QuickDisplay(){if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("Display").innerHTML=xmlhttp.responseText; } }xmlhttp.open("GET","http://Domain_Name/getuser.php",true); // In this page, i need to make a new connection to mySQL server, although i already made connection in the same page, few code lines ago.xmlhttp.send();} My_Shooping_Cart.php <?phpinclude("Header1.php"); // Set connection + define Cart_QuickDisplay() function where we call getuser.php?><!-- Calls getuser.php when onmouseover event is triggered--><a href="My_Shopping_Cart.php" onmouseover="Cart_QuickDisplay()" style="border:0px;"><img src="http://Domain/img/New_Rest/Shopping_Cart-01.jpg" style="margin-top:11px; margin-right:5px; width:16px; height:11px; border:0px; float:right;" /></a> getuser.php <?php// Need to establish connection here again in order to query data from mySQL server, why? getuser.php is a called from My_Shopping_Cart.php which already included the header file where there connection is made?> In getuser.php , I need to make a new connection to mySQL database, allthough its already included inside the header.Diagrem : My_Shopping_Cart.php(Includes Header.php, Calls getuser.php)Header : (Establish connection to mySql Server, Defines the ajax caller function to getuser.php)My question is : why getuser.php which is been called from My_Shopping_Cart.php where header is included (The place where mySQL connection is made), needs to establish the connection once again?2.) : "My shopping cart button" queries my cart products everytime i set my mouseover it via ajax(onmouseover) - just like i intended to, However, Is there a way to check if any changes were made since the last time the client overmoused the button to query the shopping cart porduct list?Think about a cache paradigm, Data first time stored in cache, If 2nd time accessed, Check if data has changed, if so update the cache index with new values, if not, Load unchanged values directly from cache.
  16. Illasera

    Http->Https

    I understand the fact that https is just a protocol and it doesnt require different page content, The only thing that is different is the encryption and the handshaking mathod.Why would i serve content from two difference places for the same domain? That`s what the host allows me, I have no access to any of the server config files or settings.. nor a special checkbox for secured/un-secured files...I dont recall if i wrote it before but , I didnt set up my SSL, my webhosting company did it for me... (Yea, sometimes i wish i could have used a virtual server, but i don`t).Thanks mate
  17. Illasera

    Fast Calc

    I can only give you an example from the C++ programming language, where its called "Overloaded operator/function,You take an object, And you inherit its default behaviour, Yet you can change some of the object aspects, (This is called OOP - Object-oriented programming).Here is my example,Say i have an input text box.And when the user gets focus on it, It`s changes the input text box areacolor to black.Now there should be 2 ways to achieve that goal.1.)onchange event trigger some function.2.)overwriting the onchange default behaviour (Making a new object from an old object in simplicity) to do my own special function. (Can i do that, Since javascript should be OOP, i dont see why not)?Now my question is, If i can overwrite objects, How do i do that(What`s the correct syntax in javascript for doing it, The toturials lack that info).Thanks guys. Am way over my student years mate :)And believe me mate, What i am trying to do is way more complex than what i have written in my original post, I was just trying to simplfy it to get the basics.
  18. Illasera

    Http->Https

    Yes,and sorry, Plesk* is the right word, Meaningless name but ok.Now my Root directory have few SubDirectories (SAME ROOT, Few directories within the root), I can only use : Httpdocs directory andhttpSdocs directory (Assuming the S in the name stands for secured).Now, If all the files are going into a single directory, then why not having the entire websites have SSL encryption instead if just the selected pages?There must be someway to separate secured/non secured pages, I am assuming, 2 directories like i have, But i am not sure.Need a bit more clarification mate :)Thanks in advance.
  19. Illasera

    Http->Https

    Hey all, I am hosting a website with an SSL protocol,My website has its own static IP address but it`s not linked via DNS to a domain name yet.At the moment, I am accessing my website via my static IP address,My files are hosted within a foldier named : httpdocs (PLASK interface system).Now i wish to build my Checkout page : (the payment page within my virtual store), So i link my store(Non-secured-httpdocs) to my checkout(secured-httpSdocs)(PLASK interface system).But since all of my pages are in a non-secured protocol and my checkout is, I am not sure how to redirect it, Since when i click the link, its still search for it within the unsecured directory(httpdocs).How do i make the transition between a non-secured page to a secured page.Also, is there anything i should know about how to set-up a secured page or its the same thing as a non-secured page, only the data transfer is encrypted?Thanks in advance.
  20. Illasera

    Fast Calc

    How do i print a value from javascript into a paragraph? I have seen many people post it values inside forms, But i wish to return the values within a paragraph.Also, How do i overwrite certain object behaviour, Say i want all of my input boxes to inherit the default behaviour , yet some events i want to change,But am not talking about calling a different function on each event, but to actually overwrite the event default behaviour?Thanks in advance.
  21. Illasera

    Private Message

    Behind the scane : I wish to know the technical behind the JOIN part, Is JOIN actually append one table to another?Does it actually perform 2 queries when i JOIN a table to another (one from Primary table, and one from secondary)?Does it Resize the primary table according to the JOINed table?in short, How does the server handle the JOIN operation behind the scanes.Thanks in advance.
  22. Illasera

    Fast Calc

    Yea i know its an extension lib, but since it uses slightly different syntax and commands, i treat it as something different. Thanks, Ill give it a go
  23. Illasera

    Fast Calc

    Nice, Thank you, Good pointers there, Do i also need to use Jquery if i wish to prevent refrashes on update? or there are some events like onchange, and stuff that can do the job?Guess i just need to try
  24. Illasera

    Fast Calc

    Yea i figured that much, I wouldn`t help someone else who posted the same thing as well, But no harm in trying, I have a deadline to take into an account,And to study even the basic of JS in such a short notice, Will be hard.The plan was to ask for a ready up code and study it later, But i guess ill figure in some way how to make it, Thanks anyway
×
×
  • Create New...