PDA

View Full Version : Attachments to email


ABC123

RobPolley
07-15-2014, 04:58 PM
I'm having trouble getting attachments to be emailed when I try to send more than one. Here's my code for the attachments:

dim vattach as c
vattach="C:\Users\swimcoach\Desktop\test.txt"+crlf()
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\FirstFloor.pdf"+crlf()
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\SecondFloor.pdf"+crlf()
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\swim70perspective1.jpg"+crlf()
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\swim70perspective2.jpg"+crlf()
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\SwimSeventyHighlightsJune2014.pdf"+crlf()
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\Swim70CommunityImpact.pdf"+crlf()
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\NorwalkYMCASummary.pdf"+crlf()
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\Swim70PromissoryNotePacket.pdf"+crlf()

I'm sending them using:

email_send_gmail("myemail@gmail.com","mypassword",vemail,"Rob@SwimAmerica.info","Swim Seventy - additional information","",msg,"","",vattach)

When I do this with only one attachment, it works.

Thank you,

Rob

Ted Giles
07-16-2014, 04:48 AM
Try
vattach1=
vattach2=

And add them individually.

GGandhi
07-16-2014, 06:08 PM
vattach="C:\Users\swimcoach\Desktop\test.txt"+";"
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\FirstFloor.pdf"+";"
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\SecondFloor.pdf"+";"
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\swim70perspective1.jpg"+";"
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\swim70perspective2.jpg"+";"
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\SwimSeventyHighlightsJune2014.pdf"+";"
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\Swim70CommunityImpact.pdf"+";"
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\NorwalkYMCASummary.pdf"+";"
vattach=vattach+"C:\Users\swimcoach\Desktop\Docs\Swim70PromissoryNotePacket.pdf"
try this or
change to
CR-LF instead of crlf()
or change to ","
they are the separators not crlf()