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 joshcxa on Wed Jul 27, 2005 12:18 pm

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

Postby dafunkymunky on Thu Aug 18, 2005 8:57 am

its not possible to send mails using plain html..you need php or asp for that...
--------DAFUNKYMUNKY--------
::THE::NECESSARY::[D]EVIL::
....errr i mean munky....
User avatar
dafunkymunky
100+ Club
 
Posts: 183
Joined: Fri Apr 08, 2005 7:32 am
Location: India

Postby Phate on Thu Aug 18, 2005 5:45 pm

that tutorial will work... it is telling you to make a .html, and attach it to any email, IN YOUR PREVIOUS email software
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 Mon Aug 29, 2005 2:25 am

yeah.
well that seems to work alright for me
joshcxa
DEVPPL Lightwave Moderator
User avatar
joshcxa
100+ Club
 
Posts: 156
Joined: Wed Aug 18, 2004 10:59 am
Location: Australia

Postby joshcxa on Fri Sep 02, 2005 2:33 am

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?
joshcxa
DEVPPL Lightwave Moderator
User avatar
joshcxa
100+ Club
 
Posts: 156
Joined: Wed Aug 18, 2004 10:59 am
Location: Australia

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

PreviousNext

Who is online

Users browsing this forum: No registered users and 5 guests