473,322 Members | 1,398 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,322 software developers and data experts.

PHP Mail Script Question

Hey All,
I've been fooling around updating some code I wrote for a website a while ago and part of it involves an appplication.
So, the form submits to a php file in which I send off the data in an email. I'm trying to format it a bit with html, but have one small problem:
Spaces and exclamation points are placed in the middle of the text. Here's an example of what's happening:
[PHP]$emailBody.="<tr><td border=\"0\">HomePhone:</td><td border=\"0\"><b>";
$emailBody.="(".$aHomeArea.") ".$aHomeT."-".$aHomeF;
$emailBody.="</b></td></tr>";[/PHP]

That code comes out:
HomePho! ne: 555-5555

Content-type is set as text/html, charset is utf-8, and encoding is base64.
Any suggestions as to whats going on here?
Mar 7 '08 #1
2 2035
Disregard my question. I was simply incorrectly encoding and decoding the base64.
Mar 8 '08 #2
Markus
6,050 Expert 4TB
Disregard my question. I was simply incorrectly encoding and decoding the base64.
Glad you got it working!
Mar 8 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: pee2pee | last post by:
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...
5
by: Mailer | last post by:
Hello, all, Well, I need to write a mail filter in Python. The filter will be used in shared web hosting environment, so the control over MTA configuration etc is limited. The basic premise,...
2
by: MostlyH2O | last post by:
Hi Folks, I run a small website for a membership organization - and I have created an ASP front end for an access database that allows the board members to manage their membership roster (names,...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
1
by: cartoonsmart | last post by:
Hi I got the following script going; <?php $sendTo = "myemail@myemail.com"; $subject = "My web site reply"; $headers = "From: " . $_POST; $headers .= "<" . $_POST . ">\r\n"; $headers .=...
15
by: Craig Hurley | last post by:
Hello, user@x.com receives an email from user@a.com. I want to forward that email to user@y.com. I want the contents/header to remain intact, with the exception of adding "X-Forwarded-For". ...
1
by: SPJ | last post by:
My previous post was not clear, hence resending this. ------------------------- Hi, I am trying to create new tickets in the ticketing system using python. When I receive new email from a...
5
by: Joker7 | last post by:
Hi, I use the script below to send a email from a contact form but it would be nice if the conformed sent page showed what was sent.Question how can I do this ? Thanks Chris <?php $mailto...
5
by: Henry Stock | last post by:
My ISP provides this sample for an ASP.NET capable email form. If you have any idea about how to do the following, I would greatly appreciate your help. I have a few alterations that I would...
3
by: digitaldiva | last post by:
Hi I am new here and once upon a time I worked with Perl, now I am trying again and need some help: I wrote a Perl script a few years ago that opened an order entry TXT file and sent each...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.