gmail smtp problem - smtp

I am using gmail smtp to send emails from my website, but i noticed that some emails are dropped. I use Zend_Mail. Everything works as it supposed to for most of the emails, but if an email's subject/body is somewhat questionable, then it might not be sent. For example:
If I try to send emails like this:
Subject (asdjkasdf kasdjf kdfasdjfksdf) and Body (askdjf askjf asdf)
OR
Subject (SUBJECT) and Body (BODY)
Then gmail smtp will not do it. Zend_Mail returns true however.
Is there a spam filter or something that blocks such emails? What are my options?

If the SMTP returns no error, then your emails has been effectively SENT.
I bet the problem is that you don't see it in your inbox, that could be because it's marked as spam before that happens.

Related

Charcter Limit for Mail to function in Gmail When the body and subject is included

I am trying below function in sending email and same content works fine when i receive email in outlook but when i see in gmail it does not even show the link on the Tag.Can you some body help me how can i fix the issue in Gmail and is there any limit for mailto function in gmail?
Want to approve some but not all repairs in the repair quotation
The standard (mailto protocol) doesn't define a maximum length, leaving implementation up to browsers and mail clients (IETF RFC 2368). But you can find some limitations described for browsers and mail clients on the Effective maximum mailto: body lengths thread.
Also, take a look at the MAILTO max-length of each internet browsers? page.

HTML mailto, how to include the sender's email address in the email body?

Please help me in this case. I use mailto function in HTML. But now I need to include the sender's email address in the email's body when the sender clicks on mailto button. It's hard for me.
Anyone please advice me solution or code to do so. Very appreciated.
Thanks,
To send an email to a specific email address via link, you can use it like this:
Send Email
To also send a body and subject parameter to define the content that will be sent, use this;
Send Email
Here is a good tutorial for beginners.
When using "mailto:" links in HTML, you can pre-define the following properties:
TO recipient
CC recipient
BCC recipient
email body
According to RFC 2368, only the subject and the body parameters are considered save, so email clients will not look for other parameters except those in the list above. This means, theoretically, you could set more header parameters like the sender's address by something like mailto:test#example.com?subject=test&from=sender#example.com, but probably no email client will process this parameter.

HTML mailto Yahoo Mail with recipient name

I would like to add the names of the recipients in a html mailto link for Yahoo Mail users. I know that they can set Yahoo Mail as a default handler or mailto: links, but I have a particular use case where solving this could be helpful.
Currently, I already have a compose link that works:
https://compose.mail.yahoo.com/?to=john#doe.com
In particular I would like to be able format ?to=john#doe.com so that Yahoo is consistent with what Gmail (and more) which can include the recipients name using this markup:
?to="John Doe"<john#doe.com>".
Unfortunately, I can't find what markup Yahoo Mail requires, or if it can be done at all through Yahoo Mail.
Thanks in advance for the help.
Yahoo does not allow you to mark up the name of the recipient through the URL like Gmail and Outlook, you can only place email addresses in the to, cc, or bcc fields.
23-12-2021: Surprisingly now it works! I am making a laravel app and what I wanted was what the author of this question was asking about. So I gave it a try and it worked.
Sample html code:
{{ $supplier->email }}

Syntax for mailto

When using a mailto link like this:
Link Text
is it possible to set the FROM: address?
UPDATE: I forgot to mention that I have a captive audience who will ALL be using IE8 and Outlook.
It isn't, unfortunately - You can only specify the subject, cc, bcc and the body of the message. Check the full syntax : http://www.ianr.unl.edu/internet/mailto.html updated
For example,
Send
The short answer is no.
mailto will open your prefered email client. The from address will be set up in your mail client.
Given that your users will all be using Outlook, their email address will already be the from address.
The from address is always the address that is in the email client that sends the message, so no.
I think you're looking for the reply-to address, which is what appears to the recipient as the sender in 99% of email clients:
mailto:?reply-to=somebody#somewhere.com
Fancier example here:
mailto:terminator#thefuture.fake?reply-to=ahnold#thefuture.fake&subject=it%20verks!&message=get%20to%20the%20chopper!

html newsletter email arriving as an attachment

I'm using C# to send email newsletters for subscribers.
There's no problem with sending the email but some email clients like outlook and hotmail receive html newsletter as an attachment and the email body contains only plaintext with html tags removed and some clients like gmail receive the email just fine.
What actually creates this behavior? If i put just few html tags in to message outlook and hotmail shows the newsletter fine but as i put in more html elements my mail arrives as attachment.
I've been trying to find out how to make my email appear ok in most popular email clients like outlook but have had no success so far. Anyone care to enlighten me how this email + html stuff actually works?
Have a look at the Mailchimp and CampaignMonitor links in this answer, which may help you.
Since you don't provide any information about how you're using C# to send this email, we can only speculate about what you're doing and what the problem might be. It sounds like you might be using MailMessage.AlternateViews to send your HTML, but only have that one view. If you're not intending to send out a multipart/alternative message then you should simply set the MailMessage.Body to your HTML content with MailMessage.IsBodyHtml = true.
That being said: I make the assumptions I do because some email clients are smarter than others, and if the content-type header doesn't make sense they'll do their best to try to figure out what the nicest way to display the content is, each potentially trying something different. If, however, my assumptions are incorrect it would greatly help to know the code you're using to generate the email, and even an example of the message headers.