Comments (4)
What language/library are you using? There are examples showing how to send html.
from documentation.
There is very few examples of html emails. I can only count two and they are very small.
from documentation.
I think it's because to send html version you only need to add in an extra parameter for existing libraries out there.
For example:
Ruby (Just Text)
def send_simple_message
RestClient.post "https://api:YOUR_API_KEY"\
"@api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages",
:from => "Excited User <mailgun@YOUR_DOMAIN_NAME>",
:to => "[email protected], YOU@YOUR_DOMAIN_NAME",
:subject => "Hello",
:text => "Testing some Mailgun awesomness!"
end
Ruby (Text & HTML)
def send_simple_message
RestClient.post "https://api:YOUR_API_KEY"\
"@api.mailgun.net/v3/YOUR_DOMAIN_NAME/messages",
:from => "Excited User <mailgun@YOUR_DOMAIN_NAME>",
:to => "[email protected], YOU@YOUR_DOMAIN_NAME",
:subject => "Hello",
:text => "Testing some Mailgun awesomness!",
:html => "<h1>Testing some Mailgun awesomeness!"
end
from documentation.
I am facing issue with HTML email. I followed the directions given in the documentation. Can someone tell me how to include links in "html" property as it's value is string? Whatever HTML I am writing, it is printed as a string. If I am trying to concatenate strings for "html" property then it is a syntax error as we have to include all html format inside a string.
I am using python language.
from documentation.
Related Issues (20)
- delete() missing from Mailgun.Lists
- azure and Mailgun DNS setting Documentation
- Add documentation about the response format
- mailgun event polling logic
- Node examples use deprecated mailgun-js dependency rather than official mailgun.js dependency
- Example response for NodeJS
- Inbox Placement V2 - hard to understand HOT 2
- C# documentation is not up to date with regard to RestSharp HOT 1
- Securing webhooks needs C# example
- Limit is 1000 not 10000 for suppressions HOT 2
- Regarding receiving Inbound Email and the difference between `forward(”http://myapp/post”)` and `store(notify=”http://myapp/post”)`
- Mailgun billing
- Colon typo in source/user_manual.rst HOT 1
- Deprecated stats route
- Missing field `message_hash` in bounces API example
- Error in unsubscribes API example for getting a single unsubscribe
- Sending API keys not loading
- Typo error
- "Update version" parameters not displayed in tabular format
- Reading a CSV attachment of received and stored email
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from documentation.