0

ust select SMTP control from Components ( under project menu (visual basic))

With SMTP 'name for control
.Server = outgoingserver 'Outgoing server name or IP address

.MailFrom = mailFrom 'Sender mail address

.SendTo = mailto 'to whom you want to send mail

.MessageSubject ='Subject of message

.MessageText = mailtext 'mail text

.Attachements.Add attachmentpath 'if you want ot attach any file just give the path here

DoEvents


.Connect

End With

Was This Post Helpful? 0 Back to top
MultiQuote
Quote + Reply

but smtp cotrol does not exist in componants

3
Contributors
2
Replies
5
Views
6 Years
Discussion Span
Last Post by QVeen72
0

If you are going to use SMTP, you will need to send to a number based on the particular carrier. You would need to use a particular SMS Gateway.

There are other services that you can possibly automate to send to a mobile when you do not know the carrier. http://www.smseverywhere.com/send.htm

Also, can you use VB.NET for this? There are much more elegant solutions if you can.

Edited by thines01: Addition

0

Hi Shilpa,

The code, you have given is for sending EMails not SMS.
For SMS, you need to use SMS Gateways.. (like GupshupSMS, mvaayoo)

Regards
Veena

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.