It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

html emails

Postby webmaster on Fri Sep 02, 2005 8:51 am

joshcxa wrote:Actually I have changed my mind. I like webmasters way of doing it.

I've tried to make a page where you type in the recipients email into a text field instead of having to change the email in the code like your example. But i've failed. (noob) Any ideas please?
If my other example worked, try this for changing the email address:
[php]<?php

if(isset($_POST['submit'])) {

$to = $_POST['email'];
$from = "janedoe@anotherfakedomain.com";
$subject = "This is a test email";
$message = <<<EOF
<html>
<body bgcolor="#ffffff">
<p align="center">
<b>Hello World!</b>
</p>
</body>
</html>
EOF;

$headers = "From: $from\r\n";
$headers .= "Content-type: text/html\r\n";

$success = mail($to, $subject, $message, $headers);
if ($success)
echo "The email to $to from $from was successfully sent";
else
echo "An error occurred when sending the email to $to from $from";

} else {

?>

<form method="post">
Email: <input type="text" name="email" /><br />
<input type="submit" name="submit" value="Send the mail" />
</form>

<?php
}

?>[/php]
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby joshcxa on Sat Sep 03, 2005 6:16 am

thank you very much :D
joshcxa
DEVPPL Lightwave Moderator
User avatar
joshcxa
100+ Club
 
Posts: 156
Joined: Wed Aug 18, 2004 10:59 am
Location: Australia

Re: html emails

Postby Ash on Wed Sep 21, 2005 2:39 pm

joshcxa wrote:How do I create those html emails.
You know the ones that look like a website in your inbox.



I once got someone to send me the source of a page via hotmail and it showed up looking like I was on the website. You may want to try that.
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby NeilC on Mon Oct 03, 2005 2:45 pm

Hey, how do you insert in Outlook 2003? It just sends as an attatchment?

Thanks in advance...

Neil
NeilC
 
Posts: 0
Joined: Mon Oct 03, 2005 2:00 pm

Postby webmaster on Mon Oct 03, 2005 7:38 pm

This is for sending a html-mail using PHP not outlook.
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby Phate on Tue Oct 04, 2005 12:56 am

NeilC wrote:Hey, how do you insert in Outlook 2003? It just sends as an attatchment?

Thanks in advance...

Neil


yes, just create the .html page, save it, then attach it
Web-Developing since '03
Image
User avatar
Phate
500+ Club
 
Posts: 826
Joined: Sun Nov 21, 2004 4:12 am
Location: 127.0.0.1

Postby joshcxa on Wed Jul 12, 2006 7:54 am

I just noticed that when you send to multiple recipients that the receivers see who else gets the e-mail. Any way of masking the recipients?
joshcxa
DEVPPL Lightwave Moderator
User avatar
joshcxa
100+ Club
 
Posts: 156
Joined: Wed Aug 18, 2004 10:59 am
Location: Australia

Postby jfwebmaster on Sun Jul 23, 2006 4:32 pm

Yes, you'll see that there's BCC and CC.
CC stands for 'carbon copy' and if you put names in there, the recipients will be able to see eachother's email address.
I can't remember what BCC stands for, I think it's 'blank carbon copy' and if you put the email addresses in there, the recipient will see there email address and no one elses.
Hope that helps!
jfwebmaster
 
Posts: 14
Joined: Sat Jul 22, 2006 3:37 pm

Postby joshcxa on Tue Jul 25, 2006 5:03 am

blind carbon copy i think

thanks for that
joshcxa
DEVPPL Lightwave Moderator
User avatar
joshcxa
100+ Club
 
Posts: 156
Joined: Wed Aug 18, 2004 10:59 am
Location: Australia

Postby kcain on Tue Aug 22, 2006 9:31 pm

How long can the HTML address be to put in an e-mail??
kcain
 
Posts: 0
Joined: Tue Aug 22, 2006 8:54 pm

PreviousNext

Who is online

Users browsing this forum: No registered users and 6 guests