Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 4 Jahren, 4 Monaten
Letzter Beitrag:
vor 4 Jahren, 4 Monaten
Beteiligte Autoren:
steve erts, Paulo Oliveira, A.H.J. Mess

Email using Word in WD18

Startbeitrag von A.H.J. Mess am 17.12.2013 09:39

Hello,

Who can help me with or knows howto do the automatison for creating (bulk)emailings with Word (with a template) and send them out tru Outlook.

Kind regards, Aad

Antworten:

check the example provided with windev to see one of the ways to control word
C:\WinDev 18\Examples\Training\WD Controlling Word

To send the email check EmailStartSession and the related Email* functions
http://doc.windev.com/en-US/?3032137
http://doc.windev.com/en-US/?3032028

von Paulo Oliveira - am 17.12.2013 11:32
Hi Aad,

If it is not a hard requirement to use word I might suggest using storing the templates within your app in a database field and then creating your own tagging mechanism to insert data. This is what I do in my app.

I store canned email scripts such as this in my DB.

Dear [FirstName],

Thank you for your interest in XXXXXXXXX. Atttached are some itineraries that we selected for you based on your interests. If you have any other questions please don't hesitate to call.

Kind Regards,

[UserFirst] [UserLast]
[BrandName]
[BrandPhone]
[BrandWebsite]

When it's time to send and email I update a string with the DB field and then process the tags using the "Replace" command.

example...

I fill the variables with data to merge and then use following code to update string which I then return to the email program to send.

sString=Replace(sString,"[FirstName]",sFirstName,WholeWord)
sString=Replace(sString,"[LastName]",sLastName,WholeWord)
sString=Replace(sString,"[BrandName]",sBrandName,WholeWord)
sString=Replace(sString,"[BrandPhone]",sBrandPhone,WholeWord)
sString=Replace(sString,"[BrandWebsite]",sBrandWebsite,WholeWord)
sString=Replace(sString,"[UserFirst]",sUserFirst,WholeWord)
sString=Replace(sString,"[UserLast]",sUserLast,WholeWord)

von steve erts - am 18.12.2013 20:39
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.