Question about Computers & Internet

1 Answer

How can i send mail in visual basic 6 using smtp.gmail.com and vbsendmail.dll.

Posted by on

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    Vice President:

    An expert whose answer got voted for 100 times.

  • Master
  • 733 Answers

You can try this :
<%
On Error Resume Next
Dim Subject, Body, SenderEmail, RecipientEmail, SMTPServer, SMTPusername, SMTPpassword
SenderEmail = "Your Name <youremail>"
SMTPserver = "smtp.gmail.com"
SMTPusername = "your full email address"
SMTPpassword = "your password"
Subject = "Hello"
Body = "This is a test. Please ignore."
RecipientEmail= "any email address"

sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(sch & "smtpauthenticate") = 1
.Item(sch & "smtpusessl") = True
.Item(sch & "smtpserver") = SMTPserver
.Item(sch & "sendusername") = SMTPusername
.Item(sch & "sendpassword") = SMTPpassword
.Item(sch & "smtpserverport") = 465
.Item(sch & "sendusing") = 2
.Item(sch & "connectiontimeout") = 100
.update
End With

Const cdoSendUsingPickup = "c:\inetpub\mailroot\pickup"
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
cdoMessage.From = SenderEmail
cdoMessage.To = RecipientEmail
cdoMessage.Subject = Subject
cdoMessage.TextBody = Body
cdoMessage.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
If Err.Number <> 0 Then
Response.Write (Err.Description& "<br><br>")
end if
%>

tested by some friends and is working fine.

Posted on Jan 28, 2010

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

4 Answers

How do I install my default mail client for my e mails I have windows 7?


There are many websites that already provide this answer.

Nov 04, 2014 | Google Gmail

1 Answer

Outgoing mail server problem


Most likely the send mail port is blocked in your firewall.

If your settings allow you to set a port number. The default is port 25, but the gmail smtp server does not use that port, try setting to port 587 or port 465.

Again, make sure whatever port you are using is not blocked in your firewall nor by your internet service provider.

Mar 29, 2014 | gmail.com

1 Answer

Gmail access


In the e-mail account settings you should use the following:
IMAP server address: imap.gmail.com
user name: exactly what you use for logging in gmail on a computer, such as my.name@gmail.com
password: your password
IMAP port: 993 (This is important. Otherwise it will not work)
encryption/security: TLS/SSL

In order to send mail, you also need to give the program these SMTP settings:
SMTP server address: smtp.gmail.com
port: 465 (once again, an important number)
security: TLS/SSL

I hope this helps.

Oct 20, 2013 | Samsung GT-E2550 Cell Phone

1 Answer

I am unable to setup my email wizard in my samsung corby


Standard instructions for email inbox setup:

i have finished my corby pro email settings & i can send and recieve emails. the problem with only recieving & not able to send is the confusion between port numbers. in secure connection box three options available ' off ', ' SSL ', ' TLS '. use only SSL or TLS because the port numbers for SSL & TLS differs. just try this & you will be able to send and recieve emails.

                                                    SMTP port - 465

                                                    POP3 port - 995

Enable POP in Gmail. Don't forget to click Save Changes when you're done.Configure your client to match the settings below:Incoming Mail (POP3) Server - requires SSL:pop.gmail.com
Use SSL: Yes
Port: 995Outgoing Mail (SMTP) Server - requires TLS or SSL:smtp.gmail.com (use authentication)
Use Authentication: Yes
Port for TLS/STARTTLS: 587
Port for SSL: 465Account Name:your full email address (including @gmail.com or@your_domain.com)Email Address:your email address (username@gmail.com orusername@your_domain.com)Password:your Gmail password

Unless you're using recent mode to download mail to multiple clients, make sure you've opted not to leave messages on the server. Your Gmail settings determine whether or not messages stay on the server, so this setting in your client won't affect how Gmail handles your mail.

Please note that if your client does not support SMTP authentication, you won't be able to send mail through your client using your Gmail address.

Also, if you're having trouble sending mail but you've confirmed that encyrption is active for SMTP in your mail client, try to configure your SMTP server on a different port: 465 or 587.

You're now ready to use POP with your Gmail address.

Mar 08, 2011 | Samsung S3653 Cell Phone

2 Answers

How to setup push mail for samsung monte phone on gmail


I'm not sure if this is of any help
to anyone but these are the steps
I used to set up email on my
Monte. I'm using an old hotmail
account that didn't support IMAP
or SMTP properly.
1.Set Up a GMail account eg.
someone@gmail.com
2.Set GMail to allow IMAP via the
settings link the the top right
hand corner. (under Forwarding
and POP/IMAP)
3.Under accounts and import set
up the send mail as to send mail as
someone@hotmail.co.uk. Set this
to default send adress
4.In the same tab under check
mail using pop3 set up the pop3 to
recieve from someone@
hotmail.co.uk
5.Under Email Accounts on the
Monte set up email with the
following charecteristics:
Account Name: Hotmail
SMTP Server: smtp.gmail.com
SMTP Port: 465
Secure Connection: SSL
Incoming Server Type: IMAP4
IMAP4 Server: imap.gmail.com
IMAP Port: 993
APOP login: greyed out
Secure Connection: SSL
Download Limit: 500
IMAP4 incoming email: New
Retrieving option: Whole Message
Keep on server: checked
My email adress: someone@
hotmail.co.uk (This is the adress
the phone puts in the from line of
an email)
Username: someone@gmail.com
Password: gmail password
Pop before smtp: greyed out
SMTP auth: checked
Same as POP3/IMAP4: checked
Username: greyed out
Passowrd: greyed out
This should allow you to recieve
new messages from the time you
set up the gmail account on your
phone and to send emails with all
the appearences of coming from
your hotmail account while
actually coming from google's
smtp server. Really do check that
the GMail is set up properly, make
sure it recieves emails adressed
to your hotmail and that it sends
in your hotmail account's name.

Sep 20, 2010 | Health & Beauty

5 Answers

What iis the outgoing/incoming server for gmail?


Google GMail Settings
The Google GMail service offers email client access for retrieving and sending emails through your Gmail account. However, for security reasons, GMail uses POP3 over an SSL connection, so make sure your email client supports encrypted SSL connections.
    Google Gmail Incoming Mail Server (POP3) - pop.gmail.com (SSL enabled, port 995)
    Outgoing Mail Server - use the SMTP mail server address provided by your local ISP or smtp.gmail.com (SSL enabled, port 465)

May 03, 2010 | HP Pavilion dv6000z Notebook

1 Answer

Send or receive messages


Did you configure your HTC using a POP3 or IMAP account? If you do, you need to make sure that the following are correct:

1. Incoming Mail Server - pop.domain.com (i.e. pop.gmail.com)
2. Incoming Port - 110 or 993
3. Outgoing Mail Server - smtp.domain.com (i.e. smtp.gmail.com)
4. Outgoing Port - 25 or 2525 or 587 or 465

You need to contact your e-mail provider to see the correct settings and port number to use for the incoming and outgoing mail server.

You have to make sure to put your complete e-mail address in the user name field.

Have a great day!

Oct 07, 2009 | HTC Touch P3450 Smartphone

1 Answer

Mozilla Thunderbird setup


    Google Gmail Outgoing Mail Server (SMTP): smtp.gmail.com
    The Gmail SMTP server requires authentication (use the same settings as for the incoming mail server)
    The Google Gmail SMTP Server requires an encrypted connection (SSL) on port 465.
    GMail uses POP3 over an SSL connection, so make sure your email client supports encrypted SSL connections.
      Google Gmail Incoming Mail Server (POP3) - pop.gmail.com (SSL enabled, port 995)Outgoing Mail Server - use the SMTP mail server address provided by your local ISP or smtp.gmail.com (SSL enabled, port 465)

Sep 21, 2008 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

127 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

98879 Answers

David Payne
David Payne

Level 3 Expert

14089 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...