View Full Version : help in email format
bmwmpower
03-03-2003, 10:29 AM
i have problem in email format (( the spaces and berakline not appear in the email )) so i need help
Spudhead
03-03-2003, 03:35 PM
I think we may need some more info. Could you post the code you're using, and ideally a description of what you're trying to do?
bmwmpower
03-05-2003, 07:34 AM
the problem in the email format
this my code
strMsg=strMsg & request.form("message") & vbcrlf & vbcrlf
'strMsg=strMsg & request.form("yourname")
strMsg=strMsg & vbcrlf & vbcrlf
strMsg=Cstr(strMsg)
Set SendEmail = Server.CreateObject("SMTPsvg.Mailer")
SendEmail.FromName = Request.form("yourname") 'Specify sender's address
'SendEmail.FromName = Request.form("yourfriendname") 'Specify sender's address
SendEmail.FromAddress= Request.form("youremail")
'SendEmail.AddCC Request.form("yourpemail")
SendEmail.RemoteHost = "mail.*****.com"
SendEmail.AddRecipient " ", Request.form("Yourfriendemail")
'SendEmail.AddCC "nbcbn-re", privet-email
SendEmail.AddCC "nbcbn-re", usersrs2("Privet_email")
'SendEmail.AddBCC = Request.form("yourpemail")
SendEmail.Subject = Request.form("mailsubject")
'SendEmail.AttachFile ThisFile
SendEmail.ContentType ="text/html"
SendEmail.BodyText = strMsg
whammy
03-07-2003, 12:41 AM
I'm assuming this is the problem, since you didn't describe it very well:
strMsg=strMsg & request.form("message") & vbcrlf & vbcrlf
'strMsg=strMsg & request.form("yourname")
strMsg=strMsg & vbcrlf & vbcrlf
strMsg=Cstr(strMsg)
So in this case, the message is not followed by exactly four line breaks - is that the problem?
Also this is unnecessary:
strMsg=Cstr(strMsg)
P.S. You also didn't clarify what email component you're using...
:confused:
Mhtml
03-07-2003, 11:46 AM
It's this one Whammy SMTPsvg ;)
I really have nothing better to do.
whammy
03-07-2003, 03:32 PM
Duh, how did I miss that? still need more clarification on the problem, though...
bmwmpower
03-09-2003, 07:54 AM
i have problem in email format (( the spaces and berakline not appear in the email ))
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.