New topic: Emaling Multiple Attachments
<http://forums.realsoftware.com/viewtopic.php?t=29701> Page 1 of 1 [ 5 posts ] Previous topic | Next topic Author Message shaggymac Post subject: Emaling Multiple AttachmentsPosted: Sun Aug 23, 2009 1:31 pm Joined: Fri Feb 29, 2008 5:25 pm Posts: 376 I'm trying to add Multiple Attachments to my Email Message and I get the same attachment twice Code: f = GetFolderItem("rb.data.pdb") If f <> Nil Then If f.Exists Then file.LoadFromFile f mail.Attachments.Append file End If End If f = GetFolderItem("user.data") If f <> Nil Then If f.Exists Then file.LoadFromFile f mail.Attachments.Append file End If End If // send the email Socket1.Messages.Append mail ProgressBar1.visible = true Socket1.SendMail _________________ http://www.oneoranephone.com Free calls to USA & Canada Free calls to Europe or Asia Free calls to Puerto Rico Plans starting at $14.95 http://www.mupromo.com/?ref=4850 Today's MacUpdate Promo, 40% off Top Steve Garman Post subject: Re: Emaling Multiple AttachmentsPosted: Sun Aug 23, 2009 1:36 pm Joined: Fri Sep 30, 2005 3:53 pm Posts: 2929 Location: England It may be physically attaching later than you think. Have you tried using two folderitem variables f1 and f2? Or probably more practical, use an array of f() _________________ Steve Garman Using REALbasic 2008r2 Professional on Windows Vista Ultimate and REALbasic 2009r3 Professional on Linux Ubuntu 9.04 Desktop Occasional blog Top shaggymac Post subject: Re: Emaling Multiple AttachmentsPosted: Sun Aug 23, 2009 1:43 pm Joined: Fri Feb 29, 2008 5:25 pm Posts: 376 I get two attachments but both the files are the same "user.data" The first file never gets attached. _________________ http://www.oneoranephone.com Free calls to USA & Canada Free calls to Europe or Asia Free calls to Puerto Rico Plans starting at $14.95 http://www.mupromo.com/?ref=4850 Today's MacUpdate Promo, 40% off Top Steve Garman Post subject: Re: Emaling Multiple AttachmentsPosted: Sun Aug 23, 2009 1:48 pm Joined: Fri Sep 30, 2005 3:53 pm Posts: 2929 Location: England Does your reply mean You tried my suggestion and it didn't workYou didn't understand my suggestion orYou think if you keep repeating your problem it will magically get better? _________________ Steve Garman Using REALbasic 2008r2 Professional on Windows Vista Ultimate and REALbasic 2009r3 Professional on Linux Ubuntu 9.04 Desktop Occasional blog Top Steve Garman Post subject: Re: Emaling Multiple AttachmentsPosted: Sun Aug 23, 2009 2:03 pm Joined: Fri Sep 30, 2005 3:53 pm Posts: 2929 Location: England Actually, looking at it again, it's much more likely because you are using file twice. Seems you're only creating one emailattachment then loading it from two different folderitems. _________________ Steve Garman Using REALbasic 2008r2 Professional on Windows Vista Ultimate and REALbasic 2009r3 Professional on Linux Ubuntu 9.04 Desktop Occasional blog Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 5 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
