473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

PHP Mail

Hi,

I have below code:

<html>
<head>
<title>Contacting Worldpay, Please wait.......</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body text="#CCCCCC">
<?php

$basketvalues = array_values($HTTP_POST_VARS);
$basketkeys = array_keys($HTTP_POST_VARS);
$totalitems=((count($basketkeys))-17)/11;
$instId = $basketvalues[array_search("instId", $basketkeys, true)];
$cartId = $basketvalues[array_search("cartId", $basketkeys, true)];
$cost = $basketvalues[array_search("cost", $basketkeys, true)];
$currency = $basketvalues[array_search("currency", $basketkeys, true)];
$desc = $basketvalues[array_search("desc", $basketkeys, true)];
$country = $basketvalues[array_search("country", $basketkeys, true)];
$name = $basketvalues[array_search("name", $basketkeys, true)];
$address = $basketvalues[array_search("address", $basketkeys, true)];
$postcode = $basketvalues[array_search("postcode", $basketkeys, true)];
$tel = $basketvalues[array_search("tel", $basketkeys, true)];
$email = $basketvalues[array_search("email", $basketkeys, true)];
?>
<form name='worldform1' method='post'
action='https://select.worldpay.com/wcc/transaction'>
<input type="hidden" name="instId" value="<?php echo $instId ?>">
<input type="hidden" name="cartId" value="1234">
<input type="hidden" name="cost" value="<?php echo $cost ?>">
<input type="hidden" name="currency" value="<?php echo $currency ?>">
<input type="hidden" name="desc" value="<?php echo $desc ?>">
<input type="hidden" name="country" value="<?php echo $country ?>">
<input type="hidden" name="name" value="<?php echo $name ?>">
<input type="hidden" name="address" value="<?php echo $address ?>">
<input type="hidden" name="postcode" value="<?php echo $postcode ?>">
<input type="hidden" name="county" value="<?php echo $county ?>">
<input type="hidden" name="tel" value="<?php echo $phone ?>">
<input type="hidden" name="email" value="<?php echo $email ?>">
<input type="hidden" name="testMode" value="101">
</form>

<font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">
<script language="Javascript">
document.worldform1.submit();
</script>
<br><br>Contacting WorlPay Secure Payment Server<br>
Please Wait ....</font>
<?php
echo "Total Items: $totalitems <br>";
$toadd="ma**@mail.com";
$subject="Subject";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ma**@mail.com\nReply-To: ma**@mail.com\n";
$message ="<html>

<head>
<title>Carpet Runners</title>
</head>
<body>

Cart ID $cartId<br>
Cost $cost<br>
Currency $currency<br>
<br>
Invoice Name $name<br>
Invoice Address $address<br>
Invoice Postcode $postcode<br>
Invoice Email $email<br>
<br>
Delivery Name $delvName<br>
Delivery Address $delvAddress<br>
Delivery Postcode $delvPostcode<br>
Delivery E-Mail $delvEmail<br>
Delivery Telephone $delvPhone<br>
<br><br>
<table>";

$message .= "<tr><td>Total</td></tr>\n";
$message .= "<tr>";
for ($n=0;$n<$totalitems;$n++){
$ss = $n+1;
$sss = "total$ss";
$message .= "<td>".$basketvalues[array_search($sss, $basketkeys,
true)]."</td>";
$message .= "</tr>";
$message .= "\n";
}
$message .= "</table></body></html>";
echo $message;
?>

<?php
if (mail($toadd, $subject, $message, $headers)){
echo "Thankyou ".$dealname."<br>";
echo "Mail has been sent to Stairrods USA with your order<br>";
}
else
{
echo "Mail send failure.<br>";
}
?>
</body>
</html>

I get the e-mails, but the total isn't being shown. I believe:

$message .= "<td>".$basketvalues[array_search($sss, $basketkeys,
true)]."</td>";

is the code that displays the total, but it doesn't show up in the e-mail.
The top part works i.e. everything up to the one line of code above, then
nothing is displayed.

Please help, and many thanks ina dvance.

pee2pee

-----------------------------
http://janusz.monkey-it.co.uk
Jul 17 '05 #1
6 4193
I honestly think you should just post the relevent part of your code. Sorry
I couldn't be of much help.

sanjay
"pee2pee" <no*********@you.com> wrote in message
news:3f*********************@news.dial.pipex.com.. .
| Hi,
|
| I have below code:
|
| <html>
| <head>
| <title>Contacting Worldpay, Please wait.......</title>
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
| </head>
| <body text="#CCCCCC">
| <?php
|
| $basketvalues = array_values($HTTP_POST_VARS);
| $basketkeys = array_keys($HTTP_POST_VARS);
| $totalitems=((count($basketkeys))-17)/11;
| $instId = $basketvalues[array_search("instId", $basketkeys, true)];
| $cartId = $basketvalues[array_search("cartId", $basketkeys, true)];
| $cost = $basketvalues[array_search("cost", $basketkeys, true)];
| $currency = $basketvalues[array_search("currency", $basketkeys, true)];
| $desc = $basketvalues[array_search("desc", $basketkeys, true)];
| $country = $basketvalues[array_search("country", $basketkeys, true)];
| $name = $basketvalues[array_search("name", $basketkeys, true)];
| $address = $basketvalues[array_search("address", $basketkeys, true)];
| $postcode = $basketvalues[array_search("postcode", $basketkeys, true)];
| $tel = $basketvalues[array_search("tel", $basketkeys, true)];
| $email = $basketvalues[array_search("email", $basketkeys, true)];
| ?>
| <form name='worldform1' method='post'
| action='https://select.worldpay.com/wcc/transaction'>
| <input type="hidden" name="instId" value="<?php echo $instId ?>">
| <input type="hidden" name="cartId" value="1234">
| <input type="hidden" name="cost" value="<?php echo $cost ?>">
| <input type="hidden" name="currency" value="<?php echo $currency ?>">
| <input type="hidden" name="desc" value="<?php echo $desc ?>">
| <input type="hidden" name="country" value="<?php echo $country ?>">
| <input type="hidden" name="name" value="<?php echo $name ?>">
| <input type="hidden" name="address" value="<?php echo $address ?>">
| <input type="hidden" name="postcode" value="<?php echo $postcode ?>">
| <input type="hidden" name="county" value="<?php echo $county ?>">
| <input type="hidden" name="tel" value="<?php echo $phone ?>">
| <input type="hidden" name="email" value="<?php echo $email ?>">
| <input type="hidden" name="testMode" value="101">
| </form>
|
| <font color="#000000" size="2" face="Verdana, Arial, Helvetica,
sans-serif">
| <script language="Javascript">
| document.worldform1.submit();
| </script>
| <br><br>Contacting WorlPay Secure Payment Server<br>
| Please Wait ....</font>
|
|
| <?php
| echo "Total Items: $totalitems <br>";
| $toadd="ma**@mail.com";
| $subject="Subject";
| $headers = "MIME-Version: 1.0\r\n";
| $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
| $headers .= "From: ma**@mail.com\nReply-To: ma**@mail.com\n";
| $message ="<html>
|
| <head>
| <title>Carpet Runners</title>
| </head>
| <body>
|
| Cart ID $cartId<br>
| Cost $cost<br>
| Currency $currency<br>
| <br>
| Invoice Name $name<br>
| Invoice Address $address<br>
| Invoice Postcode $postcode<br>
| Invoice Email $email<br>
| <br>
| Delivery Name $delvName<br>
| Delivery Address $delvAddress<br>
| Delivery Postcode $delvPostcode<br>
| Delivery E-Mail $delvEmail<br>
| Delivery Telephone $delvPhone<br>
| <br><br>
| <table>";
|
| $message .= "<tr><td>Total</td></tr>\n";
| $message .= "<tr>";
| for ($n=0;$n<$totalitems;$n++){
| $ss = $n+1;
| $sss = "total$ss";
| $message .= "<td>".$basketvalues[array_search($sss, $basketkeys,
| true)]."</td>";
| $message .= "</tr>";
| $message .= "\n";
| }
| $message .= "</table></body></html>";
| echo $message;
| ?>
|
| <?php
| if (mail($toadd, $subject, $message, $headers)){
| echo "Thankyou ".$dealname."<br>";
| echo "Mail has been sent to Stairrods USA with your order<br>";
| }
| else
| {
| echo "Mail send failure.<br>";
| }
| ?>
| </body>
| </html>
|
| I get the e-mails, but the total isn't being shown. I believe:
|
| $message .= "<td>".$basketvalues[array_search($sss, $basketkeys,
| true)]."</td>";
|
| is the code that displays the total, but it doesn't show up in the e-mail.
| The top part works i.e. everything up to the one line of code above, then
| nothing is displayed.
|
| Please help, and many thanks ina dvance.
|
| pee2pee
|
| -----------------------------
| http://janusz.monkey-it.co.uk
|
|
Jul 17 '05 #2
No worries,

Just thought if I post the page, it would give the code some context,
however here is the main bulk of the code that I am having problems with:

| for ($n=0;$n<$totalitems;$n++){
| $ss = $n+1;
| $sss = "total$ss";
| $message .= "<td>".$basketvalues[array_search($sss, $basketkeys,
| true)]."</td>";
| $message .= "</tr>";
| $message .= "\n";
| }

I want it to show the total sum, but nothing is displayed at all, all I get
is the column heading of total, and nothing else further down the page.

pee2pee

-----------------------------
http://janusz.monkey-it.co.uk
Jul 17 '05 #3
On Fri, 24 Oct 2003 17:03:56 +0100, pee2pee wrote:
No worries,

Just thought if I post the page, it would give the code some context,
however here is the main bulk of the code that I am having problems with:

| for ($n=0;$n<$totalitems;$n++){
| $ss = $n+1;
| $sss = "total$ss";
| $message .= "<td>".$basketvalues[array_search($sss, $basketkeys,
| true)]."</td>";
| $message .= "</tr>";
| $message .= "\n";
| }
| }
I want it to show the total sum, but nothing is displayed at all, all I
get is the column heading of total, and nothing else further down the
page.

pee2pee

-----------------------------
http://janusz.monkey-it.co.uk

What's up with how you determine "$totalitems"?

relevant lines:
$basketkeys = array_keys($HTTP_POST_VARS);
$totalitems=((count($basketkeys))-17)/11;

-17? /11 ?? How do you know that you are going to always get a number
that is divisble by 11? looks very odd to me.

What are you trying to do there?

my guess is that the value of $totalitems is getting munged and since
$totalitems is being used in the for() loop you are not getting the output
you are expecting.

later...
--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Johns Hopkins University | Baltimore, MD
Website | http://www.wse.jhu.edu/newtnotes/

Jul 17 '05 #4
Ja,

I don't know why, I just picke up the script and this is where I'm stuck
also! Using static figures though, it still don't work

pee2pee

--

-----------------------------
http://janusz.monkey-it.co.uk
"Jeffrey Silverman" <je*****@jhu.edu> wrote in message
news:pa****************************@jhu.edu...
On Fri, 24 Oct 2003 17:03:56 +0100, pee2pee wrote:
No worries,

Just thought if I post the page, it would give the code some context,
however here is the main bulk of the code that I am having problems with:
| for ($n=0;$n<$totalitems;$n++){
| $ss = $n+1;
| $sss = "total$ss";
| $message .= "<td>".$basketvalues[array_search($sss, $basketkeys,
| true)]."</td>";
| $message .= "</tr>";
| $message .= "\n";
| }
| }
I want it to show the total sum, but nothing is displayed at all, all I
get is the column heading of total, and nothing else further down the
page.

pee2pee

-----------------------------
http://janusz.monkey-it.co.uk

What's up with how you determine "$totalitems"?

relevant lines:
$basketkeys = array_keys($HTTP_POST_VARS);
$totalitems=((count($basketkeys))-17)/11;

-17? /11 ?? How do you know that you are going to always get a number
that is divisble by 11? looks very odd to me.

What are you trying to do there?

my guess is that the value of $totalitems is getting munged and since
$totalitems is being used in the for() loop you are not getting the output
you are expecting.

later...
--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Johns Hopkins University | Baltimore, MD
Website | http://www.wse.jhu.edu/newtnotes/

Jul 17 '05 #5
On Fri, 24 Oct 2003 20:23:53 +0100, pee2pee wrote:
Ja,

I don't know why, I just picke up the script and this is where I'm stuck
also! Using static figures though, it still don't work

pee2pee


I'm sorry but I don't think I have a solution for you.
--
Jeffrey | Silverman
jeffrey-AT-jhu-DOT-edu |
Johns Hopkins University | Baltimore, MD

(Spam Prevention: replace -AT- and -DOT- with @ and . respectively)

Jul 17 '05 #6
Ok let me first start off by saying, whoever wrote that thing should
be drug out in the street and shot.
BTW I'm not going to fix your script, you are
But I'm going to write in the fixes in such a way as that you learn
learn a little PHP,
rather than just copy/paste it, but the fixes to apply will hopefully
be obvious so bear with me
Since you appear to have no idea how this script functions, why don't
we start from scratch and see what happens.
The script starts out with HTML, I'm not a big fan of starting my
scripts the way that this thing is, so lets begin at the beginning.

<?php
/*<?php begins a PHP script, it's a matter of prefference but I try to
only use one call to the preprocessor.
Once my data is ready for output, I try to do it all in one fell swoop
like this
echo <<< EOF
This is my data and I'm proud of it, I can use $Strings and other
$Variables as well as all HTML
About the only thing I can't do inside of this sort of echo is a
function call
EOF;

Now we need to retrieve all of our variables

$basketvalues = array_values($HTTP_POST_VARS);
$basketkeys = array_keys($HTTP_POST_VARS);

//Are wrong the method is deprecated and no longer used

The proper method is
$x=0;
while(list($key,$value)=explode($_POST)){
$basketvalues[$x] = $value;
$basketkeys[$x] = $key;

/*Also looking forward we can see we will be posting this information
to a form, rather than duplicate our efforts, lets make a part of that
form right now.*/
$form .="<input type = \"hidden\" name=\"$key\" value=\"$value\">";
$x++; //Finally increment x
}

/*Alot of this was a little bit pointless by the way because the
simplest thing would be to just use extract, since we really don't
need to create the arrays basketvalues and basketkeys, so to prove a
point I will put in the following line, even though I usually consider
it sloppy, but for berevity we will use it anyways*/

extract($_POST);

//And unless you are offering items without an associated cost
$totalitems = count($cost);

/* Those two lines replace ALL of the code contained in this comment,
as well as negating all the other calls to BasketValues and BasketKeys

$totalitems=((count($basketkeys))-17)/11;
$instId = $basketvalues[array_search("instId", $basketkeys, true)];
$cartId = $basketvalues[array_search("cartId", $basketkeys, true)];
$cost = $basketvalues[array_search("cost", $basketkeys, true)];
$currency = $basketvalues[array_search("currency", $basketkeys,
true)];
$desc = $basketvalues[array_search("desc", $basketkeys, true)];
$country = $basketvalues[array_search("country", $basketkeys, true)];
$name = $basketvalues[array_search("name", $basketkeys, true)];
$address = $basketvalues[array_search("address", $basketkeys, true)];
$postcode = $basketvalues[array_search("postcode", $basketkeys,
true)];
$tel = $basketvalues[array_search("tel", $basketkeys, true)];
$email = $basketvalues[array_search("email", $basketkeys, true)];

And so now we have all of our variables*/
/*Next we want to do all of our math operations BEFORE we move on to
form creation*/
for ($n=0;$n<$totalitems;$n++){
$ss = $n+1;
$sss = "total$ss";
$message .= "<td>".$basketvalues[array_search($sss $basketkeys,true)]."</td>";
$message .= "</tr>";
$message .= "\n";
}

/*The above code should gives me nausea looking at it, so what do we
do instead?
Well the first question is to ask what it's doing in the first place.
It's a simple for loop, $n is a dummy counter and as long as it is
less than $totalitems,
it assigns $ss to the value of $n+1
then it creates a new string called $sss (gotta love these descriptive
variables)
next it appends $basketvalues[array_search($sss, $basketkeys)]
to $message in a new HTML column.
Figuring this out will make you a basket case, but lets break it down
even further.

According to PHP.net
array_search: Searches the array for a given value and returns the
corresponding key if successful.
PROTOTYPE: mixed array_search ( mixed needle, array haystack [, bool
strict])
Simplified: Searches haystack for needle and returns the key if it is
found in the array, FALSE otherwise.

So we are searching basketkeys for a key named total$ss with $ss being
the next number we would be counting.

This means on the first iteration of the loop we will be looking in
basketkeys for a key named total1
on the next, we will be looking for total2 etc and so forth.

Since these values are sent to us via post method,
this points to a serious flaw either in this script or the one calling
it.
This can't be right, it seems so counter-intuitive.
But, considering the rest of this script lets go forth with the
assumption the author was correct
and the calling script really IS passing us values with names like
total1, total2 etc.
This is what you should do instead
*/

for ($counter=0;$counter<=$totalitems;$counter++){
/*I am going to make a leap of faith here and assume that $cost is
what the author was orginally intending to return
also there is appearantly no grand total in the code but I will put
one here anyways just so we know*/
$message .="<tr><td>$cost[$counter]</td></tr>";
$Total +=$cost[$counter];
}
$message .="<tr><td>Grand Total :$Total</td></tr>";

Alright that should be enough of a rewrite to get you started. And
your fix is contained in here
I know you probably thought that I was going to rewrite the whole
script
But I'm getting tired, now and I can't guarantee bug free code. Also
the remaining mods to the script, are mostly a
matter of programmers choice.

However here is what I have found is the best way to write, analyze,
rewrite code to keep it easily maintained and understood.

First off decide what you WANT to do. (Obviously, but sometimes it is
forgotten)
Secondly make sure that you set up your data prior to using it.
Thirdly make sure your data is what you expect.
Finally Use your data to the best effect possible.
All of this usually follows the pattern.

Open Script,
Cull data from available sources
Analyze data (Modify,Add, Subtract, Mulitply to / from data)
Utilize Data (This is where you output to screen, mail,
database,whatever)
Close Script

Also make sure you follow best practices when coding, by making sure
your code is well commented and as simple as you can make it.
(not as comment much as my examples but you see the picture)
and also that ALL of your variables are descriptive, 4 letters or more
is my preffered choice.

Well Good Night folks I'm going to bed, please feel free to point out
any mistakes I may have made
With the exception of course of the open and close comments, I'm well
aware my commenting is overkill and would also trigger parse errors
"pee2pee" <no*********@you.com> wrote in message news:<3f*********************@news.dial.pipex.com> ...
Hi,

I have below code:

<html>
<head>
<title>Contacting Worldpay, Please wait.......</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body text="#CCCCCC">
<?php

$basketvalues = array_values($HTTP_POST_VARS);
$basketkeys = array_keys($HTTP_POST_VARS);
$totalitems=((count($basketkeys))-17)/11;
$instId = $basketvalues[array_search("instId", $basketkeys, true)];
$cartId = $basketvalues[array_search("cartId", $basketkeys, true)];
$cost = $basketvalues[array_search("cost", $basketkeys, true)];
$currency = $basketvalues[array_search("currency", $basketkeys, true)];
$desc = $basketvalues[array_search("desc", $basketkeys, true)];
$country = $basketvalues[array_search("country", $basketkeys, true)];
$name = $basketvalues[array_search("name", $basketkeys, true)];
$address = $basketvalues[array_search("address", $basketkeys, true)];
$postcode = $basketvalues[array_search("postcode", $basketkeys, true)];
$tel = $basketvalues[array_search("tel", $basketkeys, true)];
$email = $basketvalues[array_search("email", $basketkeys, true)];
?>
<form name='worldform1' method='post'
action='https://select.worldpay.com/wcc/transaction'>
<input type="hidden" name="instId" value="<?php echo $instId ?>">
<input type="hidden" name="cartId" value="1234">
<input type="hidden" name="cost" value="<?php echo $cost ?>">
<input type="hidden" name="currency" value="<?php echo $currency ?>">
<input type="hidden" name="desc" value="<?php echo $desc ?>">
<input type="hidden" name="country" value="<?php echo $country ?>">
<input type="hidden" name="name" value="<?php echo $name ?>">
<input type="hidden" name="address" value="<?php echo $address ?>">
<input type="hidden" name="postcode" value="<?php echo $postcode ?>">
<input type="hidden" name="county" value="<?php echo $county ?>">
<input type="hidden" name="tel" value="<?php echo $phone ?>">
<input type="hidden" name="email" value="<?php echo $email ?>">
<input type="hidden" name="testMode" value="101">
</form>

<font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">
<script language="Javascript">
document.worldform1.submit();
</script>
<br><br>Contacting WorlPay Secure Payment Server<br>
Please Wait ....</font>
<?php
echo "Total Items: $totalitems <br>";
$toadd="ma**@mail.com";
$subject="Subject";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ma**@mail.com\nReply-To: ma**@mail.com\n";
$message ="<html>

<head>
<title>Carpet Runners</title>
</head>
<body>

Cart ID $cartId<br>
Cost $cost<br>
Currency $currency<br>
<br>
Invoice Name $name<br>
Invoice Address $address<br>
Invoice Postcode $postcode<br>
Invoice Email $email<br>
<br>
Delivery Name $delvName<br>
Delivery Address $delvAddress<br>
Delivery Postcode $delvPostcode<br>
Delivery E-Mail $delvEmail<br>
Delivery Telephone $delvPhone<br>
<br><br>
<table>";

$message .= "<tr><td>Total</td></tr>\n";
$message .= "<tr>";
for ($n=0;$n<$totalitems;$n++){
$ss = $n+1;
$sss = "total$ss";
$message .= "<td>".$basketvalues[array_search($sss, $basketkeys,
true)]."</td>";
$message .= "</tr>";
$message .= "\n";
}
$message .= "</table></body></html>";
echo $message;
?>

<?php
if (mail($toadd, $subject, $message, $headers)){
echo "Thankyou ".$dealname."<br>";
echo "Mail has been sent to Stairrods USA with your order<br>";
}
else
{
echo "Mail send failure.<br>";
}
?>
</body>
</html>

I get the e-mails, but the total isn't being shown. I believe:

$message .= "<td>".$basketvalues[array_search($sss, $basketkeys,
true)]."</td>";

is the code that displays the total, but it doesn't show up in the e-mail.
The top part works i.e. everything up to the one line of code above, then
nothing is displayed.

Please help, and many thanks ina dvance.

pee2pee

-----------------------------
http://janusz.monkey-it.co.uk

Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Merijn Boom | last post by:
Hi there, I'm trying to create an html mail with embedded pictures in it. I run perl on Windows and Red Hat but I cannot get your module (Mail::Sender) to work. I'm just trying to run the...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
3
by: Phil Mc | last post by:
Hi has anyone come accross the problem.... with referance to System.Web.Mail.MailMessage and System.Web.Mail.SmtpMail THIS WORKS FINE mail=new MailMessage(); mail.From =...
3
by: RN | last post by:
I am tired of sending mail from the built-in SMTP service for so many reasons (errors are nondescriptive in the event log, it doesn't let me control which IP address it sends from, and it...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
4
by: J Huntley Palmer | last post by:
How may I setup a proper HTML mail message with embedded href links using PHP, that follows all the MIME rules? Any examples or links would be appreciated. Thanks!
2
by: clevrmnkey | last post by:
I've had nothing but trouble from the System.Net.Mail objects, but I finally need to make them work, and I can't for the life of me see what I'm doing wrong. I pared back my mail transaction to...
6
by: cover | last post by:
I'm using PHP 5 at home w/Apache & MySQL on a test system where I write through a form to a database and also send an email to people on a drop down list. Purpose for this is an electronic log at...
2
by: Ruud | last post by:
Just before leaving for a holiday my collegue modified this script. Now it won't send any body text (The data filled in on the form) and in an error condition it won't send any attachments either....
2
mikek12004
by: mikek12004 | last post by:
Before posting here I google it and saw ablut 30 pages for a solution so I pretty much excluded the obvious things. The code is <?php //now to send the mails to seller...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.