This topic is locked

How do I exclude fields in sent email with new data?

6/4/2008 5:19:01 AM
ASPRunnerPro General questions
P
perahm author

All,
How do I exclude fields in the mail there are generated and sendt with the function : Send email with new data?
This is my setup so far that are working, but i dont want all fields to be sent, becuase it also is sending to an SMS service:
[codebox]

Dim dkeys
message ="#40592744"
dkeys = dict.keys

For n = 0 To dict.Count-1

message = message & vbcrlf & dkeys(n) & " : " & dict(dkeys(n)) & vbcrlf

Next
email="mail@xxxx.dk; mail@xxxx.dk; mail@xxxx.dk"

subject="Ny booking"
sendmail email, subject, message

[/codebox]

J
Jane 6/4/2008

Hi,
to send selected fields only use this code in our event:

...

message ="#40592744"
message = message & vbcrlf & "FieldName1" & " : " & dict("FieldName1") & vbcrlf

message = message & vbcrlf & "FieldName2" & " : " & dict("FieldName2") & vbcrlf

message = message & vbcrlf & "FieldName3" & " : " & dict("FieldName3") & vbcrlf

...

P
perahm author 6/5/2008

Hi,

to send selected fields only use this code in our event:


Not working for me <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=30042&image=1&table=forumreplies' class='bbc_emoticon' alt=':o' />)
[codebox]Dim dkeys

message ="#40592744"

message = message & vbcrlf & "KundeId" & " : " & dict("KundeId") & vbcrlf

message = message & vbcrlf & "Arrangement" & " : " & dict("Arrangement") & vbcrlf

message = message & vbcrlf & "StartDato" & " : " & dict("StartDato") & vbcrlf

message = message & vbcrlf & "SlutDato" & " : " & dict("SlutDato") & vbcrlf

message = message & vbcrlf & "Arrkontakt" & " : " & dict("Arrkontakt") & vbcrlf

message = message & vbcrlf & "Arrkontakttelefon" & " : " & dict("Arrkontakttelefon") & vbcrlf

message = message & vbcrlf & "Arrkontaktmail" & " : " & dict("Arrkontaktmail") & vbcrlf

message = message & vbcrlf & "Lokale" & " : " & dict("Lokale") & vbcrlf

message = message & vbcrlf & "Notat" & " : " & dict("Notat") & vbcrlf
Next

email="mail@mavt.dk; per@pahm-consult.dk; sms@smsg.dk"

subject="avbooking.dk:rummel"
sendmail email, subject, message[/codebox]

J
Jane 6/6/2008

It's difficult to tell you what's happening without seeing actual files.
Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.