php mail + html attachments

07-17-06, 03:09 AM
|
 |
Wannabe Coder
|
|
Join Date: Mar 2006
Posts: 216
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
|
php mail + html attachments
hi everyone, well, i came across http://www.programmingtalk.com/showthread.php?t=22506 in this community. i m unable to send attachments with that script. i get the error, dunno wats wrong. btw i used the same script thats given in that link. the error is on line 57 of example.php
well, i got one more problem. how can i embedd html tags in a mail ?
this works fine..
but i want something like,
i hv tired of doing things.. i hv been struck here for last 2 days. anyways, thanks in advance..
|

07-17-06, 03:24 AM
|
 |
Wannabe Coder
|
|
Join Date: Mar 2006
Posts: 216
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
some of them said its cuz, i hvnt initialized the conn. i dunno where to initialize. i dont even know if it works !
|

07-17-06, 04:06 AM
|
 |
Community Leader
|
|
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
|
|
|
|

07-17-06, 04:29 AM
|
 |
Wannabe Coder
|
|
Join Date: Mar 2006
Posts: 216
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
thanks a lot nico.. that link was helpful.. man.. thanks a lot..  u made my day.. phew!
|

07-17-06, 07:08 AM
|
 |
Wannabe Coder
|
|
Join Date: Mar 2006
Posts: 216
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
i m back with a doubt..
i used this following link and it worked fine with me.
but i wanna know, can i replace the name, date,month and year here, with php variables ?
i mean,
?!? i tried but it doesnt show the variables value at all.. ugh! i never thought this wud happen.. help plzzz ! thanks.
|

07-17-06, 07:11 AM
|
 |
Community Leader
|
|
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
|
|
|
|

07-17-06, 07:21 AM
|
 |
Wannabe Coder
|
|
Join Date: Mar 2006
Posts: 216
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
first of all thanks for ur time.. but i m referring to the stored values after retrieving from a table.
how do i use these variables $name, $date, $month and $year in the html tags of '$message'.
|

07-17-06, 07:25 AM
|
 |
Community VIP
|
|
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
This might help - http://us3.php.net/manual/en/languag...g.php#language
Specifically -
Quote:
|
But the most important feature of double-quoted strings (and HEREDOC) is the fact that variable names will be expanded. See string parsing for details.
|
and -
Quote:
When a string is specified in double quotes or with heredoc, variables are parsed within it.
There are two types of syntax: a simple one and a complex one. The simple syntax is the most common and convenient. It provides a way to parse a variable, an array value, or an object property.
The complex syntax was introduced in PHP 4, and can be recognised by the curly braces surrounding the expression.
|
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???
|

07-17-06, 07:26 AM
|
 |
Wannabe Coder
|
|
Join Date: Mar 2006
Posts: 216
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
the above code doesnt work.. it shows null or blank at the places where i m printing php variable values.  i m lost..
|

07-17-06, 07:27 AM
|
 |
Wannabe Coder
|
|
Join Date: Mar 2006
Posts: 216
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
oops.. i m a min late.. lemme check wat u hv given me there... thanks 
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|