Hi all,
I have a problem with sending emails. If i use this, -
<img src=\"http://www.vipventa.com/imgs/logovn.gif\">
-
This work fine in the emails.
but why this dont work? -
<th height=\"170\" scope=\"col\" background=\"http://www.vipventa.com/imgs/fondoCabeza.gif\">
-
I post me code. 11 4850 pbmods 5,821
Recognized Expert Expert
Changed thread title to better describe the problem (did you know that threads with the word 'problem' in their title actually get FEWER responses?).
Heya, TomasART.
Try using 'style=\"backgr ound:url('...') ;\"' instead of 'background=\". ..\"'.
pbmods
Changed thread title to better describe the problem (did you know that threads with the word 'problem' in their title actually get FEWER responses?).
Heya, TomasART.
Try using 'style=\"backgr ound:url('...') ;\"' instead of 'background=\". ..\"'.
pbmods
I'am sorry. My inglish is very bad. I do undestand all but i'am not able to express me good.
Thanks for your help. Very very thanks.
Changed thread title to better describe the problem (did you know that threads with the word 'problem' in their title actually get FEWER responses?).
Heya, TomasART.
Try using 'style=\"backgr ound:url('...') ;\"' instead of 'background=\". ..\"'.
pbmods
Do the same. Don't work. Don't error. Do nothing. -
<td height=\"192\" 'style=\"background:url('http://www.vipventa.com/imgs/fondopie.gif');\"'><table width=\"494\" height=\"160\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
-
ak1dnar 1,584
Recognized Expert Top Contributor
Try these headers instead of yours.
[PHP] $cabeceras = 'MIME-Version: 1.0' . "\r\n";
$cabeceras .= 'From: consultas@vipve nta.com' . "\r\n";
$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
[/PHP]
Try these headers instead of yours.
[PHP] $cabeceras = 'MIME-Version: 1.0' . "\r\n";
$cabeceras .= 'From: consultas@vipve nta.com' . "\r\n";
$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
[/PHP]
If i use this header, i recive the html code as text in the email.
ak1dnar 1,584
Recognized Expert Top Contributor
If i use this header, i recive the html code as text in the email.
Hi TomasART,
Sorry I didn't get you properly.
does it works or still having the problem?
Hi TomasART,
Sorry I didn't get you properly.
does it works or still having the problem?
NO, don't work.
Thanks :(
ak1dnar 1,584
Recognized Expert Top Contributor
Avoid passing other <HTML> codes like CSS.Just insert your <table> to the mail body
[PHP]
$body = '
<table width="519" border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#A A0022">
<tr>
<th height="19" colspan="4" bordercolor="#5 58DD8" bgcolor="#13218 C" scope="row" background="URL _FOR_THE_IMAGE" >th>
</tr>
</table> ';
[/PHP]
and send the body with other parameters.
[PHP]
$to = 'tomail@domain. com';
$subject = "Contact us";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= "Reply-to: replymail@domai n.com\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: FROM NAME <info@domain.co m>' . "\r\n";
$result = @mail($to, $subject, $body, $headers);
if($result)
{
header('Locatio n: thanks.html');
}else
{
header('Locatio n: failure.html');
}
[/PHP]
Avoid passing other <HTML> codes like CSS.Just insert your <table> to the mail body
[PHP]
$body = '
<table width="519" border="0" align="left" cellpadding="0" cellspacing="0" bordercolor="#A A0022">
<tr>
<th height="19" colspan="4" bordercolor="#5 58DD8" bgcolor="#13218 C" scope="row" background="URL _FOR_THE_IMAGE" >th>
</tr>
</table> ';
[/PHP]
and send the body with other parameters.
[PHP]
$to = 'tomail@domain. com';
$subject = "Contact us";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= "Reply-to: replymail@domai n.com\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: FROM NAME <info@domain.co m>' . "\r\n";
$result = @mail($to, $subject, $body, $headers);
if($result)
{
header('Locatio n: thanks.html');
}else
{
header('Locatio n: failure.html');
}
[/PHP]
Thanks for your time. I will try it.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Markus Mohr |
last post by:
Hi, everyone,
I have a special problem:
For every monitor resolution in 200 pixel steps from 800 to 1600
pixels I have an image to be shown as centered background-image.
Those images all have the same name and reside in the following
physical path structure:
|
by: Erik Schulp |
last post by:
Hi all,
I am using a background image via a stylsheet.
I've used this code: background-image:url("/images/tile.gif"); (which
I think is correct)
The image doesn't show up however, the path, the filename etc etc,
everything checks out ok.
|
by: ribinha |
last post by:
Hi all,
I am having problems loading background images on my pages. I have
created a css to display the images. It works just fine on my test box,
but when I tried on real pages it wont upload any images everythin else
displays just fine. I used a table and added a background image to
every row. when i call the page it shows that it is...
|
by: johkar |
last post by:
I have two problems I cannot work out in the following tab code with
Netscape 6. Problems are marked with all cap comments. One is that
the background image is not shown in NS 6 (two places in CSS). The
second problem is that the top right rounded corner is not showing up
in the Tier 2 tabs. Could you have a look and tell me if it is...
|
by: Jeb Hunter |
last post by:
Well, how can I describe this succinctly? I have a page with DIVs that us
background images to produce a border effect. It works perfectly well, but
I want to make up (for now) 3 different border/background effects. Rather
than duplicate the entire chunk of CSS 3 times, I thought "Gee, I should
only have to specify the 3 backgrounds (all...
| |
by: Michael |
last post by:
Is there a way to specify a background-image for a html table cell in a
theme's css file. I know a lot of things I can't do... can't figure out one
that I can do:
1) ~/ Images/logo.gif doesn't work since it isn't a server side control.
2) /Images/logo.gif doesn't work, not sure why.
3) Images/logo.gif doesn't work - This can work...
|
by: tshad |
last post by:
I have some emails I am sending from my .aspx pages. These pages are .htm
pages that work fine in outlook and show all my images correctly. But from
my dslextreme and yahoo accounts they don't. I have a "base href" statement
in my page, but for some reason Yahoo and Dslextreme is deleting it.
How do I get them to keep this line? I don't...
|
by: Rob |
last post by:
Hello,
I'm sure this has come up before. I have need for a collection of all
elements/objects in an HTML document that have any kind of an
attribute (HTML or CSS) that is making use of a URL to display an
image. document.images only seems to reference image tags. The
collection needs to include background images, input type = image,...
|
by: tlonthedl |
last post by:
Hi,
I am designing a theme for a wordpress blog and I am having some problems with repeating background images.
Specifically, the background image will not show or repeat in the body, or in the sidebar. I realize this could be a php problem but I wanted to check and make sure it wasn't a css issue first. The repeating image will work in the...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |