Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29919

Errot senting HTML message body with php mail [closed]

$
0
0

I have a html message I would like to send using php when the registration form is successfully sumbited but each time I try I keep getting Error like this one: syntax error, unexpected 'http' (T_STRING) in /dev/funtions.php,

here is the code am working with: code

	//now send email
	//email it now.	
	$subject = "Account Registration";
	$to = $email;
	$msg_body = "<<<EOD<html><body><DIV <IMG src="http://cryptoebank.dev/mail/img/ATT00002.png"> <H1 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: normal; COLOR: rgb(33,41,123)"><FONT size=2 face=arial>Hello<B><SPAN>&nbsp;</SPAN>$fname $lname,</B><BR><BR>This is a notification that your account application request was received. You will be communicated <br>soon by the Accounts department once your account is activated. For now it is pending the verification <br>by the security team.<BR><BR><B>&nbsp;&nbsp;&nbsp;REGISTRATION DETAILS</B> <TABLE cellSpacing=2 cellPadding=1 width="45%" border=0><TBODY><TR bgColor=#d2dbff><TD width="22%"><H1 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: normal; COLOR: rgb(33,41,123)">&nbsp;&nbsp;&nbsp;Account Number:</H1></TD><TD width="58%"><H1 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: normal; COLOR: rgb(33,41,123)">&nbsp;&nbsp;&nbsp;$accno</H1></TD></TR><TR bgColor=#d2dbff><TD><H1 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: normal; COLOR: rgb(33,41,123)">&nbsp;&nbsp;&nbsp;Amount:</H1></TD><TD><H1 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: normal; COLOR: rgb(33,41,123)">&nbsp;&nbsp;&nbsp;<STRIKE>$</STRIKE>00.00 DR</H1><H1 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: normal; COLOR: rgb(33,41,123)"></H1></TD></TR><TR bgColor=#d2dbff><TD><H1 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: normal; COLOR: rgb(33,41,123)">&nbsp;&nbsp;&nbsp;Transaction Narrative:</H1></TD><TD><H1 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: normal; COLOR: rgb(33,41,123)">&nbsp;&nbsp;&nbsp;QS91894:REF:$fname $lname</H1></TD></TR><TR bgColor=#d2dbff><TD><H1 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: normal; COLOR: rgb(33,41,123)">&nbsp;&nbsp;&nbsp;Registration Date:</H1></TD><TD><H1 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: normal; COLOR: rgb(33,41,123)">&nbsp;&nbsp;&nbsp;<?php echo date("h:i:sa"); ?></H1></TD></TR><TR bgColor=#21297b><TD width=141><H3 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: bold; COLOR: rgb(255,255,255)">&nbsp;&nbsp;&nbsp;Cleared Balance:</H3></TD><TD width=234><H3 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: bold; COLOR: rgb(255,255,255)">&nbsp;&nbsp;&nbsp;<STRIKE>$</STRIKE>00.00 CR</H3></TD></TR><TR bgColor=#21297b><TD width=141><H3 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: bold; COLOR: rgb(255,255,255)">&nbsp;&nbsp;&nbsp;Uncleared Balance:</H3></TD><TD width=234><H3 style="FONT-SIZE: x-small; FONT-FAMILY: Arial; FONT-WEIGHT: bold; COLOR: rgb(255,255,255)">&nbsp;&nbsp;&nbsp;<STRIKE>$</STRIKE>00.00 CR</H3></TD></TR></TBODY></TABLE></FONT></H1><BR><A style="TEXT-DECORATION: underline; COLOR: rgb(25,106,212)" href="#" rel=nofollow target=_blank><I><B><FONT color=#003399 size=2 face=Arial>Please click here to provide us further information that will aid your application</FONT></B></I></A> <H6 style="COLOR: rgb(0,0,0); MARGIN-TOP: 0px"><BR><BR><I><B><FONT color=#003399 size=2 face=Arial>Thank you for registering with CryptoBank</FONT> <div><IMG style="TEXT-INDENT: -9999px" src="http://cryptoebank.dev/mail/img/ATT00002.png"></div><HR align=left width=604><FONT size=1 face=Arial>This is an auto-generated mail. Please do not reply. For enquiries on CryptoBank products and services, please <br>call Contact or email:&nbsp;<SPAN>&nbsp;</SPAN><A style="TEXT-DECORATION: underline; COLOR: rgb(25,106,212)" href="mailto:PBContact@pubebank.com" rel=nofollow target=_blank ymailto="mailto:Contact@cryptoebank.com">Contact@cryptobank.com</A></FONT></B></I><A style="TEXT-DECORATION: underline; COLOR: rgb(25,106,212)" href="mailto:Contact@pubebank.com" rel=nofollow target=_blank ymailto="mailto:Contact@cryptoebank.com"><SPAN>&nbsp;</SPAN></A></H6></DIV>';</html></body>'
EOD";
	$mail_data = array('to' => $to, 'sub' => $subject, 'msg' => 'register', 'body' => $msg_body);
	send_email($mail_data);
	header('Location: confirm_register.php');
	exit;

Thanks any help with explanation with be appreciated.


Viewing all articles
Browse latest Browse all 29919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>