Jump to content
UBot Underground

Sending attachments in email


Recommended Posts

Hey botters.

 

 

 

I'm getting straight to the point.

 

Does anybody has any problems sending attachments? I am trying for over 12 hours to get this going but nothing.

I tried with the build in email send and aymens email plugin but both aint working for me.

 

It will let me send emails but when i want to attach a small .txt to the mail... Nothing.

 

Info around the web and the forum is pretty much not available.

 

 

Anybody who can send me in the right direction?

 

 

Appreciated.

Link to post
Share on other sites

This was working for me using version 4, although there wasn't any special trick to it.

 

set(#AttachmentFile2"{$special folder("Desktop")}\\Images\\{#DateStamp}_Image.jpg""Global")
set(#EmailMessageHTML"<b>See Attachment</b>""Global")
connect to mail server("SMTP""joe@bloggs.co.uk""***111""bloggs.co.uk", 25) {
    send email("someone@domain.com""Mail Title - See Attachment""HTML"#EmailMessageHTML#AttachmentFile2"""")
    wait(3)

Link to post
Share on other sites

Hi Martin.

 

 

 

Thank you for taking the time to copy a piece from your code :)

 

The only thing i noticed that i had different was the the fact the i was sending my emails as plain text instead of HTML.

Unfortunally that didn't work either.

 

Since i checked the code maybe a zillion times and there are 100% no errors in there i can only think that i am not allowed for some vague reason to send attachments from my server this way...

 

Since its on my own private server and i am not in the ability to check why and how overthere i'll let it rest for now and send the reports to my clients through a php file that ill upload to my server everytime with a link to it in the email. ( automated ofcourse ).

 

Its a very strange problem but ill leave it at is i guess.

 

 

Thanks again man, really appreciated in your effort.

 

 

 

Walter

Link to post
Share on other sites

I think you are right that it might be a problem with the mail server setup, if you can and want to isolate your code and send it to me I could try it using my email server and check that it works.

Link to post
Share on other sites

Hi Martin,

 

 

 

Thats ok.

 

 

I just did a test this morning accessing and sending mails with attachments of a shared hostgator and it was sending it out correctly.

 

100% sure now that its server related somehow...

 

 

Thanks for the offer though! Really appreciated ;)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...