Rank: Newbie
Groups: Registered
Joined: 4/23/2019(UTC)
Posts: 3
Location: Nairobi
Dear Members, I have been using the components for some years now without any problem in my legacy VB60 program. Can Somebody assist me how i can add line breaks in my email body please. I have tried the following code but the email is sent with the very last value i assign to oSmtp.BodyText "****end**** oSmtp.BodyText = "Dear " & AcName & "," 'Rem: Line 1 oSmtp.BodyText = "Please find attached account statement for period between " & v_STATDT & "-" & v_ENDDT & " as requested." 'Rem: Line 2 oSmtp.BodyText = "Thank you for being a loyal Member." 'Rem: Line 3 oSmtp.BodyText = v_RegName 'Rem: Line 4 oSmtp.BodyText = "*****end**********" 'Rem: Line 5 How can i edit the above code to allow my email to be delivered with only the four lines as bolded. Regards.
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,152
Thanks: 9 times Was thanked: 55 time(s) in 55 post(s)
Originally Posted by: eugene Dear Members, I have been using the components for some years now without any problem in my legacy VB60 program. Can Somebody assist me how i can add line breaks in my email body please. I have tried the following code but the email is sent with the very last value i assign to oSmtp.BodyText "****end**** oSmtp.BodyText = "Dear " & AcName & "," 'Rem: Line 1 oSmtp.BodyText = "Please find attached account statement for period between " & v_STATDT & "-" & v_ENDDT & " as requested." 'Rem: Line 2 oSmtp.BodyText = "Thank you for being a loyal Member." 'Rem: Line 3 oSmtp.BodyText = v_RegName 'Rem: Line 4 oSmtp.BodyText = "*****end**********" 'Rem: Line 5 How can i edit the above code to allow my email to be delivered with only the four lines as bolded. Regards.
Hi, you can use & Chr(13) & Chr(10) as line break in the text body.
oSmtp.BodyText = "Dear " & AcName & "," & Chr(13) & Chr(10)
oSmtp.BodyText = "Please find attached account statement for period between " & v_STATDT & "-" & v_ENDDT & " as requested." & Chr(13) & Chr(10)
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.