Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Include a image on a email sent by PHP
Old 02-12-2010, 07:31 AM Include a image on a email sent by PHP
xela1966's Avatar
Super Talker

Posts: 135
Name: Baptista
Location: Alvor, Algarve Portugal
Trades: 0
Any one can show here how can we send a image on the "$content", sent by php line below????

mail($_POST['email'],'Tittle goes here',$content,"From: $email\nX-Mailer: PHP 4.x");

Thanks
__________________
Algarve Holidays
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
xela1966 is offline
Reply With Quote
View Public Profile Visit xela1966's homepage!
 
 
Register now for full access!
Old 02-12-2010, 07:33 AM Re: Include a image on a email sent by PHP
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
<img src="url_of_image" >
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-12-2010, 07:57 AM Re: Include a image on a email sent by PHP
xela1966's Avatar
Super Talker

Posts: 135
Name: Baptista
Location: Alvor, Algarve Portugal
Trades: 0
Hi chris,

The img link goes but it doesn't show the image.
I think I tried that before and didn't work.
what I mean is to have the image inclueded and opened not only the link.
I add a search and I never found the way????

Thanks
__________________
Algarve Holidays
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
xela1966 is offline
Reply With Quote
View Public Profile Visit xela1966's homepage!
 
Old 02-12-2010, 09:35 AM Re: Include a image on a email sent by PHP
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Some email clients will block images. Do you want to display the image or attach it to the email?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-12-2010, 09:45 AM Re: Include a image on a email sent by PHP
xela1966's Avatar
Super Talker

Posts: 135
Name: Baptista
Location: Alvor, Algarve Portugal
Trades: 0
I would like to display the image in the email box of the client, the logo.
I have a nice email content, sent to the client but it is only text, I think it will be good to display the campany logo.
__________________
Algarve Holidays
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
xela1966 is offline
Reply With Quote
View Public Profile Visit xela1966's homepage!
 
Old 02-12-2010, 09:52 AM Re: Include a image on a email sent by PHP
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
but it is only text
It will have to be sent as HTML format to show any images.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-12-2010, 10:11 AM Re: Include a image on a email sent by PHP
xela1966's Avatar
Super Talker

Posts: 135
Name: Baptista
Location: Alvor, Algarve Portugal
Trades: 0
At the moment I make something like this:
<?php
$content = "

<Ima goes here (The idea is to display the image here on the client email)>

Your Neme: ".$formname.",

Your email: ".$useremail.".

Thank you
";

mail($_POST['email'],'Tittle goes here',$content,"From: $email\nX-Mailer: PHP 4.x");
?>

Then the above line sends the email.

It's this possible, to send the image there or not as I been searching but no luck.
__________________
Algarve Holidays
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
xela1966 is offline
Reply With Quote
View Public Profile Visit xela1966's homepage!
 
Old 02-19-2010, 09:36 AM Re: Include a image on a email sent by PHP
xela1966's Avatar
Super Talker

Posts: 135
Name: Baptista
Location: Alvor, Algarve Portugal
Trades: 0
Is this not possible????
__________________
Algarve Holidays
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
xela1966 is offline
Reply With Quote
View Public Profile Visit xela1966's homepage!
 
Old 02-19-2010, 10:26 AM Re: Include a image on a email sent by PHP
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Yes.

You simply put the HTML code for an image where you want it to appear.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-19-2010, 10:52 AM Re: Include a image on a email sent by PHP
Super Talker

Posts: 111
Trades: 0
Hi,

To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

For more info, see manual http://php.net/manual/en/function.mail.php
__________________

Please login or register to view this content. Registration is FREE
- PHP/MySQL, XHTML/CSS, Ajax Development.


Please login or register to view this content. Registration is FREE
vasam is offline
Reply With Quote
View Public Profile
 
Old 02-21-2010, 01:59 PM Re: Include a image on a email sent by PHP
Webalized's Avatar
Experienced Talker

Posts: 33
Trades: 0
right, make sure you include that content type part.
__________________

Please login or register to view this content. Registration is FREE

Webalized is offline
Reply With Quote
View Public Profile
 
Old 03-01-2010, 03:47 PM Re: Include a image on a email sent by PHP
xela1966's Avatar
Super Talker

Posts: 135
Name: Baptista
Location: Alvor, Algarve Portugal
Trades: 0
Got it.

Thanks for your help
__________________
Algarve Holidays
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
xela1966 is offline
Reply With Quote
View Public Profile Visit xela1966's homepage!
 
Reply     « Reply to Include a image on a email sent by PHP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.42048 seconds with 12 queries