Dear Daily WTF,
I've got an ASP file that sends an email out as text.
Here's the problem...The body of the email begins with 2 blank lines at the top and ends with 2 blank lines at the very bottom. When the email is opened (Eudora 7.1) the 2 blank lines (Carriage Returns) at the top and bottom are stripped completely out. What is going on? Is it my code or is it possibly the email program itself?
ASP Code looks like this:
Dim EmailBody
EmailBody = vbcrlf
EmailBody = EmailBody & vbcrlf
EmailBody = EmailBody & vbcrlf
EmailBody = EmailBody & "Dear Friend," & vbcrlf
EmailBody = EmailBody & vbcrlf
EmailBody = EmailBody & "How are you! I will call you later." & vbcrlf
EmailBody = EmailBody & vbcrlf
EmailBody = EmailBody & "Have a Great Day!" & vbcrlf
EmailBody = EmailBody & vbcrlf
EmailBody = EmailBody & "Sincerely," & vbcrlf
EmailBody = EmailBody & vbcrlf
EmailBody = EmailBody & "Your Friend" & vbcrlf
EmailBody = EmailBody & vbcrlf
EmailBody = EmailBody & vbcrlf
(And I use the sendmail function, set up for text, to send the email body above)
I've tried:
EmailBody = EmailBody & vbcrlf & vbcrlf & vbcrlf & vbcrlf
and
EmailBody = EmailBody & " " & vbcrlf
EmailBody = EmailBody & " " & vbcrlf
and
EmailBody = EmailBody & " " & vbcrlf (Yes, a WTF...but WTH)
No Help...body of email when received never has over one carriage return (blank line) in it, and it seems that I'm not allowed any blank line at all at the beginning or at the end of the email body. It's as if the email body gets trimmed of & vbcrlf . Any ideas? Is it possible to put a blank text character within the quotes, like an ALT-255? (Yes, I know...WTF!...longsas story)
Any help would be greatly appreciated.
Thanks
C
Caution_MyCode_Looks
@Caution_MyCode_Looks
0
Reputation
2
Posts
14
Profile views
0
Followers
0
Following
Best posts made by Caution_MyCode_Looks
This user hasn't posted anything yet.
Latest posts made by Caution_MyCode_Looks
-
Help with "& vbcrlf" in Emails Sent as Text Using ASP
-
Regex or InString Help - Using ASP, Searching for Instance of Only 2 Quotes " in an Email Address
Dear Daily WTF,
I’m needing to ascertain the following from an email address that will be submitted via an online form using ASP to process:
1. Does it have exactly 2 Quotation marks (" and another ") located anywhere left of the @ symbol?
2. Does it have at least 1 period located anywhere to the right of the @ symbol?
I started off trying to find a clever way of using the Instring function to find the occurrences of (“) only twice in the string, but I got links all over the Net pointing to:
Perhaps a WTF in and of itself…I tried the code (yes, after correcting one of his incorrect variable names, etc) but could not get it to work. Simply looking at the logic looked off to me…
I’m new to coding and only know HTML, and enough ASP to barely scrape by.
I was thinking a simple RegEx might do the trick.
If it’s possible, I’d like LoneProgrammer to take a look at this post. He seems pretty knowledgeable when it comes to Regexes.
Thanks,
P.S. Please, no WTFs!!!
Keep it Good, Simple, Fast Logic.