[Gambas-user] smpt body vs attachement
Willy Raets
willy at ...2734...
Tue Apr 23 15:15:09 CEST 2013
Hello,
Another question on the use of smtp.
When in an application I do:
hMail.Add(tarBody.Text)
The content of tarBody (a TextArea) is send as body of the email
So on opening the mail you see this as the mail body as I expect.
There is no attachement
When doing:
hMail.Add(tarBody.Text)
hMail.Add(tarAttachment.Text, "text/plain", "Attachment-" & sAddition &
".txt")
Content of both tarBody and tarAttachment (both TextAreas) are added
each as an attachment to the mail when send. On opening the mail there
is NO body and there are 2 attachments.
What I expect is tarBody being the content (body) of the mail and
tarAttachment being added as an attachment. So I expect only 1
attachment instead of two.
How can I ensure that the content of tarBody is NOT added as attachment
but as body of the mail and only tarAttachment is attached as
attachment?
Why in the first code tarBody is no attachment but body content of the
mail and in second code it is added as attachement?
Anyone know how to solve this? Am I overlooking something?
--
Kind regards,
Willy (aka gbWilly)
http://gambasshowcase.org/
http://howtogambas.org
http://gambos.org
More information about the User
mailing list