Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

How to send attachment via SMTP


ghost's Avatar
0 0

Hello all, few days back i read an article on sending an attachment using SMTP. http://www.osix.net/modules/article/?id=504 I tried hands on it. but not getting success. anyone did it successfully ???

I can successfully send fake mails(no attachments) using SMTP. But has few issues now. since i wasn't getting any open relay mail server so i installed one on mine itself and was experimenting sending mails to myself.

HELO anything.com MAIL FROM:xyz@yahoo.com RCPT TO:abc@yahoo.com DATA To:"abc"<abc@yahoo.com> From:"xyz"<xyz@yahoo.com> Subject:anything ………..left one or more black lines by just pressing enter key………… hi buddy, how r u ??? bye . <enter>

i didn't specified the "Date:" field to let it take itself. Now everything is fine except that sometimes its going to "Inbox" and sometimes to "junk" and now mostly its going to "junk".

What should i do to make to "Inbox" ???

regards


ghost's Avatar
0 0

To make sure your email isn't going to junk, you have to make sure the email doesn't look like SPAM. You can do this by adding some extra headers to your mail. Look on Google for the available e-mail headers.

If you have found the headers, you'll know how to add attachments to your emails.

When you search about the headers, you'll learn a lot about E-Mail.