Jump to content

Illasera

Members
  • Content Count

    107
  • Joined

  • Last visited

Posts posted by Illasera

  1. Yes. Perhaps you're already blacklisted, so whatever you do, it wouldn't work. You need to be capable of either removing the protection or at least somehow clear yourself out of it at least for the test.
    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. 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. It would be easier if I had anything different to say... but all I can say is
    Zend_Mail::setDefaultTransport(new Zend_Mail_Transport_Smtp('smtp.yoursite.com'));$mail = new Zend_Mail();$mail->addFrom('youremail@yoursite.com')->setSubject('Message subject')->setBodyText('This is the text of the mail.')->addBcc(array('email1@example.com', 'email2@example.org'))->send();

    	$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. It's all on the linked page... read the notes.
    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. Yes, but the PHP script will easily timeout if it's not in a cron job.But here's another idea... try to add ALL recepients as BCCs.
    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. But that's just it... no API can bypass this, because it's not an API issue. The best you can do (other than having to turn off the protection at the SMTP server) is a cron job in which you sleep() every few emails to avoid triggering the protection. Alternatively, you could (if the host allows it, or you have your own computer to spare) install your own SMTP server, and send your emails from there.
    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. 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.
    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. The first step is to make sure errors are enabled. How long does the script take to finish?ini_set('display_errors', 1);error_reporting(E_ALL);
    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
  9. 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?)?

  10. 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.

  11. Why don't you just create a string that represents the array?
    $mail_products = array("Apple", "Bigger apples", "How do you like them apples");$products_str = "";foreach ($mail_products as $p) {	$products_str .= "$p<br>";}

    $mail_products = array("Apple", "Bigger apples", "How do you like them apples");$products_str = print_r($mail_products, true);

    Then just put $products_str into the mail body.P.S. there is no such thing as the <php> element.

    Why don't you just create a string that represents the array?
    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...?
    P.S. there is no such thing as the <php> element.
    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.
  12. 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?

  13. You didn't make a connection in the same page, each XMLHttpRequest proccess is an entirely new HTTP request. The client processes the JavaScript and makes the request; it is entirely separate to the page containing the JavaScript code. Think about it...
    Understandable :)
    For your second question, you can have a primary request to a page that just responds with an indicator of whether any changes have been made, and if so make a second request for the updated list.
    Huh? I lost you there mate, Can you give me an example please in theory?
  14. 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.

  15. When I install a SSL certificate in IIS I just install the certificate for the IP. The web root is still c:\inetpub\wwwroot, or whatever it started as. For each individual web site or directory or file, I can specify that one directory or file requires an SSL connection. So, I can use a checkbox to say whether index.html needs to be accessed over HTTPS, or if it can also go through HTTP. There aren't two different files. If HTTPS is not required, I can type in the HTTP URL to load the file, and it loads. I can use https instead, and it still loads the same file. It's not looking for another file when the request goes over HTTPS.Now, that being said, it's possible to set up a server to serve SSL content from a different directory. Apache's configuration files let you set up a virtual host for any IP/hostname/port combo, so you can easily set it up so that port 80 has a certain directory as its web root, and port 443 has another. But doing so would mean that you can't just replace the URL with HTTPS, because the file might not exist in the other location. So, I'm not really sure why you would serve content from two different places for the same domain over HTTP or HTTPS, but I guess it's possible.http://www.google.com/search?client=opera&...-8&oe=utf-8
    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 :)
  16. well, one thing at a time. In order to write to a paragraph as you asked, make the paragraph has an id associated with it. Then, you would just a combination of document.getElementById and innerHTML, i.e.
    document.getElementById("elements_id").innerHTML = "your text here";

    I'm not really sure what you're getting at with the rest of your post. Do you have a specific example in mind?

    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.
    This sounds like a homework problem to me.
    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.
  17. Do you have a certificate set up for the IP?
    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.
  18. 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.

  19. 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.

  20. 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.

  21. jQuery is written with JavaScript. jQuery is not a separate language, but simply a library used to make common tasks in JavaScript easier.
    Yea i know its an extension lib, but since it uses slightly different syntax and commands, i treat it as something different.
    That said, anything you do in JavaScript will not refresh the page (unless you explicitly tell it to) so yeah, you'd use onchange, onblur, or onclick events to do your calculations.
    Thanks, Ill give it a go :)
  22. I mean the basics are easy, you just have to try. I assume you just need a form to enter values and display the results, and a function that will take the values and calculate the output. There's a tutorial on forms at W3schools, and that's just basic markup. The function would run then the submit button is clicked, and would just use docuement.getElementById to get the values of the form's, and then like Ingolme said, the rest is just basic math.
    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 :)
  23. sorry to say, that's probably not going to yield much help from anyone around here.
    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...