sending html file

the mail() function

Moderators: macek, egami, gesf

vouillot
New php-forum User
New php-forum User
Posts: 4
Joined: Tue Jan 27, 2004 9:41 am

sending html file

Postby vouillot » Wed Jan 28, 2004 6:04 am

Hello,

Is there someone who can help me out.
I'm trying to send by e mail an HTML page ; I don't want to send it as an attached file, but just as a page.
If you can give me tips.

Thanks :oops:

liquedus
php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Postby liquedus » Sat Jan 31, 2004 6:11 am

yeah, always try google first

vouillot
New php-forum User
New php-forum User
Posts: 4
Joined: Tue Jan 27, 2004 9:41 am

Postby vouillot » Mon Feb 02, 2004 1:34 am

Thanks for the tip, but it's kind of first thing I did.
What exactly I want to do is :
I have this f. html built by someone else and saved someplace. I would like to use this page to be my body mail. And I can't find anything about it.

If you have any idea...

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Postby swirlee » Mon Feb 02, 2004 2:11 am


User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Oleg Butuzov » Mon Feb 02, 2004 3:34 am


User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Mail

Postby ruturajv » Mon Feb 02, 2004 5:18 am

Try using the phpmailer class
http://phpmailer.sourceforge.net

then use the docs to send the mail, you can attach files..., etc, smtp authentication, etc.. :D

vouillot
New php-forum User
New php-forum User
Posts: 4
Joined: Tue Jan 27, 2004 9:41 am

RE

Postby vouillot » Mon Feb 02, 2004 7:56 am

Thanks for the tip, but I use phpmailer from sourceforge.net
The trouble I have is that I'm trying to send an HTML file as a mail. I tried many things, but when I think it's OK, I test it and receive a mail with "1" in it. That's all.
If you can help me, it would be wonderfull


Thanks

tranquillo
New php-forum User
New php-forum User
Posts: 74
Joined: Sun Nov 24, 2002 6:48 pm
Location: katrineholm
Contact:

Postby tranquillo » Mon Apr 12, 2004 10:13 am

could you show us the code?

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Postby swirlee » Mon Apr 12, 2004 4:56 pm

Ah, tranquillo, this thread is over two months old and the poster hasn't made a post since February 2. I don't think he's coming back.

User avatar
gesf
Moderator
Moderator
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Postby gesf » Tue Apr 13, 2004 4:37 am

tranquillo, as you don´t want to send it as an attachment, you can make some routine to open the fine, copy its html content and send it as/with your HTML Mail!


Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest

cron