|
Ah - I forgot about expression. I'll give that one a go. Thanks.
cheers
Chris Maunder
|
|
|
|
|
what about dreamweaver ? my favourite with notepad ++.
|
|
|
|
|
Sublime text... The best!!!
|
|
|
|
|
Seconded, many useful plugins available also!
|
|
|
|
|
Hi,
I am trying to send email from my gmail business and PHPMailer but getting below error. I am 100000% sure about the password because I am able to login using the same passoword.
Here is my code:
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SMTPDebug = 2;
$mail->Debugoutput = 'html';
$mail->Host = "smtp.gmail.com";
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
$mail->SMTPAuth = true;
$mail->Username = "noreply@smashburgerbahrain.com";
$mail->Password = "xxxxxxxxxxxxxxxxx";
$mail->SetFrom("noreply@smashburgerbahrain.com", "Smashurger");
$mail->AddAddress($email_address, $email_address);
$mail->AltBody = 'To view the message, please use an HTML compatible email viewer!';
$mail->Subject = "Welcome to Smashburger";
$mail->Body = $body;
$mail->CharSet = 'UTF-8';
$mail->IsHTML(true);
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message sent!";
}
This is the ERROR:
SMTP -> FROM SERVER:220 smtp.gmail.com ESMTP h108sm5648856qge.21 - gsmtp
CLIENT -> SMTP: EHLO smashburgerbahrain.com
SMTP -> FROM SERVER: 250-smtp.gmail.com at your service, [173.236.137.128]250-SIZE 35882577250-8BITMIME250-STARTTLS250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
CLIENT -> SMTP: STARTTLS
SMTP -> FROM SERVER:220 2.0.0 Ready to start TLS
CLIENT -> SMTP: EHLO smashburgerbahrain.com
SMTP -> FROM SERVER: 250-smtp.gmail.com at your service, [173.236.137.128]250-SIZE 35882577250-8BITMIME250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH250-ENHANCEDSTATUSCODES250-PIPELINING250-CHUNKING250 SMTPUTF8
CLIENT -> SMTP: AUTH LOGIN
CLIENT -> SMTP: bm9yZXBseUBzbWFzaGJ1cmdlcmJhaHJhaW4uY29t
CLIENT -> SMTP: TXVqdGFiYUAyMDE1
SMTP -> ERROR: Password not accepted from server: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbvDK534-5.7.14 AwRHY7MTTkREbKmKJBCJQOfC2xDhFNsnIrFD1l6HD52B9G6PfrlkjRgKPthtSHjMP6SqBB534-5.7.14 --MIzJIGCQR3wBZDisXU6pGtZHEiFvF3q_bUU1S0LRahwyHTxeI1abwnNSlv58jcN63T6b534-5.7.14 KhHnCPneegmwsY-9YPTav-BsQXSc8H-7RqVvBYN25oFPhJk1MUGdYdUCHZcWozp8mP_L9_534-5.7.14 ETMlGC-uTXoAncJ9XLJZSyRZL3PE> Please log in via your web browser and534-5.7.14 then try again.534-5.7.14 Learn more at534 5.7.14 <a href="https://support.google.com/mail/answer/78754">https://support.google.com/mail/answer/78754</a> h108sm5648856qge.21 - gsmtp
CLIENT -> SMTP: quit
SMTP -> FROM SERVER:221 2.0.0 closing connection h108sm5648856qge.21 - gsmtp
SMTP Connect() failed.
Mailer Error: SMTP Connect() failed.
Thanks,
Jassim[^]
Technology News @ www.JassimRahma.com
|
|
|
|
|
Don't use gmail's smtp servers is the short answer.
http://forums.asp.net/post/5825785.aspx[^]
As for your specific problem, the usual issues are that you haven't configured your account to allow mails to be programmatically sent through it, your account is awaiting a "captcha" code and you won't be able to send until you log in manually and clear the code, or in your instance you are sending "from" an account that is not your gmail account which gmail does not allow, you can only send "from" your gmail account. See point 1
|
|
|
|
|
i want to increase background size of .woo-feature and .woo-about in page but after add the CSS the background width increased on window all browsers but its not working on MAC operating system on any of browser.
website link:- http:
CSS I USED:- .woo-feature{margin-left:-13%; margin-right:-13%;}
.woo-about{margin-left:-13%; margin-right:-13%;}
please give me any suggestion where i am wrong and how can i fix it.
Thanks
Gurjit Singh
|
|
|
|
|
This is simple code used in css.
div {
background: url(background.jpg);
background-size: 800px 600px;
background-repeat: no-repeat;
}
If you not want to use background image, remove 1st line of code. You can use background size in "%" also, thats will fits in all browser.
|
|
|
|
|
I am working on asp.net website. In one search page, i have to apend data on window scroll. form is a asp.net form with runat=server tag. I want to call a webmethod of a service or a method of a form, passing serialized form using jquery and get data back
in xml or json format back.I tried few things but getting errors.
is it possible?
can anybody point me to an article which does that?
below is sample code
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Script.Services;
using System.Web.Services;
namespace WebApplication1
{
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
[System.Web.Script.Services.ScriptService]
public class WebService1 : System.Web.Services.WebService
{
[WebMethod]
[ScriptMethod(ResponseFormat=ResponseFormat.Xml)]
public string HelloWorld()
{
DataSet ds = new DataSet();
ds.Tables.Add(new DataTable());
ds.Tables[0].Columns.Add(new DataColumn("PersonId"));
ds.Tables[0].Columns.Add(new DataColumn("PersonName"));
ds.Tables[0].TableName = "Person";
DataRow row = ds.Tables[0].NewRow();
row[0] = "1";
row[1] = "Sunny";
ds.Tables[0].Rows.Add(row);
row = ds.Tables[0].NewRow();
row[0] = "2";
row[1] = "Honey";
ds.Tables[0].Rows.Add(row);
string res = ds.GetXml();
return res;
}
}
}
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AjaxFormPost.aspx.cs" Inherits="WebApplication1.AjaxFormPost" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" language="javascript" src="jquery-1.6.2.min.js"></script>
<script type="text/javascript" language="javascript">
function SearchClick() {
alert('i am in');
var frmValue = $("#form1")
.serialize();
alert(frmValue);
$contentLoadTriggered = true;
$.ajax(
{
type: "POST",
url: "/WebService1.asmx/HelloWorld",
data: frmValue,
async: true,
cache: false,
success: OnSuccess,
failure: function (xhr, textStatus, errorThrown) {
alert("The call to the server side failed. " + xhr.responseText);
alert("The call to the server side failed. " + textStatus);
alert("The call to the server side failed. " + errorThrown);
},
error: function (xhr, textStatus, errorThrown) {
console.log("The call to the server side failed. 2 " + xhr.responseText);
alert("The call to the server side failed. 2 " + xhr.responseText);
alert("The call to the server side failed. 2 " + textStatus);
alert("The call to the server side failed. 2 " + errorThrown);
}
}
)
}
function OnSuccess(response) {
alert(response);
var xmlDoc = $.parseXML(response);
var xml = $(xmlDoc);
var person = xml.find("Person");
alert(person.length);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<table class="container">
<tr class="row">
<td class="control-col">
<label class="control-label" id="lbl1" visible="true">Person:</label>
</td>
<td class="control-col">
<asp:TextBox class="form-control" runat="server" Name="txt1" id="txt1"></asp:TextBox>
</td>
</tr>
<tr class="row">
<td class="control-col">
<label class="control-label" id="lbl2" visible="true">Price:</label>
</td>
<td class="control-col">
<asp:TextBox class="form-control" runat="server" Name="txt2" id="txt2"></asp:TextBox>
</td>
</tr>
<tr class="row">
<td class="control-col"></td>
<td class="control-col">
<asp:Button ID="btnSearch" class="form-control" Width="100px" runat="server" Text="Search" OnClientClick="SearchClick();return false;"/>
</td>
</tr>
</table>
</form>
</body>
</html>
|
|
|
|
|
|
Hello,
Could anyone please tell me the best free technical image resource sites & image without any copyright / under any license as well.
Regards,
Md. Marufuzzaman
|
|
|
|
|
|
What Richard said, sufficed your need.
But, there is another option that you can use. Search under creative commons[^] and select the type of content you are looking for, by license. You can apply the license type and get the content from multiple sources.
Anyways, you have the same feature on Google, just apply the filter for license.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
how to show an loading gif im,age when page loads in web developement
|
|
|
|
|
You can do it with couple of ways with jquery, ajax or with update panel control which ever best suits your need. Search with google you can find sample code there.
modified 20-Sep-20 21:01pm.
|
|
|
|
|
Message Closed
modified 7-Nov-15 8:45am.
|
|
|
|
|
Hello every one, I am working on angular js developing user interface for customer. I need to develop secure authentication for user credentials. While testing my application using (http I am facing this issue: "Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen."
Any help would always welcome regarding secure login.
|
|
|
|
|
With patience...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
You can use Google to find samples and tutorials on the subject.
|
|
|
|
|
If you're going to down-vote everyone who tries to help you, then nobody will try to help you.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Member 11999597 wrote: Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen.
The message is quite clear - you shouldn't accept login credentials over an HTTP connection.
You need to get and install an SSL certificate for your site, and only display the login page over HTTPS. Depending on your requirements, you might be able to get away with a free SSL certificate from StartSSL[^] or Let's Encrypt[^] (when it eventually arrives).
NB: It's not sufficient to just post your login credentials to an HTTPS endpoint. You have to load the page with your login form over HTTPS as well:
Your login form posts to HTTPS, but you blew it when you loaded it over HTTP | Troy Hunt[^]
For a SPA, that might mean that you have to load the entire application over HTTPS.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hello every one, I am working on angular js developing user interface for customer. I need to develop secure authentication for user credentials. While testing my application using (http I am facing this issue: "Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen."
Any help would always welcome regarding secure login.
|
|
|
|
|
what are the steps to learn professional skills in making front-end and back-end of websites? what are the programming languages should i have expertise in? what are other necessary things? And what are sources to learn such stuff?
|
|
|
|
|
programmerinthemaking wrote: what are the steps to learn professional skills The first step is learning how to do your own research. The internet has a wealth of information that Google[^] will help you find. For web development you could start with http://www.w3schools.com/default.asp[^], and maybe http://www.asp.net/[^].
|
|
|
|
|
You will need to start with the basics:
HTML
CSS
Javascript
Here is link that will help you with HTML, CSS and JavaScript - w3schools.
Next you need to decide witch Server-Side framework to use (You need to do some research on which one suit you best), the following are commonly used:
ASP.net/ASP.net MVC
JSP
PHP
After you have good knowledge of the basics, you can have a look at HTML5 (optional)
|
|
|
|